elf: Rename load_segments() and module failure
[platform/kernel/u-boot.git] / test / bootm.c
index 92dc2b6..8528982 100644 (file)
@@ -7,6 +7,7 @@
 
 #include <common.h>
 #include <bootm.h>
+#include <asm/global_data.h>
 #include <test/suites.h>
 #include <test/test.h>
 #include <test/ut.h>
@@ -239,8 +240,8 @@ BOOTM_TEST(bootm_test_subst_both, 0);
 
 int do_ut_bootm(struct cmd_tbl *cmdtp, int flag, int argc, char *const argv[])
 {
-       struct unit_test *tests = ll_entry_start(struct unit_test, bootm_test);
-       const int n_ents = ll_entry_count(struct unit_test, bootm_test);
+       struct unit_test *tests = UNIT_TEST_SUITE_START(bootm_test);
+       const int n_ents = UNIT_TEST_SUITE_COUNT(bootm_test);
 
        return cmd_ut_category("bootm", "bootm_test_", tests, n_ents,
                               argc, argv);