HAOUAS Elyes has uploaded this change for review. ( https://review.coreboot.org/c/coreboot/+/31979
Change subject: soc/nvidia/tegra{124,210}: Use 'halt()' already defined in <halt.h> ......................................................................
soc/nvidia/tegra{124,210}: Use 'halt()' already defined in <halt.h>
This fix the error introduced in Change-Id: Ie7afe77 : tegra_lp0_resume.c:431:40: error: static declaration of 'halt' follows non-static declaration static __always_inline void __noreturn halt(void) ^~~~ In file included from tegra_lp0_resume.c:17: ../../../../include/halt.h:26:17: note: previous declaration of 'halt' was here void __noreturn halt(void); ^~~~
Change-Id: I3a67abb77846172597b8ebde779878b9aa2ff8d7 Signed-off-by: Elyes HAOUAS ehaouas@noos.fr --- M src/soc/nvidia/tegra124/lp0/tegra_lp0_resume.c M src/soc/nvidia/tegra210/lp0/tegra_lp0_resume.c 2 files changed, 0 insertions(+), 10 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/79/31979/1
diff --git a/src/soc/nvidia/tegra124/lp0/tegra_lp0_resume.c b/src/soc/nvidia/tegra124/lp0/tegra_lp0_resume.c index 4f219e4..f268ba1 100644 --- a/src/soc/nvidia/tegra124/lp0/tegra_lp0_resume.c +++ b/src/soc/nvidia/tegra124/lp0/tegra_lp0_resume.c @@ -264,11 +264,6 @@
/* Utility functions. */
-static __always_inline void __noreturn halt(void) -{ - for (;;); -} - static inline uint32_t read32(const void *addr) { return *(volatile uint32_t *)addr; diff --git a/src/soc/nvidia/tegra210/lp0/tegra_lp0_resume.c b/src/soc/nvidia/tegra210/lp0/tegra_lp0_resume.c index ddd1f4f..acfcd48 100644 --- a/src/soc/nvidia/tegra210/lp0/tegra_lp0_resume.c +++ b/src/soc/nvidia/tegra210/lp0/tegra_lp0_resume.c @@ -428,11 +428,6 @@
/* Utility functions. */
-static __always_inline void __noreturn halt(void) -{ - for (;;); -} - static inline uint32_t read32(const void *addr) { return *(volatile uint32_t *)addr;