mirror of
https://github.com/ARM-software/arm-trusted-firmware.git
synced 2025-04-17 01:54:22 +00:00
Merge "fix(pubsub): make sure LTO doesn't garbage collect the handlers" into integration
This commit is contained in:
commit
66a1d583e4
1 changed files with 2 additions and 2 deletions
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright (c) 2017-2023, Arm Limited and Contributors. All rights reserved.
|
||||
* Copyright (c) 2017-2024, Arm Limited and Contributors. All rights reserved.
|
||||
*
|
||||
* SPDX-License-Identifier: BSD-3-Clause
|
||||
*/
|
||||
|
@ -73,7 +73,7 @@
|
|||
*/
|
||||
#define SUBSCRIBE_TO_EVENT(event, func) \
|
||||
extern pubsub_cb_t __cb_func_##func##event __pubsub_section(event); \
|
||||
pubsub_cb_t __cb_func_##func##event __pubsub_section(event) = (func)
|
||||
pubsub_cb_t __cb_func_##func##event __used __pubsub_section(event) = (func)
|
||||
|
||||
/*
|
||||
* Iterate over subscribed handlers for a defined event. 'event' is the name of
|
||||
|
|
Loading…
Add table
Reference in a new issue