mail archive of the barebox mailing list
 help / color / mirror / Atom feed
* [PATCH] include: ocotp.h: add missing include
@ 2026-09-18  9:39 Ulrich Ölmann
  2026-09-23  6:27 ` Sascha Hauer
  0 siblings, 1 reply; 4+ messages in thread
From: Ulrich Ölmann @ 2026-09-18  9:39 UTC (permalink / raw)
  To: Barebox List

Otherwise GCC complains:

  <PATH>/barebox-2026.08.0/include/mach/imx/ocotp.h: In function 'imx_ocotp_read_uid':
  <PATH>/barebox-2026.08.0/include/mach/imx/ocotp.h:47:16: error: implicit declaration of function 'readl' [-Werror=implicit-function-declaration]
     47 |         uid  = readl(ocotp + OCOTP_UID_H);
        |                ^~~~~

Signed-off-by: Ulrich Ölmann <u.oelmann@pengutronix.de>
---
 include/mach/imx/ocotp.h | 1 +
 1 file changed, 1 insertion(+)

diff --git a/include/mach/imx/ocotp.h b/include/mach/imx/ocotp.h
index e6f62a9da48c..2d8fcc7c2657 100644
--- a/include/mach/imx/ocotp.h
+++ b/include/mach/imx/ocotp.h
@@ -5,6 +5,7 @@
 
 #include <linux/bitfield.h>
 #include <linux/types.h>
+#include <linux/io.h>
 
 #define OCOTP_SHADOW_OFFSET		0x400
 #define OCOTP_SHADOW_SPACING		0x10
-- 
2.47.3




^ permalink raw reply	[flat|nested] 4+ messages in thread
* [PATCH] include: ocotp.h: add missing include
@ 2026-09-25  8:13 Ulrich Ölmann
  2026-09-25  9:08 ` Sascha Hauer
  0 siblings, 1 reply; 4+ messages in thread
From: Ulrich Ölmann @ 2026-09-25  8:13 UTC (permalink / raw)
  To: Barebox List

Otherwise GCC complains:

  <PATH>/barebox-2026.09.0/include/mach/imx/ocotp.h:23:33: error: implicit declaration of function 'GENMASK' [-Werror=implicit-function-declaration]
     23 | #define OCOTP_WORD_MASK         GENMASK( 7,  0)
        |                                 ^~~~~~~

Signed-off-by: Ulrich Ölmann <u.oelmann@pengutronix.de>
---
 include/mach/imx/ocotp.h | 1 +
 1 file changed, 1 insertion(+)

diff --git a/include/mach/imx/ocotp.h b/include/mach/imx/ocotp.h
index 2d8fcc7c2657..a3eee070546b 100644
--- a/include/mach/imx/ocotp.h
+++ b/include/mach/imx/ocotp.h
@@ -6,6 +6,7 @@
 #include <linux/bitfield.h>
 #include <linux/types.h>
 #include <linux/io.h>
+#include <linux/bits.h>
 
 #define OCOTP_SHADOW_OFFSET		0x400
 #define OCOTP_SHADOW_SPACING		0x10
-- 
2.47.3




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

end of thread, other threads:[~2026-09-25  9:08 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-09-18  9:39 [PATCH] include: ocotp.h: add missing include Ulrich Ölmann
2026-09-23  6:27 ` Sascha Hauer
2026-09-25  8:13 Ulrich Ölmann
2026-09-25  9:08 ` Sascha Hauer

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