[PATCH 2/2] test: syslog: Add missing include of <env.h>

Tom Rini trini at konsulko.com
Thu Sep 25 22:50:26 CEST 2025


These files was making environment calls without including <env.h> and so
relying on an indirect inclusion from elsewhere. Add the missing include
directly.

Signed-off-by: Tom Rini <trini at konsulko.com>
---
 test/log/syslog_test.c        | 1 +
 test/log/syslog_test_ndebug.c | 1 +
 2 files changed, 2 insertions(+)

diff --git a/test/log/syslog_test.c b/test/log/syslog_test.c
index 98b914365804..b6c0631aaf67 100644
--- a/test/log/syslog_test.c
+++ b/test/log/syslog_test.c
@@ -10,6 +10,7 @@
 /* Override CONFIG_LOG_MAX_LEVEL */
 #define LOG_DEBUG
 
+#include <env.h>
 #include <asm/global_data.h>
 #include <dm/device.h>
 #include <hexdump.h>
diff --git a/test/log/syslog_test_ndebug.c b/test/log/syslog_test_ndebug.c
index dfd0217c1e4f..a02d207ac0b9 100644
--- a/test/log/syslog_test_ndebug.c
+++ b/test/log/syslog_test_ndebug.c
@@ -7,6 +7,7 @@
  * Invoke the test with: ./u-boot -d arch/sandbox/dts/test.dtb
  */
 
+#include <env.h>
 #include <asm/global_data.h>
 #include <dm/device.h>
 #include <hexdump.h>
-- 
2.43.0



More information about the U-Boot mailing list