Skip to content

Commit 61ba9e9

Browse files
author
Damien Le Moal
committed
zonefs: Remove to_attr() helper function
to_attr() in zonefs sysfs code is unused, which it causes a warning when compiling with clang and W=1. Delete it to prevent the warning. Signed-off-by: Damien Le Moal <damien.lemoal@opensource.wdc.com> Reviewed-by: Johannes Thumshirn <johannes.thumshirn@wdc.com>
1 parent 7dd12d6 commit 61ba9e9

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

fs/zonefs/sysfs.c

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,6 @@ struct zonefs_sysfs_attr {
1515
ssize_t (*show)(struct zonefs_sb_info *sbi, char *buf);
1616
};
1717

18-
static inline struct zonefs_sysfs_attr *to_attr(struct attribute *attr)
19-
{
20-
return container_of(attr, struct zonefs_sysfs_attr, attr);
21-
}
22-
2318
#define ZONEFS_SYSFS_ATTR_RO(name) \
2419
static struct zonefs_sysfs_attr zonefs_sysfs_attr_##name = __ATTR_RO(name)
2520

0 commit comments

Comments
 (0)