* Re: [PATCH] sparc/mm/hugepages: Fix setup_hugepagesz for invalid values.
@ 2017-06-05 19:01 David Miller
0 siblings, 0 replies; 2+ messages in thread
From: David Miller @ 2017-06-05 19:01 UTC (permalink / raw)
To: sparclinux
From: "Liam R. Howlett" <Liam.Howlett@Oracle.com>
Date: Tue, 30 May 2017 15:45:00 -0400
> 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>
Applied and queued up for -stable, thanks.
^ permalink raw reply [flat|nested] 2+ messages in thread
* [PATCH] sparc/mm/hugepages: Fix setup_hugepagesz for invalid values.
@ 2017-05-30 19:45 Liam R. Howlett
0 siblings, 0 replies; 2+ messages in thread
From: Liam R. Howlett @ 2017-05-30 19:45 UTC (permalink / raw)
To: sparclinux
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>
---
arch/sparc/mm/init_64.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
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;
}
--
2.13.0.92.gcd65a7235
^ permalink raw reply related [flat|nested] 2+ messages in thread
end of thread, other threads:[~2017-06-05 19:01 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-06-05 19:01 [PATCH] sparc/mm/hugepages: Fix setup_hugepagesz for invalid values David Miller
-- strict thread matches above, loose matches on Subject: below --
2017-05-30 19:45 Liam R. Howlett
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.