Commit 20fbdc35 authored by Randy Dunlap's avatar Randy Dunlap Committed by David S. Miller

isdn/capi: fix defined but not used warnings

Fix build warnings in drivers/isdn/capi/ when CONFIG_PROC_FS is not
enabled by marking the unused functions as __maybe_unused.

../drivers/isdn/capi/capi.c:1324:12: warning: 'capi20_proc_show' defined but not used [-Wunused-function]
../drivers/isdn/capi/capi.c:1347:12: warning: 'capi20ncci_proc_show' defined but not used [-Wunused-function]
../drivers/isdn/capi/capidrv.c:2454:12: warning: 'capidrv_proc_show' defined but not used [-Wunused-function]
Signed-off-by: default avatarRandy Dunlap <rdunlap@infradead.org>
Cc: Karsten Keil <isdn@linux-pingi.de>
Cc: isdn4linux@listserv.isdn4linux.de (subscribers-only)
Cc: netdev@vger.kernel.org
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent d2af686c
...@@ -9,6 +9,7 @@ ...@@ -9,6 +9,7 @@
* *
*/ */
#include <linux/compiler.h>
#include <linux/module.h> #include <linux/module.h>
#include <linux/errno.h> #include <linux/errno.h>
#include <linux/kernel.h> #include <linux/kernel.h>
...@@ -1321,7 +1322,7 @@ static inline void capinc_tty_exit(void) { } ...@@ -1321,7 +1322,7 @@ static inline void capinc_tty_exit(void) { }
* /proc/capi/capi20: * /proc/capi/capi20:
* minor applid nrecvctlpkt nrecvdatapkt nsendctlpkt nsenddatapkt * minor applid nrecvctlpkt nrecvdatapkt nsendctlpkt nsenddatapkt
*/ */
static int capi20_proc_show(struct seq_file *m, void *v) static int __maybe_unused capi20_proc_show(struct seq_file *m, void *v)
{ {
struct capidev *cdev; struct capidev *cdev;
struct list_head *l; struct list_head *l;
...@@ -1344,7 +1345,7 @@ static int capi20_proc_show(struct seq_file *m, void *v) ...@@ -1344,7 +1345,7 @@ static int capi20_proc_show(struct seq_file *m, void *v)
* /proc/capi/capi20ncci: * /proc/capi/capi20ncci:
* applid ncci * applid ncci
*/ */
static int capi20ncci_proc_show(struct seq_file *m, void *v) static int __maybe_unused capi20ncci_proc_show(struct seq_file *m, void *v)
{ {
struct capidev *cdev; struct capidev *cdev;
struct capincci *np; struct capincci *np;
......
...@@ -9,6 +9,7 @@ ...@@ -9,6 +9,7 @@
* *
*/ */
#include <linux/compiler.h>
#include <linux/module.h> #include <linux/module.h>
#include <linux/errno.h> #include <linux/errno.h>
#include <linux/kernel.h> #include <linux/kernel.h>
...@@ -2451,7 +2452,7 @@ lower_callback(struct notifier_block *nb, unsigned long val, void *v) ...@@ -2451,7 +2452,7 @@ lower_callback(struct notifier_block *nb, unsigned long val, void *v)
* /proc/capi/capidrv: * /proc/capi/capidrv:
* nrecvctlpkt nrecvdatapkt nsendctlpkt nsenddatapkt * nrecvctlpkt nrecvdatapkt nsendctlpkt nsenddatapkt
*/ */
static int capidrv_proc_show(struct seq_file *m, void *v) static int __maybe_unused capidrv_proc_show(struct seq_file *m, void *v)
{ {
seq_printf(m, "%lu %lu %lu %lu\n", seq_printf(m, "%lu %lu %lu %lu\n",
global.ap.nrecvctlpkt, global.ap.nrecvctlpkt,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment