On Tue, Sep 7, 2021 at 8:48 AM Marc Kleine-Budde <mkl@xxxxxxxxxxxxxx> wrote: > 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") > Cc: linux-renesas-soc@xxxxxxxxxxxxxxx > Cc: Cai Huoqing <caihuoqing@xxxxxxxxx> > Reported-by: kernel test robot <lkp@xxxxxxxxx> > Signed-off-by: Marc Kleine-Budde <mkl@xxxxxxxxxxxxxx> Reviewed-by: Geert Uytterhoeven <geert+renesas@xxxxxxxxx> Gr{oetje,eeting}s, Geert -- Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@xxxxxxxxxxxxxx In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something like that. -- Linus Torvalds