diff options
author | Aaron Durbin <adurbin@chromium.org> | 2018-09-05 09:37:11 -0600 |
---|---|---|
committer | Patrick Georgi <pgeorgi@google.com> | 2018-09-10 15:02:51 +0000 |
commit | 0370bcf40ce3a07e6e2d33b8bcebf28a0ac98807 (patch) | |
tree | 8dbdeded229ced4fc7bf7579954798ddfb7d7439 /src/drivers/intel/fsp1_0 | |
parent | 261d626669ea244a55ec310a11a23ca56b609b51 (diff) |
complier.h: add __noreturn and use it in code base
Add a __noreturn macro that wraps __attribute__((noreturn)) and replace
current users with the macro.
Change-Id: Iddd0728cf79678c3d1c1f7e7946c27375a644a7d
Signed-off-by: Aaron Durbin <adurbin@chromium.org>
Reviewed-on: https://review.coreboot.org/28505
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Furquan Shaikh <furquan@google.com>
Reviewed-by: Paul Menzel <paulepanter@users.sourceforge.net>
Diffstat (limited to 'src/drivers/intel/fsp1_0')
-rw-r--r-- | src/drivers/intel/fsp1_0/fsp_util.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/drivers/intel/fsp1_0/fsp_util.c b/src/drivers/intel/fsp1_0/fsp_util.c index c19c1a1186..5d866bfad8 100644 --- a/src/drivers/intel/fsp1_0/fsp_util.c +++ b/src/drivers/intel/fsp1_0/fsp_util.c @@ -15,6 +15,7 @@ #include <types.h> #include <string.h> +#include <compiler.h> #include <console/console.h> #include <bootstate.h> #include <cbmem.h> @@ -66,7 +67,7 @@ void FspNotify (u32 Phase) * Call the FSP to do memory init. The FSP doesn't return to this function. * The FSP returns to the romstage_main_continue(). */ -void __attribute__((noreturn)) fsp_early_init (FSP_INFO_HEADER *fsp_ptr) +void __noreturn fsp_early_init (FSP_INFO_HEADER *fsp_ptr) { FSP_FSP_INIT FspInitApi; FSP_INIT_PARAMS FspInitParams; |