mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Maneesh Soni <maneesh@in.ibm.com>
To: Steven Cole <scole@lanl.gov>
Cc: Kernel Mailing List <linux-kernel@vger.kernel.org>,
	Greg KH <greg@kroah.com>
Subject: 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
Date: Fri, 21 May 2004 16:55:18 -0500	[thread overview]
Message-ID: <20040521215518.GB14106@in.ibm.com> (raw)
In-Reply-To: <E256AB9C-A9A0-11D8-A7EA-000A95CC3A8A@lanl.gov>

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

      reply	other threads:[~2004-05-21 21:59 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-05-19 14:29 Steven Cole
2004-05-21 21:55 ` Maneesh Soni [this message]

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=20040521215518.GB14106@in.ibm.com \
    --to=maneesh@in.ibm.com \
    --cc=greg@kroah.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=scole@lanl.gov \
    /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®