Skip to contentSkip to conversation

fix return value for sysfs_rename_dir stub

PATCH New Stephen Hemminger 1 participant 1 message May 21, 2004 Driver core

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 fix return value for sysfs_rename_dir stub

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

include/linux/sysfs.h +2 -2
@@ -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)