staging/wlags49_hs: Fix build error when CONFIG_SYSFS is not set
Subsystems (2)
PATCH 1/1 staging/wlags49_hs: Fix build error when CONFIG_SYSFS is not set
I got a build error in linux-next while compiling wlags49_h2 driver when CONFIG_SYSFS not set.
This is the second version of this patch, as Joe recommended I'm using functions instead of macros.
Thanks a lot
Signed-off-by Javier Martinez Canillas <[email protected]>
--- drivers/staging/wlags49_h2/wl_sysfs.h | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-)
drivers/staging/wlags49_h2/wl_sysfs.h +2 -2
@@ -2,6 +2,6 @@extern void register_wlags_sysfs (struct net_device *);extern void unregister_wlags_sysfs (struct net_device *);#else -static void register_wlags_sysfs (struct net_device *) {return ; }; -static void unregister_wlags_sysfs (struct net_device *) {return ; }; +static inline void register_wlags_sysfs (struct net_device *net) { } +static inline void unregister_wlags_sysfs (struct net_device *net) { }#endif
Signature · 1 line
1.7.0.4