From 75a62e76486f63f6dadb5492c205570ace81e9d5 Mon Sep 17 00:00:00 2001 From: Aaron Durbin Date: Thu, 13 Sep 2018 02:10:45 -0600 Subject: complier.h: add __always_inline and use it in code base Add a __always_inline macro that wraps __attribute__((always_inline)) and replace current users with the macro, excluding files under src/vendorcode. Change-Id: Ic57e474c1d2ca7cc0405ac677869f78a28d3e529 Signed-off-by: Aaron Durbin Reviewed-on: https://review.coreboot.org/28587 Tested-by: build bot (Jenkins) Reviewed-by: Julius Werner --- src/arch/mips/include/arch/hlt.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/arch/mips') diff --git a/src/arch/mips/include/arch/hlt.h b/src/arch/mips/include/arch/hlt.h index b99376f2f5..dd66c440ab 100644 --- a/src/arch/mips/include/arch/hlt.h +++ b/src/arch/mips/include/arch/hlt.h @@ -16,7 +16,9 @@ #ifndef __MIPS_ARCH_HLT_H #define __MIPS_ARCH_HLT_H -static inline __attribute__((always_inline)) void hlt(void) +#include + +static inline __always_inline void hlt(void) { for (;;) ; -- cgit v1.2.3