diff options
author | Liam R. Howlett <Liam.Howlett@Oracle.com> | 2017-05-30 22:45:00 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2017-06-06 23:45:03 +0300 |
commit | f322980b74a15e08f8c70a34a5864ecdbf957251 (patch) | |
tree | 0ead7084326f74f24f8e00716c3dc91abaed5df1 /arch | |
parent | c982aa9c304bf0b9a7522fd118fed4afa5a0263c (diff) | |
download | linux-f322980b74a15e08f8c70a34a5864ecdbf957251.tar.xz |
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.c | 3 |
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; } |