diff options
author | Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org> | 2023-03-10 23:28:57 +0100 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2023-03-13 14:09:15 +0000 |
commit | edfa970370a759c2c6a38b2884887937b1aea552 (patch) | |
tree | 188bc02469225f06bff119834e978a264884a893 /drivers/leds/leds-bd2802.c | |
parent | 833f43308234600e934e9c6fa70fd8b7eebc632b (diff) | |
download | linux-stable-edfa970370a759c2c6a38b2884887937b1aea552.tar.gz linux-stable-edfa970370a759c2c6a38b2884887937b1aea552.tar.bz2 linux-stable-edfa970370a759c2c6a38b2884887937b1aea552.zip |
spi: rspi: Mark OF related data as maybe unused
Driver can match via ID or OF ID table, thus several OF-related methods
will be unused. Mark the OF structures as __maybe_unused so compiler
can drop them:
drivers/spi/spi-rspi.c:1203:29: error: ‘qspi_ops’ defined but not used [-Werror=unused-const-variable=]
Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Link: https://lore.kernel.org/r/20230310222857.315629-16-krzysztof.kozlowski@linaro.org
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'drivers/leds/leds-bd2802.c')
0 files changed, 0 insertions, 0 deletions