]> git.proxmox.com Git - mirror_ubuntu-focal-kernel.git/commitdiff
sysfs: sysfs_update_group stub for CONFIG_SYSFS=n
authorRandy Dunlap <randy.dunlap@oracle.com>
Wed, 30 Apr 2008 16:01:17 +0000 (09:01 -0700)
committerGreg Kroah-Hartman <gregkh@suse.de>
Wed, 30 Apr 2008 23:52:47 +0000 (16:52 -0700)
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 <randy.dunlap@oracle.com>
Cc: James Bottomley <James.Bottomley@HansenPartnership.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
include/linux/sysfs.h

index add3c5a40827f7824169159a140884da38291d17..7858eac40aa7be8e27f9091806f2b194eabedd61 100644 (file)
@@ -190,6 +190,12 @@ static inline int sysfs_create_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)
 {