From: Randy Dunlap Date: Thu, 1 May 2008 11:34:43 +0000 (-0700) Subject: sysfs: sysfs_update_group stub for CONFIG_SYSFS=n X-Git-Tag: v3.12-rc1~20952 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=2850699c59d513a0cd0c68f60f75609a5f9d4d32;p=kernel%2Fkernel-generic.git sysfs: sysfs_update_group stub for CONFIG_SYSFS=n scsi_transport_spi uses sysfs_update_group() when CONFIG_SYSFS=n, so provide a stub for it. next-20080423/drivers/scsi/scsi_transport_spi.c:1467: error: implicit declaration of function 'sysfs_update_group' make[3]: *** [drivers/scsi/scsi_transport_spi.o] Error 1 Signed-off-by: Randy Dunlap Cc: Greg KH Cc: James Bottomley Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/include/linux/sysfs.h b/include/linux/sysfs.h index 7858eac..27bad59 100644 --- a/include/linux/sysfs.h +++ b/include/linux/sysfs.h @@ -196,6 +196,12 @@ static inline int sysfs_update_group(struct kobject *kobj, return 0; } +static inline int sysfs_update_group(struct kobject *kobj, + const struct attribute_group *grp) +{ + return 0; +} + static inline void sysfs_remove_group(struct kobject *kobj, const struct attribute_group *grp) {