* 2.6.29-rc4-git2 build failure
@ 2009-02-10 21:53 Chris Clayton
2009-02-10 22:27 ` [PATCH] hugetlbfs: fix build failure with !CONFIG_HUGETLBFS Stefan Richter
0 siblings, 1 reply; 3+ messages in thread
From: Chris Clayton @ 2009-02-10 21:53 UTC (permalink / raw)
To: LKML
2.6.29-rc4-git2 build fails after "git pull" a few minutes ago
CC ipc/shm.o
ipc/shm.c:371:49: error: macro "hugetlb_file_setup" passed 3
arguments, but takes just 2
ipc/shm.c: In function 'newseg':
ipc/shm.c:371: error: 'hugetlb_file_setup' undeclared (first use in
this function)
ipc/shm.c:371: error: (Each undeclared identifier is reported only once
ipc/shm.c:371: error: for each function it appears in.)
make[1]: *** [ipc/shm.o] Error 1
make: *** [ipc] Error 2
Happy to test patches
Chris
--
In a world without walls and fences, who needs windows and gates?
^ permalink raw reply [flat|nested] 3+ messages in thread
* [PATCH] hugetlbfs: fix build failure with !CONFIG_HUGETLBFS
2009-02-10 21:53 2.6.29-rc4-git2 build failure Chris Clayton
@ 2009-02-10 22:27 ` Stefan Richter
2009-02-10 22:44 ` Mel Gorman
0 siblings, 1 reply; 3+ messages in thread
From: Stefan Richter @ 2009-02-10 22:27 UTC (permalink / raw)
To: Chris Clayton; +Cc: linux-kernel, Linus Torvalds, Mel Gorman
Fix regression due to 5a6fe125950676015f5108fb71b2a67441755003,
"Do not account for the address space used by hugetlbfs using VM_ACCOUNT"
which added an argument to the function hugetlb_file_setup() but not to
the macro hugetlb_file_setup().
Reported-by: Chris Clayton <chris2553@googlemail.com>
Signed-off-by: Stefan Richter <stefanr@s5r6.in-berlin.de>
---
include/linux/hugetlb.h | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/include/linux/hugetlb.h b/include/linux/hugetlb.h
index af09660..03be7f2 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,acctflag) ERR_PTR(-ENOSYS)
#endif /* !CONFIG_HUGETLBFS */
--
1.6.0.6
--
Stefan Richter
-=====-==--= --=- -=-=-
http://arcgraph.de/sr/
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] hugetlbfs: fix build failure with !CONFIG_HUGETLBFS
2009-02-10 22:27 ` [PATCH] hugetlbfs: fix build failure with !CONFIG_HUGETLBFS Stefan Richter
@ 2009-02-10 22:44 ` Mel Gorman
0 siblings, 0 replies; 3+ messages in thread
From: Mel Gorman @ 2009-02-10 22:44 UTC (permalink / raw)
To: Stefan Richter; +Cc: Chris Clayton, linux-kernel, Linus Torvalds
On Tue, Feb 10, 2009 at 11:27:32PM +0100, Stefan Richter wrote:
> Fix regression due to 5a6fe125950676015f5108fb71b2a67441755003,
> "Do not account for the address space used by hugetlbfs using VM_ACCOUNT"
> which added an argument to the function hugetlb_file_setup() but not to
> the macro hugetlb_file_setup().
>
/me slaps self
> Reported-by: Chris Clayton <chris2553@googlemail.com>
> Signed-off-by: Stefan Richter <stefanr@s5r6.in-berlin.de>
Confirmed that it's a problem and this fixes it. Thanks
Acked-by: Mel Gorman <mel@csn.ul.ie>
> ---
> include/linux/hugetlb.h | 6 +++---
> 1 files changed, 3 insertions(+), 3 deletions(-)
>
> diff --git a/include/linux/hugetlb.h b/include/linux/hugetlb.h
> index af09660..03be7f2 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,acctflag) ERR_PTR(-ENOSYS)
>
> #endif /* !CONFIG_HUGETLBFS */
>
> --
> 1.6.0.6
>
>
> --
> Stefan Richter
> -=====-==--= --=- -=-=-
> http://arcgraph.de/sr/
>
--
Mel Gorman
Part-time Phd Student Linux Technology Center
University of Limerick IBM Dublin Software Lab
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2009-02-10 22:44 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-02-10 21:53 2.6.29-rc4-git2 build failure Chris Clayton
2009-02-10 22:27 ` [PATCH] hugetlbfs: fix build failure with !CONFIG_HUGETLBFS Stefan Richter
2009-02-10 22:44 ` Mel Gorman
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®