All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v2] Staging: rtl8192e: Fix sparse warning
@ 2014-04-06 18:43 Joel Pelaez Jorge
  2014-04-06 18:49 ` Joe Perches
  2014-04-06 19:01 ` Greg Kroah-Hartman
  0 siblings, 2 replies; 9+ messages in thread
From: Joel Pelaez Jorge @ 2014-04-06 18:43 UTC (permalink / raw)
  To: Greg Kroah-Hartman, Silvan Jegen; +Cc: devel, linux-kernel

Fix a sparse warning, non static symbol is no declared as such.
And fix a conflict with static function declared extern to include
rtl_wx.h header.

drivers/staging/rtl8192e/rtl8192e/rtl_wx.c:1323:24: warning:
symbol 'r8192_wx_handlers_def' was not declared. Should it be static?

Signed-off-by: Joel Pelaez Jorge <joelpelaez@gmail.com>
---
  drivers/staging/rtl8192e/rtl8192e/rtl_wx.c |    3 ++-
  1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/drivers/staging/rtl8192e/rtl8192e/rtl_wx.c 
b/drivers/staging/rtl8192e/rtl8192e/rtl_wx.c
index 498995d..f17584d 100644
--- a/drivers/staging/rtl8192e/rtl8192e/rtl_wx.c
+++ b/drivers/staging/rtl8192e/rtl8192e/rtl_wx.c
@@ -19,6 +19,7 @@

  #include <linux/string.h>
  #include "rtl_core.h"
+#include "rtl_wx.h"

  #define RATE_COUNT 12
  static u32 rtl8192_rates[] = {
@@ -1293,7 +1294,7 @@ static iw_handler r8192_private_handler[] = {
  	(iw_handler)r8192_wx_get_PromiscuousMode,
  };

-static struct iw_statistics *r8192_get_wireless_stats(struct net_device 
*dev)
+struct iw_statistics *r8192_get_wireless_stats(struct net_device *dev)
  {
  	struct r8192_priv *priv = rtllib_priv(dev);
  	struct rtllib_device *ieee = priv->rtllib;
-- 
1.7.10.4


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

end of thread, other threads:[~2014-04-06 20:56 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-04-06 18:43 [PATCH v2] Staging: rtl8192e: Fix sparse warning Joel Pelaez Jorge
2014-04-06 18:49 ` Joe Perches
2014-04-06 19:00   ` Joel Pelaez Jorge
2014-04-06 19:02     ` Joe Perches
2014-04-06 19:01 ` Greg Kroah-Hartman
2014-04-06 19:12   ` Joel Pelaez Jorge
2014-04-06 20:26     ` Greg Kroah-Hartman
2014-04-06 20:43       ` Joel Pelaez Jorge
2014-04-06 20:59         ` Greg Kroah-Hartman

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.