Staging: rtl8192u: Staticfy debug method.
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
@@ -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
Greg KH
maintainerQuoted 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.
Signed-off-by Fernando Apesteguia <[email protected]>--- drivers/staging/rtl8192u/r8192U_core.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)drivers/staging/rtl8192u/r8192U_core.c +0
-0
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 :(
You need to compile these things before sending them...
This adds a GCC warning about uncalled functions.
regards,
dan carpenter
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
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_EPROMmust be defined and I had it defined. That's why I overlooked the warning.
Ah. Ok.
regards,
dan carpenter