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)
committerDavid Sterba <dsterba@suse.cz>
Tue, 3 Mar 2015 16:24:02 +0000 (17:24 +0100)
commit093adbcedf123f366e5eef0c4ccd815920f725f3
treee1b1a6d5d52f76038af853d2c4b40f6cf7821467
parent9d644a623ec48e28ca3887e616456aba63fd0558
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>
fs/btrfs/sysfs.h