Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

iio: adc: rcar-gyroadc: mark OF related data as maybe unused

The driver can be compile tested with !CONFIG_OF making certain data
unused:

drivers/iio/adc/rcar-gyroadc.c:286:34: error: ‘rcar_gyroadc_child_match’ defined but not used [-Werror=unused-const-variable=]

Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Link: https://lore.kernel.org/r/20230311111457.251475-1-krzysztof.kozlowski@linaro.org
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>

authored by

Krzysztof Kozlowski and committed by
Jonathan Cameron
42d35bf6 e9423075

+1 -1
+1 -1
drivers/iio/adc/rcar-gyroadc.c
··· 283 283 284 284 MODULE_DEVICE_TABLE(of, rcar_gyroadc_match); 285 285 286 - static const struct of_device_id rcar_gyroadc_child_match[] = { 286 + static const struct of_device_id rcar_gyroadc_child_match[] __maybe_unused = { 287 287 /* Mode 1 ADCs */ 288 288 { 289 289 .compatible = "fujitsu,mb88101a",