linux-s390.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Re: [PATCH 1/1] s390: mm: use hugetlb_bad_size()
       [not found] <1476375607-7973-1-git-send-email-mayhs11saini@gmail.com>
@ 2016-10-14 10:24 ` Heiko Carstens
  0 siblings, 0 replies; only message in thread
From: Heiko Carstens @ 2016-10-14 10:24 UTC (permalink / raw)
  To: linux-s390

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@gmail.com>
> ---
>  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!

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2016-10-14 10:24 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <1476375607-7973-1-git-send-email-mayhs11saini@gmail.com>
2016-10-14 10:24 ` [PATCH 1/1] s390: mm: use hugetlb_bad_size() Heiko Carstens

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).