From: Damien Le Moal Date: Mon, 31 Oct 2022 02:30:31 +0000 (+0900) Subject: zonefs: Remove to_attr() helper function X-Git-Tag: v6.6.17~6127^2~2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=61ba9e9712e187e019e6451bb9fc8eb24685fc50;p=platform%2Fkernel%2Flinux-rpi.git 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 Reviewed-by: Johannes Thumshirn --- diff --git a/fs/zonefs/sysfs.c b/fs/zonefs/sysfs.c index 9cb6755..9920689 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)