]> git.hungrycats.org Git - linux/commit
btrfs: switch helper macros to static inlines in sysfs.h
authorDavid Sterba <dsterba@suse.cz>
Tue, 24 Feb 2015 18:40:41 +0000 (19:40 +0100)
committerZygo Blaxell <zblaxell@waya.furryterror.org>
Fri, 27 Mar 2015 03:33:28 +0000 (23:33 -0400)
commit57f8d66add973141a70a44ac45cf58df72b80735
treef921be60409227e9af7f997dc4e36c707a01ba73
parenta81178e91676dd3468335ce15a3e84e0ff2d0d90
btrfs: switch helper macros to static inlines in sysfs.h

The conversion macros use nested container_of that leads to a warning

fs/btrfs/sysfs.c: In function 'btrfs_feature_visible':
fs/btrfs/sysfs.c:183:8: warning: declaration of '__mptr' shadows a previous local
fs/btrfs/sysfs.c:183:8: warning: shadowed declaration is here

Use of functions will add proper type checking.

Signed-off-by: David Sterba <dsterba@suse.cz>
(cherry picked from commit 093adbcedf123f366e5eef0c4ccd815920f725f3)
fs/btrfs/sysfs.h