On Wed, 16 Dec 2020, Boris Brezillon wrote:
Or adding a __maybe_unused qualifier. Can you send patch for this so
I
can apply it before sending my PR to Linus?
Here it is:
---------- >8
From: Nicolas Pitre <npitre(a)baylibre.com>
Subject: [PATCH] i3c/master/mipi-i3c-hci: quiet maybe-unused variable warning
If CONFIG_OF is disabled then the matching table is notreferenced.
Reported-by: kernel test robot <lkp(a)intel.com>
Signed-by: Nicolas Pitre <npitre(a)baylibre.com>
diff --git a/drivers/i3c/master/mipi-i3c-hci/core.c
b/drivers/i3c/master/mipi-i3c-hci/core.c
index 113c4c9054..500abd27fb 100644
--- a/drivers/i3c/master/mipi-i3c-hci/core.c
+++ b/drivers/i3c/master/mipi-i3c-hci/core.c
@@ -777,7 +777,7 @@ static int i3c_hci_remove(struct platform_device *pdev)
return 0;
}
-static const struct of_device_id i3c_hci_of_match[] = {
+static const struct __maybe_unused of_device_id i3c_hci_of_match[] = {
{ .compatible = "mipi-i3c-hci", },
{},
};