diff options
| author | duhuanpeng <[email protected]> | 2020-03-25 23:12:22 +0800 |
|---|---|---|
| committer | Du Huanpeng <[email protected]> | 2020-04-10 15:07:34 +0800 |
| commit | ee61d78b184040327dbe83f2941932bd15b8e9c5 (patch) | |
| tree | 9d584a2d7ae29fa8a403b087ac2d1023227d439a /libcpu | |
| parent | 08ef2363085dc9c3964ccb331ed69f785ef86802 (diff) | |
MIPS: inline routine should be static here
gcc will remove this "unused" routine and cause a linking error.
symbol not found when linking.
Signed-off-by: duhuanpeng <[email protected]>
Diffstat (limited to 'libcpu')
| -rw-r--r-- | libcpu/mips/common/mips_fpu.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libcpu/mips/common/mips_fpu.h b/libcpu/mips/common/mips_fpu.h index d6351f7655..50df3746a5 100644 --- a/libcpu/mips/common/mips_fpu.h +++ b/libcpu/mips/common/mips_fpu.h @@ -18,7 +18,7 @@ * init hardware FPU */ #ifdef RT_USING_FPU -inline void rt_hw_fpu_init(void) +rt_inline void rt_hw_fpu_init(void) { rt_uint32_t c0_status = 0; rt_uint32_t c1_status = 0; @@ -38,7 +38,7 @@ inline void rt_hw_fpu_init(void) return ; } #else - inline void rt_hw_fpu_init(void){} /* Do nothing */ + rt_inline void rt_hw_fpu_init(void){} /* Do nothing */ #endif #endif |
