]> git.ipfire.org Git - thirdparty/u-boot.git/commitdiff
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 98b914365804cc46ec49b6c1baffff210100ddbe..b6c0631aaf67ec4ca19489f88a176907183663dc 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 dfd0217c1e4f60cb58fea47e734d2afdf287dd36..a02d207ac0b9efbede2ea8796f236b95e56b8b58 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>