platform: (cosmetic) make all timer objects static

All platform.c files contain timer objects, and some also arch_timers
and most platforms define those objects as global. Make them static.

Signed-off-by: Guennadi Liakhovetski <guennadi.liakhovetski@linux.intel.com>
This commit is contained in:
Guennadi Liakhovetski 2021-08-31 11:41:10 +02:00 committed by Liam Girdwood
parent ac5ba211ba
commit 36cb5b32d8
7 changed files with 8 additions and 8 deletions

View File

@ -61,7 +61,7 @@ static const struct sof_ipc_fw_ready ready
.flags = DEBUG_SET_FW_READY_FLAGS,
};
SHARED_DATA struct timer timer = {
static SHARED_DATA struct timer timer = {
.id = TIMER0,
.irq = IRQ_NUM_TIMER0,
};

View File

@ -129,7 +129,7 @@ const struct ext_man_windows xsram_window
},
};
SHARED_DATA struct timer timer = {
static SHARED_DATA struct timer timer = {
.id = TIMER1, /* internal timer */
.irq = IRQ_NUM_TIMER2,
};

View File

@ -128,7 +128,7 @@ const struct ext_man_windows xsram_window
}
};
SHARED_DATA struct timer timer = {
static SHARED_DATA struct timer timer = {
.id = TIMER0, /* internal timer */
.irq = IRQ_NUM_TIMER0,
};

View File

@ -127,7 +127,7 @@ const struct ext_man_windows xsram_window
},
};
SHARED_DATA struct timer timer = {
static SHARED_DATA struct timer timer = {
.id = TIMER0, /* internal timer */
.irq = IRQ_NUM_TIMER0,
};

View File

@ -124,7 +124,7 @@ const struct ext_man_windows xsram_window
}
};
SHARED_DATA struct timer timer = {
static SHARED_DATA struct timer timer = {
.id = TIMER0, /* internal timer */
.irq = IRQ_NUM_TIMER0,
};

View File

@ -264,13 +264,13 @@ const int n_iomux = ARRAY_SIZE(iomux_data);
#endif
SHARED_DATA struct timer timer = {
static SHARED_DATA struct timer timer = {
.id = TIMER3, /* external timer */
.irq = IRQ_EXT_TSTAMP0_LVL2,
.irq_name = irq_name_level2,
};
SHARED_DATA struct timer arch_timers[CONFIG_CORE_COUNT];
static SHARED_DATA struct timer arch_timers[CONFIG_CORE_COUNT];
#if CONFIG_DW_SPI

View File

@ -13,7 +13,7 @@
#include <sof/lib/mailbox.h>
#include <sof/lib/dai.h>
SHARED_DATA struct timer timer = {};
static SHARED_DATA struct timer timer = {};
static uint8_t mailbox[MAILBOX_DSPBOX_SIZE +
MAILBOX_HOSTBOX_SIZE +