summaryrefslogtreecommitdiff
path: root/fs/zonefs/sysfs.c
diff options
context:
space:
mode:
authorDamien Le Moal <damien.lemoal@opensource.wdc.com>2022-10-31 11:30:31 +0900
committerDamien Le Moal <damien.lemoal@opensource.wdc.com>2022-11-16 16:08:31 +0900
commit61ba9e9712e187e019e6451bb9fc8eb24685fc50 (patch)
treea92709dc3d3d993511b3f7234a6caac26a7fa22f /fs/zonefs/sysfs.c
parent7dd12d65ac646046a3fe0bbf9a4e86f4514207b3 (diff)
downloadlwn-61ba9e9712e187e019e6451bb9fc8eb24685fc50.tar.gz
lwn-61ba9e9712e187e019e6451bb9fc8eb24685fc50.zip
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>
Diffstat (limited to 'fs/zonefs/sysfs.c')
-rw-r--r--fs/zonefs/sysfs.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/fs/zonefs/sysfs.c b/fs/zonefs/sysfs.c
index 9cb6755ce39a..9920689dc098 100644
--- a/fs/zonefs/sysfs.c
+++ b/fs/zonefs/sysfs.c
@@ -15,11 +15,6 @@ struct zonefs_sysfs_attr {
ssize_t (*show)(struct zonefs_sb_info *sbi, char *buf);
};
-static inline struct zonefs_sysfs_attr *to_attr(struct attribute *attr)
-{
- return container_of(attr, struct zonefs_sysfs_attr, attr);
-}
-
#define ZONEFS_SYSFS_ATTR_RO(name) \
static struct zonefs_sysfs_attr zonefs_sysfs_attr_##name = __ATTR_RO(name)