summaryrefslogtreecommitdiff
path: root/drivers/net/can/c_can/c_can_ethtool.c
diff options
context:
space:
mode:
authorMarc Kleine-Budde <mkl@pengutronix.de>2021-09-04 14:35:26 +0200
committerMarc Kleine-Budde <mkl@pengutronix.de>2021-09-07 08:45:54 +0200
commit54d7a47a008b89fce5a669528274194ca092634d (patch)
treeb5524b8c6f506fe54bf3ce854a885d8b4ae92dcd /drivers/net/can/c_can/c_can_ethtool.c
parentb539c44df067ac116ec1b58b956efda51b6a7fc1 (diff)
can: rcar_canfd: add __maybe_unused annotation to silence warning
Since commit | dd3bd23eb438 ("can: rcar_canfd: Add Renesas R-Car CAN FD driver") the rcar_canfd driver can be compile tested on all architectures. On non OF enabled archs, or archs where OF is optional (and disabled in the .config) the compilation throws the following warning: | drivers/net/can/rcar/rcar_canfd.c:2020:34: warning: unused variable 'rcar_canfd_of_table' [-Wunused-const-variable] | static const struct of_device_id rcar_canfd_of_table[] = { | ^ This patch fixes the warning by marking the variable rcar_canfd_of_table as __maybe_unused. Fixes: ac4224087312 ("can: rcar: Kconfig: Add helper dependency on COMPILE_TEST") Fixes: dd3bd23eb438 ("can: rcar_canfd: Add Renesas R-Car CAN FD driver") Link: https://lore.kernel.org/all/20210907064537.1054268-1-mkl@pengutronix.de Cc: linux-renesas-soc@vger.kernel.org Cc: Cai Huoqing <caihuoqing@baidu.com> Reported-by: kernel test robot <lkp@intel.com> Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
Diffstat (limited to 'drivers/net/can/c_can/c_can_ethtool.c')
0 files changed, 0 insertions, 0 deletions