summaryrefslogtreecommitdiff
path: root/net/irda/irlap.c
diff options
context:
space:
mode:
authorJoe Perches <joe@perches.com>2014-11-12 18:15:47 -0800
committerDavid S. Miller <davem@davemloft.net>2014-11-12 22:01:14 -0500
commita768851f94dbf74d07b1a86af732f142753f4071 (patch)
tree7e372f0c5d9a5562a996ab8856d5d22dbbd6db43 /net/irda/irlap.c
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/irlap.c')
-rw-r--r--net/irda/irlap.c4
1 files changed, 1 insertions, 3 deletions
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);
static void irlap_init_qos_capabilities(struct irlap_cb *self,
struct qos_info *qos_user);
-#ifdef CONFIG_IRDA_DEBUG
-static const char *const lap_reasons[] = {
+static const char *const lap_reasons[] __maybe_unused = {
"ERROR, NOT USED",
"LAP_DISC_INDICATION",
"LAP_NO_RESPONSE",
@@ -71,7 +70,6 @@ static const char *const lap_reasons[] = {
"LAP_PRIMARY_CONFLICT",
"ERROR, NOT USED",
};
-#endif /* CONFIG_IRDA_DEBUG */
int __init irlap_init(void)
{