zephyr: (cosmetic) make a needlessly global variable static

_smex_placeholder dowsn't have to be global, make it static.
Also no need to explicitly specify smex_placeholder_f() as inline,
the compiler will decide by itself.

Signed-off-by: Guennadi Liakhovetski <guennadi.liakhovetski@linux.intel.com>
This commit is contained in:
Guennadi Liakhovetski 2022-01-11 16:25:52 +01:00 committed by Liam Girdwood
parent 98db7915b1
commit 079ce95b98
1 changed files with 4 additions and 4 deletions

View File

@ -541,7 +541,7 @@ void sys_comp_smart_amp_init(void);
* sof-logger. This makes smex fail. Define at least one such section to
* fix the build when sof-logger is not used.
*/
static inline const void *smex_placeholder_f(void)
static const void *smex_placeholder_f(void)
{
_DECLARE_LOG_ENTRY(LOG_LEVEL_DEBUG,
"placeholder so .static_log.X are not all empty",
@ -550,10 +550,10 @@ static inline const void *smex_placeholder_f(void)
return &log_entry;
}
/* Need to actually use the function and export something otherwise the
* compiler optimizes everything away.
/* Need to actually use the function and store a reference to the log entry
* otherwise the compiler optimizes everything away.
*/
const void *_smex_placeholder;
static const void *_smex_placeholder;
int task_main_start(struct sof *sof)
{