Skip to contentSkip to conversation

s390: mm: use hugetlb_bad_size()

PATCH Heiko Carstens 1 participant 1 message Oct 14, 2016 1 message not in the archive s390

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

Heiko Carstens

author Applied
#1 lore raw
Quoted 16 lines · Shyam Saini

Update setup_hugepagesz() to call hugetlb_bad_size() when unsupported hugepage size is found.

----------
This patch is not tested on actual s390 architecture

---
 arch/s390/mm/hugetlbpage.c | 1 +
 1 file changed, 1 insertion(+)
arch/s390/mm/hugetlbpage.c +0 -0
index cd404aa..4a0c5bc 100644

arch/s390/mm/hugetlbpage.c static __init int setup_hugepagesz(char *opt) · line 220

Quoted 4 lines
arch/s390/mm/hugetlbpage.c +1 -0
@@ -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();

Applied, thanks!