LKML Archive on lore.kernel.org
help / color / mirror / Atom feed
* 2.6.6-bk-current and no CONFIG_SYSFS gives lib/kobject.c:395: error: void value not ignored as it ought to be
@ 2004-05-19 14:29 Steven Cole
2004-05-21 21:55 ` Maneesh Soni
0 siblings, 1 reply; 2+ messages in thread
From: Steven Cole @ 2004-05-19 14:29 UTC (permalink / raw)
To: Kernel Mailing List; +Cc: Maneesh Soni
Using the current 2.6.6-bk kernel, and without CONFIG_SYSFS,
I get this error:
CC lib/kobject.o
lib/kobject.c: In function `kobject_rename':
lib/kobject.c:395: error: void value not ignored as it ought to be
CC net/core/scm.o
make[1]: *** [lib/kobject.o] Error 1
With CONFIG_SYSFS=y, the kernel builds OK.
Steven
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: 2.6.6-bk-current and no CONFIG_SYSFS gives lib/kobject.c:395: error: void value not ignored as it ought to be
2004-05-19 14:29 2.6.6-bk-current and no CONFIG_SYSFS gives lib/kobject.c:395: error: void value not ignored as it ought to be Steven Cole
@ 2004-05-21 21:55 ` Maneesh Soni
0 siblings, 0 replies; 2+ messages in thread
From: Maneesh Soni @ 2004-05-21 21:55 UTC (permalink / raw)
To: Steven Cole; +Cc: Kernel Mailing List, Greg KH
On Wed, May 19, 2004 at 08:29:06AM -0600, Steven Cole wrote:
> Using the current 2.6.6-bk kernel, and without CONFIG_SYSFS,
> I get this error:
>
> CC lib/kobject.o
> lib/kobject.c: In function `kobject_rename':
> lib/kobject.c:395: error: void value not ignored as it ought to be
> CC net/core/scm.o
> make[1]: *** [lib/kobject.o] Error 1
>
> With CONFIG_SYSFS=y, the kernel builds OK.
>
> Steven
>
The sysfs_rename_dir() interface was changed recently but I forgto to change
the definition if CONFIG_SYSFS is not define. I think the following patch
should be sufficient.
Thanks
Maneesh
o Fix the definition for sysfs_rename_dir() when CONFIG_SYSFS is not
defined.
include/linux/sysfs.h | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff -puN include/linux/sysfs.h~fix-CONFIG_SYSFS include/linux/sysfs.h
--- linux-2.6.6-bk6/include/linux/sysfs.h~fix-CONFIG_SYSFS 2004-05-21 16:22:24.000000000 -0500
+++ linux-2.6.6-bk6-maneesh/include/linux/sysfs.h 2004-05-21 16:41:32.000000000 -0500
@@ -80,9 +80,9 @@ static inline void sysfs_remove_dir(stru
;
}
-static inline void sysfs_rename_dir(struct kobject * k, const char *new_name)
+static inline int sysfs_rename_dir(struct kobject * k, const char *new_name)
{
- ;
+ return 0;
}
static inline int sysfs_create_file(struct kobject * k, const struct attribute * a)
_
--
Maneesh Soni
Linux Technology Center,
IBM Software Lab, Bangalore, India
email: maneesh@in.ibm.com
Phone: 91-80-25044999 Fax: 91-80-25268553
T/L : 9243696
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2004-05-21 21:59 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-05-19 14:29 2.6.6-bk-current and no CONFIG_SYSFS gives lib/kobject.c:395: error: void value not ignored as it ought to be Steven Cole
2004-05-21 21:55 ` Maneesh Soni
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).