From: Kumar Gala <galak@kernel.crashing.org>
To: Frans Pop <elendil@planet.nl>
Cc: Linux Kernel Mailing List <linux-kernel@vger.kernel.org>,
Mel Gorman <mel@csn.ul.ie>,
Linus Torvalds <torvalds@linux-foundation.org>
Subject: Re: [PATCH][BUILDERR] mm: Fix build error with !CONFIG_HUGETLBFS
Date: Tue, 10 Feb 2009 16:57:36 -0600 [thread overview]
Message-ID: <B5B23369-BEA0-4420-9967-28ABC53B3C4B@kernel.crashing.org> (raw)
In-Reply-To: <200902102351.30418.elendil@planet.nl>
On Feb 10, 2009, at 4:51 PM, Frans Pop wrote:
> In commit 5a6fe1259506 an extra parameter was added to
> hugetlb_file_setup(),
> but the header file was not updated for the !CONFIG_HUGETLBFS case,
> which
> results in:
>
> ipc/shm.c:371:49: error: macro "hugetlb_file_setup" passed 3
> arguments,
> but takes just 2
>
> Signed-off-by: Frans Pop <elendil@planet.nl>
> Cc: Mel Gorman <mel@csn.ul.ie>
>
> diff --git a/include/linux/hugetlb.h b/include/linux/hugetlb.h
> index af09660..03de70f 100644
> --- a/include/linux/hugetlb.h
> +++ b/include/linux/hugetlb.h
> @@ -159,9 +159,9 @@ static inline void set_file_hugepages(struct
> file *file)
> }
> #else /* !CONFIG_HUGETLBFS */
>
> -#define is_file_hugepages(file) 0
> -#define set_file_hugepages(file) BUG()
> -#define hugetlb_file_setup(name,size) ERR_PTR(-ENOSYS)
> +#define is_file_hugepages(file) 0
> +#define set_file_hugepages(file) BUG()
> +#define hugetlb_file_setup(name,size,int) ERR_PTR(-ENOSYS)
might be slightly better as:
#define hugetlb_file_setup(name,size,acctflag) ERR_PTR(-ENOSYS)
otherwise ack.
- k
next prev parent reply other threads:[~2009-02-10 22:58 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-02-10 22:51 Frans Pop
2009-02-10 22:57 ` Kumar Gala [this message]
2009-02-11 0:22 ` Frans Pop
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=B5B23369-BEA0-4420-9967-28ABC53B3C4B@kernel.crashing.org \
--to=galak@kernel.crashing.org \
--cc=elendil@planet.nl \
--cc=linux-kernel@vger.kernel.org \
--cc=mel@csn.ul.ie \
--cc=torvalds@linux-foundation.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®