sandbox: Move ulib_init_with_data() declaration to init.h

To avoid needing an #ifdef in the C code, move this sandbox-specific
declaration to the common init.h header.

Update ulib.c to include init.h to avoid warnings. Fix the ordering
while we are here.

Signed-off-by: Simon Glass <simon.glass@canonical.com>
This commit is contained in:
Simon Glass
2025-11-05 19:54:15 +01:00
parent 3a801fde21
commit d798b2e9ef
3 changed files with 11 additions and 10 deletions

View File

@@ -9,8 +9,9 @@
#include <string.h>
#include <version.h>
#include <asm/global_data.h>
#include <version_string.h>
#include <init.h>
#include <u-boot-lib.h>
#include <version_string.h>
/* Static storage for global data when using simplified API */
static struct global_data static_gd;