mirror of https://github.com/thesofproject/sof.git
notify: resolve a name conflict
notify_data is a name of a structure, a field in a structure, a static object and a local variable in several functions. Use a different name to at least avoid conflicting static and local variables. Signed-off-by: Guennadi Liakhovetski <guennadi.liakhovetski@linux.intel.com>
This commit is contained in:
parent
8a3968cfbf
commit
904e031b24
|
@ -25,7 +25,7 @@ DECLARE_SOF_UUID("notifier", notifier_uuid, 0x1fb15a7a, 0x83cd, 0x4c2e,
|
||||||
|
|
||||||
DECLARE_TR_CTX(nt_tr, SOF_UUID(notifier_uuid), LOG_LEVEL_INFO);
|
DECLARE_TR_CTX(nt_tr, SOF_UUID(notifier_uuid), LOG_LEVEL_INFO);
|
||||||
|
|
||||||
static SHARED_DATA struct notify_data notify_data[CONFIG_CORE_COUNT];
|
static SHARED_DATA struct notify_data notify_data_shared[CONFIG_CORE_COUNT];
|
||||||
|
|
||||||
struct callback_handle {
|
struct callback_handle {
|
||||||
void *receiver;
|
void *receiver;
|
||||||
|
@ -199,8 +199,8 @@ void init_system_notify(struct sof *sof)
|
||||||
list_init(&(*notify)->list[i]);
|
list_init(&(*notify)->list[i]);
|
||||||
|
|
||||||
if (cpu_get_id() == PLATFORM_PRIMARY_CORE_ID)
|
if (cpu_get_id() == PLATFORM_PRIMARY_CORE_ID)
|
||||||
sof->notify_data = platform_shared_get(notify_data,
|
sof->notify_data = platform_shared_get(notify_data_shared,
|
||||||
sizeof(notify_data));
|
sizeof(notify_data_shared));
|
||||||
}
|
}
|
||||||
|
|
||||||
void free_system_notify(void)
|
void free_system_notify(void)
|
||||||
|
|
Loading…
Reference in New Issue