All of lore.kernel.org
 help / color / mirror / Atom feed
From: Heiko Carstens <heiko.carstens@de.ibm.com>
To: linux-s390@vger.kernel.org
Subject: Re: [PATCH 1/1] s390: mm: use hugetlb_bad_size()
Date: Fri, 14 Oct 2016 10:24:55 +0000	[thread overview]
Message-ID: <20161014102455.GB4047@osiris> (raw)
In-Reply-To: <1476375607-7973-1-git-send-email-mayhs11saini@gmail.com>

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!

           reply	other threads:[~2016-10-14 10:24 UTC|newest]

Thread overview: expand[flat|nested]  mbox.gz  Atom feed
 [parent not found: <1476375607-7973-1-git-send-email-mayhs11saini@gmail.com>]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20161014102455.GB4047@osiris \
    --to=heiko.carstens@de.ibm.com \
    --cc=linux-s390@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.