xtensa: make assembly-called functions static
z_mp_entry() and power_gate_exit() are only called from assembly code in the same file, where they're defined. Make them "static" and add an attribute to let the compiler know, that they aren't unused. Signed-off-by: Guennadi Liakhovetski <guennadi.liakhovetski@linux.intel.com>
This commit is contained in:
parent
45f907b9fd
commit
0a6e90b3b8
|
@ -179,7 +179,7 @@ void power_gate_entry(uint32_t core_id)
|
|||
z_xt_ints_off(0xffffffff);
|
||||
}
|
||||
|
||||
void power_gate_exit(void)
|
||||
static void __used power_gate_exit(void)
|
||||
{
|
||||
cpu_early_init();
|
||||
sys_cache_data_flush_and_invd_all();
|
||||
|
|
|
@ -99,7 +99,7 @@ static ALWAYS_INLINE void _restore_core_context(void)
|
|||
__asm__ volatile("rsync");
|
||||
}
|
||||
|
||||
void power_gate_exit(void)
|
||||
static void __used power_gate_exit(void)
|
||||
{
|
||||
cpu_early_init();
|
||||
sys_cache_data_flush_and_invd_all();
|
||||
|
|
|
@ -96,7 +96,7 @@ __asm__(".section .text.z_soc_mp_asm_entry, \"x\" \n\t"
|
|||
#undef NOP32
|
||||
#undef NOP4
|
||||
|
||||
__imr void z_mp_entry(void)
|
||||
static __imr void __used z_mp_entry(void)
|
||||
{
|
||||
cpu_early_init();
|
||||
/* Set up the CPU pointer. */
|
||||
|
|
Loading…
Reference in a new issue