On Thu, Oct 13, 2016 at 09:50:07PM +0530, Shyam Saini wrote: > Update setup_hugepagesz() to call hugetlb_bad_size() when unsupported > hugepage size is found. > > ---------- > This patch is not tested on actual s390 architecture > > Signed-off-by: Shyam Saini <mayhs11saini@xxxxxxxxx> > --- > arch/s390/mm/hugetlbpage.c | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/arch/s390/mm/hugetlbpage.c b/arch/s390/mm/hugetlbpage.c > index cd404aa..4a0c5bc 100644 > --- 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(); Applied, thanks! -- To unsubscribe from this list: send the line "unsubscribe linux-s390" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html