i3c/master/mipi-i3c-hci: quiet maybe-unused variable warning
authorNicolas Pitre <npitre@baylibre.com>
Wed, 16 Dec 2020 14:44:30 +0000 (09:44 -0500)
committerBoris Brezillon <boris.brezillon@collabora.com>
Thu, 17 Dec 2020 09:31:30 +0000 (10:31 +0100)
If CONFIG_OF is disabled then the matching table is notreferenced.

Reported-by: kernel test robot <lkp@intel.com>
Signed-off-by: Nicolas Pitre <npitre@baylibre.com>
Signed-off-by: Boris Brezillon <boris.brezillon@collabora.com>
drivers/i3c/master/mipi-i3c-hci/core.c

index 113c4c9..500abd2 100644 (file)
@@ -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", },
        {},
 };