public inbox for kernel-janitors@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] staging/wlags49_hs: Fix build error when CONFIG_SYSFS is
@ 2010-06-11  6:35 Javier Martinez Canillas
  2010-06-11  6:41 ` [PATCH] staging/wlags49_hs: Fix build error when CONFIG_SYSFS Joe Perches
  2010-06-11 22:18 ` Javier Martinez Canillas
  0 siblings, 2 replies; 6+ messages in thread
From: Javier Martinez Canillas @ 2010-06-11  6:35 UTC (permalink / raw)
  To: Greg Kroah-Hartman, Henk de Groot, linux-kernel, devel,
	kernel-janitors

With current linux-next I got a build error with wlags49_h2 driver when CONFIG_SYSFS is not set.

This patch solves the issue.

Signed-off-by: Javier Martinez Canillas <martinez.javier@gmail.com>
---
 drivers/staging/wlags49_h2/wl_sysfs.h |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/staging/wlags49_h2/wl_sysfs.h b/drivers/staging/wlags49_h2/wl_sysfs.h
index 6d96d03..7d5895d 100644
--- a/drivers/staging/wlags49_h2/wl_sysfs.h
+++ b/drivers/staging/wlags49_h2/wl_sysfs.h
@@ -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; };
+#define register_wlags_sysfs(net_device) { }
+#define unregister_wlags_sysfs(net_device) { }
 #endif
-- 
1.7.0.4






^ permalink raw reply related	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2010-06-11 22:18 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-06-11  6:35 [PATCH] staging/wlags49_hs: Fix build error when CONFIG_SYSFS is Javier Martinez Canillas
2010-06-11  6:41 ` [PATCH] staging/wlags49_hs: Fix build error when CONFIG_SYSFS Joe Perches
2010-06-11 12:46   ` [PATCH] staging/wlags49_hs: Fix build error when CONFIG_SYSFS is Javier Martinez Canillas
2010-06-11 16:52     ` [PATCH] staging/wlags49_hs: Fix build error when CONFIG_SYSFS Joe Perches
2010-06-11 22:12       ` [PATCH] staging/wlags49_hs: Fix build error when CONFIG_SYSFS is Javier Martinez Canillas
2010-06-11 22:18 ` Javier Martinez Canillas

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox