From a768851f94dbf74d07b1a86af732f142753f4071 Mon Sep 17 00:00:00 2001 From: Joe Perches Date: Wed, 12 Nov 2014 18:15:47 -0800 Subject: 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 Signed-off-by: David S. Miller --- net/irda/irlap.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'net/irda/irlap.c') 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) { -- cgit