Messages in this thread Patch in this message | | | Date | Thu, 20 May 2004 11:57:46 -0700 | From | Stephen Hemminger <> | Subject | [PATCH] 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
--- 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@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
| |