Skip to contentSkip to conversation

Staging: rtl8192u: Staticfy debug method.

PATCH In review [email protected] 3 participants 5 messages Jul 30, 2014 – Jul 31, 2014 Staging

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Staging: rtl8192u: Staticfy debug method.

From: Fernando Apesteguia <[email protected]>

Add static to debug method.

---
 drivers/staging/rtl8192u/r8192U_core.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/staging/rtl8192u/r8192U_core.c +1 -1
index 7640386..c732a67 100644
@@ -667,7 +667,7 @@ static void tx_timeout(struct net_device *dev)
 
 
 /* this is only for debug */
-void dump_eprom(struct net_device *dev)
+static void dump_eprom(struct net_device *dev)
 {
 	int i;
 	for (i = 0; i < 63; i++)
Signature · 1 line
1.7.9.5
maintainer
#1 lore raw
Quoted 14 lines · On Wed, Jul 30, 2014 at 11:33:41PM +0200, [email protected] wrote:

From: Fernando Apesteguia <[email protected]>

Add static to debug method.

---
 drivers/staging/rtl8192u/r8192U_core.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/staging/rtl8192u/r8192U_core.c +0 -0
index 7640386..c732a67 100644

drivers/staging/rtl8192u/r8192U_core.c static void tx_timeout(struct net_device *dev) · line 673

Quoted 8 lines
drivers/staging/rtl8192u/r8192U_core.c +1 -1
@@ -667,7 +667,7 @@ static void tx_timeout(struct net_device *dev)
 
 
 /* this is only for debug */
-void dump_eprom(struct net_device *dev)
+static void dump_eprom(struct net_device *dev)
 {
 	int i;
 	for (i = 0; i < 63; i++)

Someone sent this patch just before you :(

#3 lore raw
Quoted 4 lines · Dan Carpenter

You need to compile these things before sending them...

This adds a GCC warning about uncalled functions.

Sorry, but I did compile it with

make C=1 M=drivers/staging

But for the function to be called, DEBUG_EPROM must be defined and I had it defined. That's why I overlooked the warning.

Apologies.

Quoted 4 lines

regards,
dan carpenter

#4 lore raw
Quoted 4 lines · Fernando Apesteguía
Quoted 3 lines · Dan Carpenter

You need to compile these things before sending them...

Quoted 8 lines
Quoted 1 line

This adds a GCC warning about uncalled functions.

Sorry, but I did compile it with

make C=1 M=drivers/staging

But for the function to be called, DEBUG_EPROM must be defined and I had it defined. That's why I overlooked the warning.

Ah. Ok.

regards,
dan carpenter