From: Paul Bolle Date: Sat, 14 Jul 2012 23:11:55 +0000 (+0000) Subject: gigaset: silence GCC warning for unused 'format_ie' X-Git-Tag: v3.2.95~34 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=bc23ded31a8b8dbc6fc13a35ed892f9e4f09e37e;p=thirdparty%2Fkernel%2Fstable.git gigaset: silence GCC warning for unused 'format_ie' commit 6ba6047bf99cf4ade4f63b6b3d97cc3ad763b678 upstream. Building Gigaset's CAPI support without Gigaset's debugging enabled triggers this GCC warning: 'format_ie' defined but not used [-Wunused-function] Silence this warning by wrapping format_ie() in an "#ifdef CONFIG_GIGASET_DEBUG" and "#endif" pair. Signed-off-by: Paul Bolle Signed-off-by: David S. Miller Signed-off-by: Ben Hutchings --- diff --git a/drivers/isdn/gigaset/capi.c b/drivers/isdn/gigaset/capi.c index 08c2329ffac88..ba45c77efc944 100644 --- a/drivers/isdn/gigaset/capi.c +++ b/drivers/isdn/gigaset/capi.c @@ -306,6 +306,7 @@ static inline void dump_rawmsg(enum debuglevel level, const char *tag, * format CAPI IE as string */ +#ifdef CONFIG_GIGASET_DEBUG static const char *format_ie(const char *ie) { static char result[3*MAX_FMT_IE_LEN]; @@ -331,6 +332,7 @@ static const char *format_ie(const char *ie) *--pout = 0; return result; } +#endif /* * emit DATA_B3_CONF message