Re: Linux 2.6.23

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Linus Torvalds <torvalds@...>
Cc: Linux Kernel Mailing List <linux-kernel@...>
Date: Wednesday, October 10, 2007 - 3:44 am

Hi Linus et al.,

2.6.23 does not build with my usual .config on x86_64 and gcc-4.2.1:

In file included from fs/drop_caches.c:8:
include/linux/mm.h:1210: warning: 'struct super_block' declared inside parameter list
nclude/linux/mm.h:1210: warning: its scope is only this definition or declaration, which is probably not what you want
fs/drop_caches.c:17: error: conflicting types for 'drop_pagecache_sb'
include/linux/mm.h:1210: error: previous declaration of 'drop_pagecache_sb' was here
fs/drop_caches.c:28: error: conflicting types for 'drop_pagecache_sb'
include/linux/mm.h:1210: error: previous declaration of 'drop_pagecache_sb' was here

A little forward declaration fixes this:

--- linux-2.6.23/include/linux/mm.h.vanilla	2007-10-10 09:28:33.000000000 +0200
+++ linux-2.6.23/include/linux/mm.h	2007-10-10 09:30:23.000000000 +0200
@@ -1207,6 +1207,7 @@
 					void __user *, size_t *, loff_t *);
 unsigned long shrink_slab(unsigned long scanned, gfp_t gfp_mask,
 			unsigned long lru_pages);
+struct super_block;
 extern void drop_pagecache_sb(struct super_block *);
 void drop_pagecache(void);
 void drop_slab(void);

You probably end up fixing it some other way, but as I do not know this
file inside out I just wanted to drop a note.

Yours,
  René Rebe

On Tuesday 09 October 2007 22:54:30 Linus Torvalds wrote:


-- 
  René Rebe - ExactCODE GmbH - Europe, Germany, Berlin
  http://exactcode.de | http://t2-project.org | http://rene.rebe.name
-
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Linux 2.6.23, Linus Torvalds, (Tue Oct 9, 4:54 pm)
Re: Linux 2.6.23, René Rebe, (Wed Oct 10, 3:44 am)
Re: Linux 2.6.23, Ingo Molnar, (Wed Oct 10, 3:14 pm)
Re: Linux 2.6.23, Krzysztof Halasa, (Wed Oct 10, 7:27 pm)
Re: Linux 2.6.23, Andi Kleen, (Wed Oct 10, 4:04 pm)
Re: Linux 2.6.23, Michael Tokarev, (Wed Oct 10, 3:26 pm)
Re: Linux 2.6.23, Alexey Dobriyan, (Wed Oct 10, 4:37 am)
Re: Linux 2.6.23, Michael Tokarev, (Wed Oct 10, 5:12 am)
Re: Linux 2.6.23, Alexey Dobriyan, (Wed Oct 10, 6:36 am)
Re: Linux 2.6.23, Jan Engelhardt, (Wed Oct 10, 6:53 am)
Re: Linux 2.6.23, Michael Tokarev, (Wed Oct 10, 7:13 am)
Re: Linux 2.6.23, Nicholas Miell, (Wed Oct 10, 2:12 am)
Re: Linux 2.6.23, Ingo Molnar, (Wed Oct 10, 6:14 am)
Re: Linux 2.6.23, Nick Piggin, (Thu Oct 11, 5:16 am)
Re: Linux 2.6.23, Ingo Molnar, (Fri Oct 12, 1:46 am)
Re: Linux 2.6.23, Bill Davidsen, (Fri Oct 12, 8:21 am)
Re: Linux 2.6.23, Nick Piggin, (Thu Oct 11, 10:15 am)
Re: Linux 2.6.23, Zhang, Yanmin, (Wed Oct 10, 10:34 pm)
Re: Linux 2.6.23, Ingo Molnar, (Thu Oct 11, 9:32 am)
Re: Linux 2.6.23, Nicholas Miell, (Wed Oct 10, 9:20 pm)