test: syslog: Add missing include of <env.h>
authorTom Rini <trini@konsulko.com>
Thu, 25 Sep 2025 20:50:26 +0000 (14:50 -0600)
committerTom Rini <trini@konsulko.com>
Wed, 8 Oct 2025 22:12:36 +0000 (16:12 -0600)
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@konsulko.com>
test/log/syslog_test.c
test/log/syslog_test_ndebug.c

index 98b9143..b6c0631 100644 (file)
@@ -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>
index dfd0217..a02d207 100644 (file)
@@ -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>