public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH 1/2] iio: dac: ad5755: mark OF related data as maybe unused
@ 2023-08-10 11:19 Krzysztof Kozlowski
  2023-08-10 11:19 ` [PATCH 2/2] iio: proximity: isl29501: " Krzysztof Kozlowski
  2023-08-11 15:33 ` [PATCH 1/2] iio: dac: ad5755: " Jonathan Cameron
  0 siblings, 2 replies; 5+ messages in thread
From: Krzysztof Kozlowski @ 2023-08-10 11:19 UTC (permalink / raw)
  To: Lars-Peter Clausen, Michael Hennerich, Jonathan Cameron,
	linux-iio, linux-kernel
  Cc: Andi Shyti, Krzysztof Kozlowski

When compile tested with W=1 on x86_64 with driver as built-in:

  ad5755.c:866:34: error: unused variable 'ad5755_of_match' [-Werror,-Wunused-const-variable]

Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
---
 drivers/iio/dac/ad5755.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/iio/dac/ad5755.c b/drivers/iio/dac/ad5755.c
index 404865e35460..823049ce2686 100644
--- a/drivers/iio/dac/ad5755.c
+++ b/drivers/iio/dac/ad5755.c
@@ -863,7 +863,7 @@ static const struct spi_device_id ad5755_id[] = {
 };
 MODULE_DEVICE_TABLE(spi, ad5755_id);
 
-static const struct of_device_id ad5755_of_match[] = {
+static const struct of_device_id ad5755_of_match[] __maybe_unused = {
 	{ .compatible = "adi,ad5755" },
 	{ .compatible = "adi,ad5755-1" },
 	{ .compatible = "adi,ad5757" },
-- 
2.34.1


^ permalink raw reply related	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2023-08-15 14:05 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-08-10 11:19 [PATCH 1/2] iio: dac: ad5755: mark OF related data as maybe unused Krzysztof Kozlowski
2023-08-10 11:19 ` [PATCH 2/2] iio: proximity: isl29501: " Krzysztof Kozlowski
2023-08-11 15:34   ` Jonathan Cameron
2023-08-11 15:33 ` [PATCH 1/2] iio: dac: ad5755: " Jonathan Cameron
2023-08-15 14:04   ` Krzysztof Kozlowski

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox