mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH 1/3] platform: olpc: mark SPI related data as maybe unused
@ 2023-03-12 13:26 Krzysztof Kozlowski
  2023-03-12 13:26 ` [PATCH 2/3] platform: classmate: " Krzysztof Kozlowski
                   ` (2 more replies)
  0 siblings, 3 replies; 9+ messages in thread
From: Krzysztof Kozlowski @ 2023-03-12 13:26 UTC (permalink / raw)
  To: Hans de Goede, Mark Gross, Thadeu Lima de Souza Cascardo,
	Daniel Oliveira Nascimento, Mattia Dongili, platform-driver-x86,
	linux-kernel
  Cc: Krzysztof Kozlowski

The driver can be compile tested as built-in making certain data unused:

  drivers/platform/olpc/olpc-xo175-ec.c:737:35: error: ‘olpc_xo175_ec_id_table’ defined but not used [-Werror=unused-const-variable=]

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

diff --git a/drivers/platform/olpc/olpc-xo175-ec.c b/drivers/platform/olpc/olpc-xo175-ec.c
index 4823bd2819f6..04573495ef5a 100644
--- a/drivers/platform/olpc/olpc-xo175-ec.c
+++ b/drivers/platform/olpc/olpc-xo175-ec.c
@@ -734,7 +734,7 @@ static const struct of_device_id olpc_xo175_ec_of_match[] = {
 };
 MODULE_DEVICE_TABLE(of, olpc_xo175_ec_of_match);
 
-static const struct spi_device_id olpc_xo175_ec_id_table[] = {
+static const struct spi_device_id olpc_xo175_ec_id_table[] __maybe_unused = {
 	{ "xo1.75-ec", 0 },
 	{}
 };
-- 
2.34.1


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

end of thread, other threads:[~2023-03-16 17:32 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-03-12 13:26 [PATCH 1/3] platform: olpc: mark SPI related data as maybe unused Krzysztof Kozlowski
2023-03-12 13:26 ` [PATCH 2/3] platform: classmate: " Krzysztof Kozlowski
2023-03-16 15:14   ` Hans de Goede
2023-03-12 13:26 ` [PATCH 3/3] platform: sony: " Krzysztof Kozlowski
2023-03-16 12:50 ` [PATCH 1/3] platform: olpc: " Hans de Goede
2023-03-16 14:07   ` Krzysztof Kozlowski
2023-03-16 14:13     ` Hans de Goede
2023-03-16 14:17       ` Krzysztof Kozlowski
2023-03-16 17:31       ` Javier Martinez Canillas

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

all inboxes | Powered by JetHome®