projects
/
platform
/
kernel
/
linux-rpi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
179a98c
)
s390/mm: use hugetlb_bad_size()
author
Shyam Saini
<mayhs11saini@gmail.com>
Thu, 13 Oct 2016 16:20:07 +0000
(21:50 +0530)
committer
Martin Schwidefsky
<schwidefsky@de.ibm.com>
Mon, 17 Oct 2016 09:25:26 +0000
(11:25 +0200)
Update setup_hugepagesz() to call hugetlb_bad_size() when unsupported
hugepage size is found.
Signed-off-by: Shyam Saini <mayhs11saini@gmail.com>
Signed-off-by: Heiko Carstens <heiko.carstens@de.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
arch/s390/mm/hugetlbpage.c
patch
|
blob
|
history
diff --git
a/arch/s390/mm/hugetlbpage.c
b/arch/s390/mm/hugetlbpage.c
index
cd404aa
..
4a0c5bc
100644
(file)
--- a/
arch/s390/mm/hugetlbpage.c
+++ b/
arch/s390/mm/hugetlbpage.c
@@
-217,6
+217,7
@@
static __init int setup_hugepagesz(char *opt)
} else if (MACHINE_HAS_EDAT2 && size == PUD_SIZE) {
hugetlb_add_hstate(PUD_SHIFT - PAGE_SHIFT);
} else {
+ hugetlb_bad_size();
pr_err("hugepagesz= specifies an unsupported page size %s\n",
string);
return 0;