]> git.dujemihanovic.xyz Git - u-boot.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)
commit569524741a01e1a96fc2b75dd7e5d12e41ce6c2b
tree59e8dbf74bfe7c15d83a4d4d70205779c003efde
parent2ff5490d7dee933eaf0b73d4d50d76660e5da6ff
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