diff --git a/components/TARGET_PSA/services/storage/common/psa_storage_common_impl.cpp b/components/TARGET_PSA/services/storage/common/psa_storage_common_impl.cpp index 2f38679ead..d8ff8647f9 100644 --- a/components/TARGET_PSA/services/storage/common/psa_storage_common_impl.cpp +++ b/components/TARGET_PSA/services/storage/common/psa_storage_common_impl.cpp @@ -127,7 +127,7 @@ static psa_status_t convert_status(int status) * \param n[in] number of bits to shift right * \return the result */ -MBED_FORCEINLINE uint32_t lsr32(uint32_t x, uint32_t n) +static MBED_FORCEINLINE uint32_t lsr32(uint32_t x, uint32_t n) { return x >> n; } @@ -140,7 +140,7 @@ MBED_FORCEINLINE uint32_t lsr32(uint32_t x, uint32_t n) * \param n[in] number of bits to shift right * \return the result */ -MBED_FORCEINLINE uint64_t lsr64(uint64_t x, uint32_t n) +static MBED_FORCEINLINE uint64_t lsr64(uint64_t x, uint32_t n) { return x >> n; } diff --git a/platform/mbed_toolchain.h b/platform/mbed_toolchain.h index b513c71fef..a9cccabb9f 100644 --- a/platform/mbed_toolchain.h +++ b/platform/mbed_toolchain.h @@ -277,11 +277,11 @@ */ #ifndef MBED_FORCEINLINE #if defined(__GNUC__) || defined(__clang__) || defined(__CC_ARM) -#define MBED_FORCEINLINE static inline __attribute__((always_inline)) +#define MBED_FORCEINLINE inline __attribute__((always_inline)) #elif defined(__ICCARM__) -#define MBED_FORCEINLINE _Pragma("inline=forced") static +#define MBED_FORCEINLINE _Pragma("inline=forced") #else -#define MBED_FORCEINLINE static inline +#define MBED_FORCEINLINE inline #endif #endif