summaryrefslogtreecommitdiffstats
path: root/arch
diff options
context:
space:
mode:
authorLiam R. Howlett <Liam.Howlett@Oracle.com>2017-05-30 21:45:00 +0200
committerDavid S. Miller <davem@davemloft.net>2017-06-06 22:45:03 +0200
commitf322980b74a15e08f8c70a34a5864ecdbf957251 (patch)
tree0ead7084326f74f24f8e00716c3dc91abaed5df1 /arch
parentsparc: Machine description indices can vary (diff)
downloadlinux-f322980b74a15e08f8c70a34a5864ecdbf957251.tar.xz
linux-f322980b74a15e08f8c70a34a5864ecdbf957251.zip
sparc/mm/hugepages: Fix setup_hugepagesz for invalid values.
hugetlb_bad_size needs to be called on invalid values. Also change the pr_warn to a pr_err to better align with other platforms. Signed-off-by: Liam R. Howlett <Liam.Howlett@Oracle.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'arch')
-rw-r--r--arch/sparc/mm/init_64.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/arch/sparc/mm/init_64.c b/arch/sparc/mm/init_64.c
index 0cda653ae007..7ca1b9dc7d64 100644
--- a/arch/sparc/mm/init_64.c
+++ b/arch/sparc/mm/init_64.c
@@ -358,7 +358,8 @@ static int __init setup_hugepagesz(char *string)
}
if ((hv_pgsz_mask & cpu_pgsz_mask) == 0U) {
- pr_warn("hugepagesz=%llu not supported by MMU.\n",
+ hugetlb_bad_size();
+ pr_err("hugepagesz=%llu not supported by MMU.\n",
hugepage_size);
goto out;
}