soc/samsung: Move 'inline' between storage class and type

Change-Id: Iccdb4770890751b7f9d1b35248fe57993342fd50
Signed-off-by: Elyes Haouas <ehaouas@noos.fr>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/81593
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Eric Lai <ericllai@google.com>
This commit is contained in:
Elyes Haouas 2024-03-30 09:59:56 +01:00 committed by Felix Held
parent ff40cf438e
commit 9d6333c839

View File

@ -64,14 +64,14 @@ volatile struct exynos5420_cpu_states
* switching), we are not sure if the destination is Thumb or ARM mode.
* So a BX command is required.
*/
inline static void jump_bx(void *address)
static inline void jump_bx(void *address)
{
asm volatile ("bx %0" : : "r"(address));
/* never returns. */
}
/* Extracts arbitrary bits from a 32-bit unsigned int. */
inline static uint32_t get_bits(uint32_t value, uint32_t start, uint32_t len)
static inline uint32_t get_bits(uint32_t value, uint32_t start, uint32_t len)
{
return ((value << (sizeof(value) * 8 - len - start)) >>
(sizeof(value) * 8 - len));