]> git.baikalelectronics.ru Git - uboot.git/commit
event: Change EVENT_SPY to global
authorSimon Glass <sjg@chromium.org>
Sat, 30 Jul 2022 21:52:30 +0000 (15:52 -0600)
committerTom Rini <trini@konsulko.com>
Fri, 12 Aug 2022 12:17:11 +0000 (08:17 -0400)
commitc53a7e4ed77b634888d2d405e0b3092ccfcccf04
tree59e8dbf74bfe7c15d83a4d4d70205779c003efde
parentf0cf5f1c591af99ee2dd403ae7676c7d2802a1f4
event: Change EVENT_SPY to global

This creates static records at present, but it causes a problem with clang
and LTO: the linker list records are sometimes dropped from the image.

Fix this by making the records global.

Update to use __used while we are here.

Signed-off-by: Simon Glass <sjg@chromium.org>
include/event.h