coreboot/tests/lib
Arthur Heymans aa75ee1a71 cbmem.h: Change return type of cbmem_get_region
The underlying IMD function already returns an integer which indicates
success or failure.

This removes the need to have initialized variables that need to be
checked for NULL later. In some cases this actually adds the appropriate
check for returned values.

Dying is appropriate if cbmem is not found as it is essential to the
bootflow.

Change-Id: Ib3e09a75380faf9f533601368993261f042422ef
Signed-off-by: Arthur Heymans <arthur@aheymans.xyz>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/84039
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Nico Huber <nico.h@gmx.de>
Reviewed-by: Angel Pons <th3fanbus@gmail.com>
2024-08-29 13:58:21 +00:00
..
b64_decode-test.c b64_decode-test: Properly terminate strings before comparison 2024-08-26 18:49:54 +00:00
bootmem-test.c tree: Drop duplicated <device/{path,resource}.h> 2024-04-12 04:24:20 +00:00
cbfs-lookup-test.c commonlib/bsd: Remove cb_err_t 2022-03-09 02:18:21 +00:00
cbfs-verification-test.c cbfs/vboot: Adapt to new vb2_digest API 2022-09-02 23:51:29 +00:00
cbmem_console-test.c tests: Fix tests code and comments style 2022-01-14 14:29:29 +00:00
cbmem_stage_cache-test.c tests: Fix tests code and comments style 2022-01-14 14:29:29 +00:00
coreboot_table-test.c coreboot_tables: Make existing alignment conventions more explicit 2022-12-22 15:34:28 +00:00
crc_byte-test.c tests: Fix tests code and comments style 2022-01-14 14:29:29 +00:00
dimm_info_util-test.c dram/ddr5: Use the same naming convention as DDR{2,3,4} 2024-05-07 10:53:18 +00:00
edid-test.c tests: Fix tests code and comments style 2022-01-14 14:29:29 +00:00
fmap-test.c tests: Fix tests code and comments style 2022-01-14 14:29:29 +00:00
hexstrtobin-test.c tests: Fix tests code and comments style 2022-01-14 14:29:29 +00:00
imd-test.c tests/lib: Add space before single line comment termination 2022-03-27 15:33:39 +00:00
imd_cbmem-test.c Allow to build romstage sources inside the bootblock 2023-11-09 13:20:18 +00:00
lib-test.c lib: Add __fls() (Find Last Set) 2021-12-13 02:57:07 +00:00
libgcc-test.c tests: Fix tests code and comments style 2022-01-14 14:29:29 +00:00
lzma-test.c tree: Use <stdio.h> for snprintf 2024-05-29 10:33:54 +00:00
Makefile.mk cbmem.h: Change return type of cbmem_get_region 2024-08-29 13:58:21 +00:00
malloc-test.c malloc/memalign: Return NULL if the request is too large 2024-01-29 19:12:43 +00:00
memchr-test.c tests: Fix tests code and comments style 2022-01-14 14:29:29 +00:00
memcmp-test.c tests: Improve test output readability 2021-09-01 19:38:09 +00:00
memcpy-test.c tests: Fix tests code and comments style 2022-01-14 14:29:29 +00:00
memmove-test.c tests: Fix tests code and comments style 2022-01-14 14:29:29 +00:00
memrange-test.c tree: Drop duplicated <device/{path,resource}.h> 2024-04-12 04:24:20 +00:00
memset-test.c tests: Fix tests code and comments style 2022-01-14 14:29:29 +00:00
region_file-test.c region: Turn region_end() into an inclusive region_last() 2024-08-23 01:08:16 +00:00
rtc-test.c tree: Drop repeated words 2023-02-07 04:37:31 +00:00
spd_cache-test.c test/lib: Add non-existent DIMMs test case in spd_cache-test 2022-11-03 13:00:15 +00:00
stack-test.c tests: Fix tests code and comments style 2022-01-14 14:29:29 +00:00
string-test.c commonlib/bsd: Add strlen() and strnlen() functions 2024-08-14 03:09:03 +00:00
timestamp-test.c timestamps: Rename timestamps to make names more consistent 2022-03-08 16:06:33 +00:00
uuid-test.c tests: Improve test output readability 2021-09-01 19:38:09 +00:00
ux_locales-test.c tests/lib/ux_locales-test: Simplify macros 2024-02-22 08:05:23 +00:00