irda: irlmp_reasons[] can be static
Subsystems (2)
A message that is not in the archive (sent off-list or not yet received): 5171ea81.dFNn973/RcdmuuQR%[email protected]
PATCH 1/1 irda: irlmp_reasons[] can be static
Signed-off-by Fengguang Wu <[email protected]>
--- irlmp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
net/irda/irlmp.c +1 -1
@@ -58,7 +58,7 @@ int sysctl_discovery_slots = 6; /* 6 slots by default */int sysctl_lap_keepalive_time =LM_IDLE_TIMEOUT *1000 /HZ ;char sysctl_devname[65 ]; -const char *irlmp_reasons[] = { +static const char *irlmp_reasons[] = {"ERROR, NOT USED" ,"LM_USER_REQUEST" ,"LM_LAP_DISCONNECT" ,
Quoted 10 lines · Fengguang Wu
Signed-off-by Fengguang Wu <[email protected]>--- irlmp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)net/irda/irlmp.c +0
-0
net/irda/irlmp.c int sysctl_discovery_slots = 6; /* 6 slots by default */ · line 61
Quoted 5 lines
net/irda/irlmp.c +1
-1@@ -58,7 +58,7 @@ int sysctl_discovery_slots = 6; /* 6 slots by default */int sysctl_lap_keepalive_time =LM_IDLE_TIMEOUT *1000 /HZ ;char sysctl_devname[65 ]; -const char *irlmp_reasons[] = { +static const char *irlmp_reasons[] = {
Oops. Sorry for that. I do run Sparse on my patches but I missed that.
Acked-by Dan Carpenter <[email protected]>
regards,
dan carpenter
From: Dan Carpenter <[email protected]>
Date: Sat, 20 Apr 2013 14:11:51 +0300
Quoted 14 lines · Fengguang Wu
Quoted 13 lines
Signed-off-by Fengguang Wu <[email protected]>--- irlmp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)net/irda/irlmp.c +0
-0@@ -58,7 +58,7 @@ int sysctl_discovery_slots = 6; /* 6 slots by default */int sysctl_lap_keepalive_time =LM_IDLE_TIMEOUT *1000 /HZ ;char sysctl_devname[65 ];
Quoted 7 lines
net/irda/irlmp.c int sysctl_discovery_slots = 6; /* 6 slots by default */ · line 61
Quoted 2 lines
net/irda/irlmp.c +1
-1-const char *irlmp_reasons[] = { +static const char *irlmp_reasons[] = {Oops. Sorry for that. I do run Sparse on my patches but I missed that.
Acked-by Dan Carpenter <[email protected]>
Applied to net-next, thanks everyone.