The Linux Kernel Mailing List
 help / color / mirror / Atom feed
* [PATCH] hte: tegra: fix  'struct of_device_id' build error
@ 2022-12-15 16:46 Arnd Bergmann
  2022-12-15 23:30 ` Dipen Patel
  0 siblings, 1 reply; 2+ messages in thread
From: Arnd Bergmann @ 2022-12-15 16:46 UTC (permalink / raw)
  To: Dipen Patel, Thierry Reding, Jonathan Hunter
  Cc: Arnd Bergmann, Jiapeng Chong, Yang Yingliang, linux-tegra,
	linux-kernel

From: Arnd Bergmann <arnd@arndb.de>

Without the extra #include, this driver produces a build failure
in some configurations.

drivers/hte/hte-tegra194-test.c:96:34: error: array type has incomplete element type 'struct of_device_id'
   96 | static const struct of_device_id tegra_hte_test_of_match[] = {

Fixes: 9a75a7cd03c9 ("hte: Add Tegra HTE test driver")
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
---
 drivers/hte/hte-tegra194-test.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/hte/hte-tegra194-test.c b/drivers/hte/hte-tegra194-test.c
index 5d776a185bd6..ce8c44e79221 100644
--- a/drivers/hte/hte-tegra194-test.c
+++ b/drivers/hte/hte-tegra194-test.c
@@ -6,6 +6,7 @@
  */
 
 #include <linux/err.h>
+#include <linux/mod_devicetable.h>
 #include <linux/module.h>
 #include <linux/moduleparam.h>
 #include <linux/interrupt.h>
-- 
2.35.1


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

end of thread, other threads:[~2022-12-15 23:30 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-12-15 16:46 [PATCH] hte: tegra: fix 'struct of_device_id' build error Arnd Bergmann
2022-12-15 23:30 ` Dipen Patel

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