summaryrefslogtreecommitdiff
path: root/drivers/spi/spi-jcore.c
diff options
context:
space:
mode:
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>2018-07-09 21:47:27 +0300
committerLinus Walleij <linus.walleij@linaro.org>2018-07-13 09:00:08 +0200
commitb23ec59926faf05b0c43680d05671c484e810ac4 (patch)
tree8c2e49bcbbc077f7f89ebe663bbb18bf95f608eb /drivers/spi/spi-jcore.c
parent76411a0d97c3b216ce1c987aa4afa7f3789c89d9 (diff)
gpiolib: Mark gpio_suffixes array with __maybe_unused
Since we put static variable to a header file it's copied to each module that includes the header. But not all of them are actually used it. Mark gpio_suffixes array with __maybe_unused to hide a compiler warning: In file included from drivers/gpio/gpiolib-legacy.c:6:0: drivers/gpio/gpiolib.h:95:27: warning: ‘gpio_suffixes’ defined but not used [-Wunused-const-variable=] static const char * const gpio_suffixes[] = { "gpios", "gpio" }; ^~~~~~~~~~~~~ In file included from drivers/gpio/gpiolib-devprop.c:17:0: drivers/gpio/gpiolib.h:95:27: warning: ‘gpio_suffixes’ defined but not used [-Wunused-const-variable=] static const char * const gpio_suffixes[] = { "gpios", "gpio" }; ^~~~~~~~~~~~~ Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com> Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Diffstat (limited to 'drivers/spi/spi-jcore.c')
0 files changed, 0 insertions, 0 deletions