From 8fb2cedc8e202871e1770adbd6fe93103bcd3db6 Mon Sep 17 00:00:00 2001 From: Solomon Peachy Date: Thu, 25 Apr 2024 23:32:25 -0400 Subject: [PATCH] coldfire: Fix bootloader builds on GCC8 (missing 'static' on an inline function definition) Change-Id: I46318443d45dc6d3141fce5c8162c04eb242b4a2 --- bootloader/iaudio_coldfire.c | 2 +- bootloader/iriver_h1x0.c | 2 +- bootloader/iriver_h300.c | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/bootloader/iaudio_coldfire.c b/bootloader/iaudio_coldfire.c index d9e659847a..173d9f3f89 100644 --- a/bootloader/iaudio_coldfire.c +++ b/bootloader/iaudio_coldfire.c @@ -63,7 +63,7 @@ int usb_screen(void) } /* Reset the cookie for the crt0 crash check */ -inline void __reset_cookie(void) +static inline void __reset_cookie(void) { asm(" move.l #0,%d0"); asm(" move.l %d0,0x10017ffc"); diff --git a/bootloader/iriver_h1x0.c b/bootloader/iriver_h1x0.c index 6c509a9922..faa76dc17d 100644 --- a/bootloader/iriver_h1x0.c +++ b/bootloader/iriver_h1x0.c @@ -64,7 +64,7 @@ extern int remote_line; static bool recovery_mode = false; /* Reset the cookie for the crt0 crash check */ -inline void __reset_cookie(void) +static inline void __reset_cookie(void) { asm(" move.l #0,%d0"); asm(" move.l %d0,0x10017ffc"); diff --git a/bootloader/iriver_h300.c b/bootloader/iriver_h300.c index 655abfa505..ec7e368a58 100644 --- a/bootloader/iriver_h300.c +++ b/bootloader/iriver_h300.c @@ -66,7 +66,7 @@ extern int remote_line; static bool recovery_mode = false; /* Reset the cookie for the crt0 crash check */ -inline void __reset_cookie(void) +static inline void __reset_cookie(void) { asm(" move.l #0,%d0"); asm(" move.l %d0,0x10017ffc");