Skip to contentSkip to conversation

sysfs: sysfs_update_group stub for CONFIG_SYSFS=n

PATCH In review Randy Dunlap 2 participants 2 messages Apr 23, 2008 – Apr 30, 2008 Driver core

lore
Share & tools
lore
#0 lore raw

PATCH 2/2 sysfs: sysfs_update_group stub for CONFIG_SYSFS=n

From: Randy Dunlap <[email protected]>

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

---
 include/linux/sysfs.h |    6 ++++++
 1 file changed, 6 insertions(+)
include/linux/sysfs.h +6 -0
@@ -191,6 +191,12 @@ static inline int sysfs_create_group(str
 	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)
 {
#1 lore raw
Quoted 9 lines · Randy Dunlap

From: Randy Dunlap <[email protected]>

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

This patch seems lost. Current Linus GIT tree is still affected.

Regards,
Den