aboutsummaryrefslogtreecommitdiffstats
path: root/net/irda
diff options
context:
space:
mode:
authorJoe Perches <joe@perches.com>2014-11-12 21:15:47 -0500
committerDavid S. Miller <davem@davemloft.net>2014-11-12 22:01:14 -0500
commita768851f94dbf74d07b1a86af732f142753f4071 (patch)
tree7e372f0c5d9a5562a996ab8856d5d22dbbd6db43 /net/irda
parent4d3c9d37f77566b04216dfc9a6513082002d7a1f (diff)
irda: Fix build failures after IRDA_DEBUG->pr_debug
Fix the build failures that result from the use of pr_debug without the referenced char * arrays being defined. Signed-off-by: Joe Perches <joe@perches.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/irda')
-rw-r--r--net/irda/ircomm/ircomm_event.c4
-rw-r--r--net/irda/ircomm/ircomm_tty_attach.c4
-rw-r--r--net/irda/iriap.c4
-rw-r--r--net/irda/irlap.c4
-rw-r--r--net/irda/irlap_event.c4
-rw-r--r--net/irda/irlmp_event.c4
6 files changed, 6 insertions, 18 deletions
diff --git a/net/irda/ircomm/ircomm_event.c b/net/irda/ircomm/ircomm_event.c
index 0476da24848c..b0730ac9f388 100644
--- a/net/irda/ircomm/ircomm_event.c
+++ b/net/irda/ircomm/ircomm_event.c
@@ -54,8 +54,7 @@ const char *const ircomm_state[] = {
54 "IRCOMM_CONN", 54 "IRCOMM_CONN",
55}; 55};
56 56
57#ifdef CONFIG_IRDA_DEBUG 57static const char *const ircomm_event[] __maybe_unused = {
58static const char *const ircomm_event[] = {
59 "IRCOMM_CONNECT_REQUEST", 58 "IRCOMM_CONNECT_REQUEST",
60 "IRCOMM_CONNECT_RESPONSE", 59 "IRCOMM_CONNECT_RESPONSE",
61 "IRCOMM_TTP_CONNECT_INDICATION", 60 "IRCOMM_TTP_CONNECT_INDICATION",
@@ -73,7 +72,6 @@ static const char *const ircomm_event[] = {
73 "IRCOMM_CONTROL_REQUEST", 72 "IRCOMM_CONTROL_REQUEST",
74 "IRCOMM_CONTROL_INDICATION", 73 "IRCOMM_CONTROL_INDICATION",
75}; 74};
76#endif /* CONFIG_IRDA_DEBUG */
77 75
78static int (*state[])(struct ircomm_cb *self, IRCOMM_EVENT event, 76static int (*state[])(struct ircomm_cb *self, IRCOMM_EVENT event,
79 struct sk_buff *skb, struct ircomm_info *info) = 77 struct sk_buff *skb, struct ircomm_info *info) =
diff --git a/net/irda/ircomm/ircomm_tty_attach.c b/net/irda/ircomm/ircomm_tty_attach.c
index 549ca143f0a9..61137f8b5293 100644
--- a/net/irda/ircomm/ircomm_tty_attach.c
+++ b/net/irda/ircomm/ircomm_tty_attach.c
@@ -89,8 +89,7 @@ const char *const ircomm_tty_state[] = {
89 "*** ERROR *** ", 89 "*** ERROR *** ",
90}; 90};
91 91
92#ifdef CONFIG_IRDA_DEBUG 92static const char *const ircomm_tty_event[] __maybe_unused = {
93static const char *const ircomm_tty_event[] = {
94 "IRCOMM_TTY_ATTACH_CABLE", 93 "IRCOMM_TTY_ATTACH_CABLE",
95 "IRCOMM_TTY_DETACH_CABLE", 94 "IRCOMM_TTY_DETACH_CABLE",
96 "IRCOMM_TTY_DATA_REQUEST", 95 "IRCOMM_TTY_DATA_REQUEST",
@@ -106,7 +105,6 @@ static const char *const ircomm_tty_event[] = {
106 "IRCOMM_TTY_GOT_LSAPSEL", 105 "IRCOMM_TTY_GOT_LSAPSEL",
107 "*** ERROR ****", 106 "*** ERROR ****",
108}; 107};
109#endif /* CONFIG_IRDA_DEBUG */
110 108
111static int (*state[])(struct ircomm_tty_cb *self, IRCOMM_TTY_EVENT event, 109static int (*state[])(struct ircomm_tty_cb *self, IRCOMM_TTY_EVENT event,
112 struct sk_buff *skb, struct ircomm_tty_info *info) = 110 struct sk_buff *skb, struct ircomm_tty_info *info) =
diff --git a/net/irda/iriap.c b/net/irda/iriap.c
index 7a93cdd1ac31..4a7ae32afa09 100644
--- a/net/irda/iriap.c
+++ b/net/irda/iriap.c
@@ -43,9 +43,8 @@
43#include <net/irda/iriap_event.h> 43#include <net/irda/iriap_event.h>
44#include <net/irda/iriap.h> 44#include <net/irda/iriap.h>
45 45
46#ifdef CONFIG_IRDA_DEBUG
47/* FIXME: This one should go in irlmp.c */ 46/* FIXME: This one should go in irlmp.c */
48static const char *const ias_charset_types[] = { 47static const char *const ias_charset_types[] __maybe_unused = {
49 "CS_ASCII", 48 "CS_ASCII",
50 "CS_ISO_8859_1", 49 "CS_ISO_8859_1",
51 "CS_ISO_8859_2", 50 "CS_ISO_8859_2",
@@ -58,7 +57,6 @@ static const char *const ias_charset_types[] = {
58 "CS_ISO_8859_9", 57 "CS_ISO_8859_9",
59 "CS_UNICODE" 58 "CS_UNICODE"
60}; 59};
61#endif /* CONFIG_IRDA_DEBUG */
62 60
63static hashbin_t *iriap = NULL; 61static hashbin_t *iriap = NULL;
64static void *service_handle; 62static void *service_handle;
diff --git a/net/irda/irlap.c b/net/irda/irlap.c
index 4b011b7aac80..7f2cafddfb6e 100644
--- a/net/irda/irlap.c
+++ b/net/irda/irlap.c
@@ -60,8 +60,7 @@ static void __irlap_close(struct irlap_cb *self);
60static void irlap_init_qos_capabilities(struct irlap_cb *self, 60static void irlap_init_qos_capabilities(struct irlap_cb *self,
61 struct qos_info *qos_user); 61 struct qos_info *qos_user);
62 62
63#ifdef CONFIG_IRDA_DEBUG 63static const char *const lap_reasons[] __maybe_unused = {
64static const char *const lap_reasons[] = {
65 "ERROR, NOT USED", 64 "ERROR, NOT USED",
66 "LAP_DISC_INDICATION", 65 "LAP_DISC_INDICATION",
67 "LAP_NO_RESPONSE", 66 "LAP_NO_RESPONSE",
@@ -71,7 +70,6 @@ static const char *const lap_reasons[] = {
71 "LAP_PRIMARY_CONFLICT", 70 "LAP_PRIMARY_CONFLICT",
72 "ERROR, NOT USED", 71 "ERROR, NOT USED",
73}; 72};
74#endif /* CONFIG_IRDA_DEBUG */
75 73
76int __init irlap_init(void) 74int __init irlap_init(void)
77{ 75{
diff --git a/net/irda/irlap_event.c b/net/irda/irlap_event.c
index 245d87b42020..0e1b4d79f745 100644
--- a/net/irda/irlap_event.c
+++ b/net/irda/irlap_event.c
@@ -78,8 +78,7 @@ static int irlap_state_sclose (struct irlap_cb *self, IRLAP_EVENT event,
78static int irlap_state_reset_check(struct irlap_cb *, IRLAP_EVENT event, 78static int irlap_state_reset_check(struct irlap_cb *, IRLAP_EVENT event,
79 struct sk_buff *, struct irlap_info *); 79 struct sk_buff *, struct irlap_info *);
80 80
81#ifdef CONFIG_IRDA_DEBUG 81static const char *const irlap_event[] __maybe_unused = {
82static const char *const irlap_event[] = {
83 "DISCOVERY_REQUEST", 82 "DISCOVERY_REQUEST",
84 "CONNECT_REQUEST", 83 "CONNECT_REQUEST",
85 "CONNECT_RESPONSE", 84 "CONNECT_RESPONSE",
@@ -119,7 +118,6 @@ static const char *const irlap_event[] = {
119 "BACKOFF_TIMER_EXPIRED", 118 "BACKOFF_TIMER_EXPIRED",
120 "MEDIA_BUSY_TIMER_EXPIRED", 119 "MEDIA_BUSY_TIMER_EXPIRED",
121}; 120};
122#endif /* CONFIG_IRDA_DEBUG */
123 121
124const char *const irlap_state[] = { 122const char *const irlap_state[] = {
125 "LAP_NDM", 123 "LAP_NDM",
diff --git a/net/irda/irlmp_event.c b/net/irda/irlmp_event.c
index 22c019ccd4af..e306cf2c1e04 100644
--- a/net/irda/irlmp_event.c
+++ b/net/irda/irlmp_event.c
@@ -48,8 +48,7 @@ const char *const irlsap_state[] = {
48 "LSAP_SETUP_PEND", 48 "LSAP_SETUP_PEND",
49}; 49};
50 50
51#ifdef CONFIG_IRDA_DEBUG 51static const char *const irlmp_event[] __maybe_unused = {
52static const char *const irlmp_event[] = {
53 "LM_CONNECT_REQUEST", 52 "LM_CONNECT_REQUEST",
54 "LM_CONNECT_CONFIRM", 53 "LM_CONNECT_CONFIRM",
55 "LM_CONNECT_RESPONSE", 54 "LM_CONNECT_RESPONSE",
@@ -75,7 +74,6 @@ static const char *const irlmp_event[] = {
75 "LM_LAP_DISCOVERY_CONFIRM", 74 "LM_LAP_DISCOVERY_CONFIRM",
76 "LM_LAP_IDLE_TIMEOUT", 75 "LM_LAP_IDLE_TIMEOUT",
77}; 76};
78#endif /* CONFIG_IRDA_DEBUG */
79 77
80/* LAP Connection control proto declarations */ 78/* LAP Connection control proto declarations */
81static void irlmp_state_standby (struct lap_cb *, IRLMP_EVENT, 79static void irlmp_state_standby (struct lap_cb *, IRLMP_EVENT,