can: c_can: reg_map_{c,d}_can: mark as __maybe_unused
authorMarc Kleine-Budde <mkl@pengutronix.de>
Tue, 6 Oct 2020 15:28:36 +0000 (17:28 +0200)
committerMarc Kleine-Budde <mkl@pengutronix.de>
Tue, 6 Oct 2020 20:44:26 +0000 (22:44 +0200)
commit71e663c4a02213d1013a3def4ed10ca63769bbb2
tree5d21ea39cb4b4809cec1bbb60178791c92a7175e
parent47fa0336c1b7cfe2003e1e2671f588184ad08e1d
can: c_can: reg_map_{c,d}_can: mark as __maybe_unused

This patch marks the arrays reg_map_c_can and reg_map_d_can as __maybe_unused,
as they are indeed unused in the c_can driver. This warning shows up, when
compiling the kernel with "W=1":

    drivers/net/can/c_can/c_can.c:45:
    drivers/net/can/c_can/c_can.h:124:18: warning: ‘reg_map_d_can’ defined but not used [-Wunused-const-variable=]
    drivers/net/can/c_can/c_can.h:84:18: warning: ‘reg_map_c_can’ defined but not used [-Wunused-const-variable=]

Link: http://lore.kernel.org/r/20201006203748.1750156-4-mkl@pengutronix.de
Fixes: 33f810097769 ("can: c_can: Move overlay structure to array with offset as index")
Fixes: 69927fccd96b ("can: c_can: Add support for Bosch D_CAN controller")
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
drivers/net/can/c_can/c_can.h