linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Stephen Hemminger <shemminger@osdl.org>
To: Greg KH <greg@kroah.com>
Cc: linux-kernel@vger.kernel.org
Subject: [PATCH] fix return value for sysfs_rename_dir stub
Date: Thu, 20 May 2004 11:57:46 -0700	[thread overview]
Message-ID: <20040520115746.4645797c@dell_ss3.pdx.osdl.net> (raw)

sysfs_rename_dir changed to return a value.  The stub was not updated.
This causes compile failure for !CONFIG_SYSFS in lib/kobject.c

--- linux-2.6/include/linux/sysfs.h	2004-05-18 11:37:34.000000000 -0700
+++ bridge-2.6/include/linux/sysfs.h	2004-05-20 11:46:02.814243528 -0700
@@ -80,9 +80,9 @@
 	;
 }
 
-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)

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

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=20040520115746.4645797c@dell_ss3.pdx.osdl.net \
    --to=shemminger@osdl.org \
    --cc=greg@kroah.com \
    --cc=linux-kernel@vger.kernel.org \
    /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;
as well as URLs for NNTP newsgroup(s).