]> git.proxmox.com Git - mirror_ubuntu-focal-kernel.git/commit
connector: fix defined but not used warning
authorRandy Dunlap <rdunlap@infradead.org>
Sat, 7 Jul 2018 15:27:53 +0000 (08:27 -0700)
committerDavid S. Miller <davem@davemloft.net>
Sun, 8 Jul 2018 02:00:50 +0000 (11:00 +0900)
commitd2af686c2df82659673c2a795c06dcd37730a3b9
treeb3aca0185bac6c87c18f452365f83cdcee55fa14
parent005c1c0eac82d76214581e9698ee183c2df9f3c6
connector: fix defined but not used warning

Fix a build warning in connector.c when CONFIG_PROC_FS is not enabled
by marking the unused function as __maybe_unused.

../drivers/connector/connector.c:242:12: warning: 'cn_proc_show' defined but not used [-Wunused-function]

Signed-off-by: Randy Dunlap <rdunlap@infradead.org>
Cc: Evgeniy Polyakov <zbr@ioremap.net>
Cc: netdev@vger.kernel.org
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/connector/connector.c