diff options
author | Joe Perches <joe@perches.com> | 2014-11-13 03:15:47 +0100 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2014-11-13 04:01:14 +0100 |
commit | a768851f94dbf74d07b1a86af732f142753f4071 (patch) | |
tree | 7e372f0c5d9a5562a996ab8856d5d22dbbd6db43 /net/irda/ircomm/ircomm_event.c | |
parent | hyperv: Add processing of MTU reduced by the host (diff) | |
download | linux-a768851f94dbf74d07b1a86af732f142753f4071.tar.xz linux-a768851f94dbf74d07b1a86af732f142753f4071.zip |
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/ircomm/ircomm_event.c')
-rw-r--r-- | net/irda/ircomm/ircomm_event.c | 4 |
1 files changed, 1 insertions, 3 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[] = { "IRCOMM_CONN", }; -#ifdef CONFIG_IRDA_DEBUG -static const char *const ircomm_event[] = { +static const char *const ircomm_event[] __maybe_unused = { "IRCOMM_CONNECT_REQUEST", "IRCOMM_CONNECT_RESPONSE", "IRCOMM_TTP_CONNECT_INDICATION", @@ -73,7 +72,6 @@ static const char *const ircomm_event[] = { "IRCOMM_CONTROL_REQUEST", "IRCOMM_CONTROL_INDICATION", }; -#endif /* CONFIG_IRDA_DEBUG */ static int (*state[])(struct ircomm_cb *self, IRCOMM_EVENT event, struct sk_buff *skb, struct ircomm_info *info) = |