login
Header Space

 
 

[patch] sysfs: build fix

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Linus Torvalds <torvalds@...>
Cc: Linux Kernel Mailing List <linux-kernel@...>, Andrew Morton <akpm@...>, Greg Kroah-Hartman <gregkh@...>
Date: Sunday, May 4, 2008 - 3:29 am

x86.git testing found the following build failure on v2.6.26-rc1:

  In file included from include/linux/kobject.h:22,
                   from include/linux/module.h:17,
                   from include/linux/crypto.h:22,
                   from arch/x86/kernel/asm-offsets_32.c:8,
                   from arch/x86/kernel/asm-offsets.c:3:
  include/linux/sysfs.h:201: error: redefinition of 'sysfs_update_group'
  include/linux/sysfs.h:195: error: previous definition of 'sysfs_update_group' was here
  make[1]: *** [arch/x86/kernel/asm-offsets.s] Error 1
  make: *** [prepare0] Error 2

with the following config:

    http://redhat.com/~mingo/misc/config-Sun_May__4_07_09_30_CEST_2008.bad

the reason for the build failure is the duplicate definition of the 
sysfs_update_group() inline function in include/linux/sysfs.h.

The duplication was a merge error: it was added via -mm by commit 
v2.6.25-7262-g2850699, "sysfs: sysfs_update_group stub for 
CONFIG_SYSFS=n" a day before v2.6.26-rc1, but a day before that the same 
commit was already merged upstream via the sysfs tree, with commit 
v2.6.25-7211-g1cbfb7a.

Signed-off-by: Ingo Molnar <mingo@elte.hu>
---
 include/linux/sysfs.h |    6 ------
 1 file changed, 6 deletions(-)

Index: linux/include/linux/sysfs.h
===================================================================
--- linux.orig/include/linux/sysfs.h
+++ linux/include/linux/sysfs.h
@@ -196,12 +196,6 @@ static inline int sysfs_update_group(str
 	return 0;
 }
 
-static inline int sysfs_update_group(struct kobject *kobj,
-				const struct attribute_group *grp)
-{
-	return 0;
-}
-
 static inline void sysfs_remove_group(struct kobject *kobj,
 				      const struct attribute_group *grp)
 {
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Linux 2.6.26-rc1, Linus Torvalds, (Sat May 3, 3:38 pm)
Re: Scheduling problems ? [ Was: Linux 2.6.26-rc1 ], Ingo Molnar, (Tue May 6, 9:11 am)
Re: Linux 2.6.26-rc1, Andreas Mohr, (Mon May 5, 1:39 am)
Re: Linux 2.6.26-rc1, Ingo Molnar, (Mon May 5, 3:30 am)
Re: Linux 2.6.26-rc1, Stephen Rothwell, (Mon May 5, 7:51 pm)
Re: Linux 2.6.26-rc1, Ingo Molnar, (Mon May 5, 8:17 pm)
Re: Linux 2.6.26-rc1, Stephen Rothwell, (Tue May 6, 1:48 am)
Re: Linux 2.6.26-rc1, David Miller, (Mon May 5, 7:55 pm)
Re: Linux 2.6.26-rc1, Stephen Rothwell, (Tue May 6, 1:35 am)
Re: Linux 2.6.26-rc1, David Miller, (Tue May 6, 2:56 am)
Re: Linux 2.6.26-rc1, Stephen Rothwell, (Tue May 6, 3:26 am)
Re: Linux 2.6.26-rc1, Ingo Molnar, (Mon May 5, 8:21 pm)
Re: Linux 2.6.26-rc1, Andrew Morton, (Mon May 5, 8:16 pm)
Re: Linux 2.6.26-rc1, Stephen Rothwell, (Tue May 6, 1:57 am)
Re: Linux 2.6.26-rc1, Mauro Carvalho Chehab, (Mon May 5, 4:14 pm)
Re: Linux 2.6.26-rc1, Ingo Molnar, (Tue May 6, 9:07 am)
Re: Linux 2.6.26-rc1, Ingo Molnar, (Wed May 7, 4:35 am)
Re: Linux 2.6.26-rc1, Jan Engelhardt, (Sun May 4, 2:40 pm)
[patch] sysfs: build fix, Ingo Molnar, (Sun May 4, 3:29 am)
Re: Linux 2.6.26-rc1, Alistair John Strachan, (Sat May 3, 5:47 pm)
Re: Linux 2.6.26-rc1, Alistair John Strachan, (Sat May 3, 5:53 pm)
Re: Linux 2.6.26-rc1, Robin Holt, (Sun May 4, 8:30 am)
Re: Linux 2.6.26-rc1, Alistair John Strachan, (Sun May 4, 9:56 am)
Re: Linux 2.6.26-rc1, Robin Holt, (Sun May 4, 12:09 pm)
Re: Linux 2.6.26-rc1, Mauro Carvalho Chehab, (Mon May 5, 5:04 pm)
Re: Linux 2.6.26-rc1, Alistair John Strachan, (Tue May 6, 4:02 am)
Re: Linux 2.6.26-rc1, Mauro Carvalho Chehab, (Tue May 6, 6:31 am)
Re: Linux 2.6.26-rc1, Stefan Richter, (Tue May 6, 10:34 am)
Re: Linux 2.6.26-rc1, Mauro Carvalho Chehab, (Tue May 6, 3:13 pm)
Re: Linux 2.6.26-rc1, Stefan Richter, (Tue May 6, 3:44 pm)
Re: Linux 2.6.26-rc1, Mauro Carvalho Chehab, (Tue May 6, 4:06 pm)
Re: Linux 2.6.26-rc1, Stefan Richter, (Tue May 6, 4:47 pm)
Re: Linux 2.6.26-rc1, Stefan Richter, (Tue May 6, 7:48 pm)
Re: Linux 2.6.26-rc1, Mauro Carvalho Chehab, (Tue May 6, 6:39 pm)
Re: Linux 2.6.26-rc1, Stefan Richter, (Tue May 6, 7:36 pm)
Re: Linux 2.6.26-rc1, Mauro Carvalho Chehab, (Thu May 8, 8:48 am)
Re: Linux 2.6.26-rc1, Stefan Richter, (Thu May 8, 10:11 am)
Re: Linux 2.6.26-rc1, Stefan Richter, (Tue May 6, 10:54 am)
Re: Linux 2.6.26-rc1, Alistair John Strachan, (Sun May 4, 12:33 pm)
speck-geostationary