[PATCH] fix return value for sysfs_rename_dir stub

From: Stephen Hemminger
Date: Fri May 21 2004 - 19:02:53 EST


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)
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/