Skip to content

Commit

Permalink
sysfs: sysfs_update_group stub for CONFIG_SYSFS=n
Browse files Browse the repository at this point in the history
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: Greg KH <greg@kroah.com>
Cc: James Bottomley <James.Bottomley@HansenPartnership.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
  • Loading branch information
Randy Dunlap authored and Linus Torvalds committed May 1, 2008
1 parent 34990cf commit 2850699
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions include/linux/sysfs.h
Original file line number Diff line number Diff line change
Expand Up @@ -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)
{
Expand Down

0 comments on commit 2850699

Please sign in to comment.