]> git.baikalelectronics.ru Git - kernel.git/commit
hamradio: bpqether: Fix -Wunused-const-variable warning
authorYueHaibing <yuehaibing@huawei.com>
Tue, 1 Jun 2021 14:00:52 +0000 (22:00 +0800)
committerDavid S. Miller <davem@davemloft.net>
Wed, 2 Jun 2021 00:00:51 +0000 (17:00 -0700)
commitec00c53cd6277719f2a0fba3ef8ce8b451b3cc61
treeb49029d0cc35c6a4147a66fd9a12b1ab3ef519f8
parent09a52d8608c3076ca6fc49ec898e4c76823d91ed
hamradio: bpqether: Fix -Wunused-const-variable warning

If CONFIG_PROC_FS is n, gcc warns:

drivers/net/hamradio/bpqether.c:437:36:
 warning: ‘bpq_seqops’ defined but not used [-Wunused-const-variable=]
 static const struct seq_operations bpq_seqops = {
                                    ^~~~~~~~~~
Use #ifdef macro to gurad this.

Signed-off-by: YueHaibing <yuehaibing@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/hamradio/bpqether.c