linker_lists: Allow use in data structures
authorSimon Glass <sjg@chromium.org>
Mon, 15 Mar 2021 04:25:13 +0000 (17:25 +1300)
committerSimon Glass <sjg@chromium.org>
Mon, 22 Mar 2021 06:23:28 +0000 (19:23 +1300)
commit851144350b6ff1d4982b9af2f9b0fe48aed24b3c
treec429438f2b196a2ba1cde8607e8dc1f293c8ce6a
parentb5e514a6abc5cc31d350f9ca25cb6a6d4895c338
linker_lists: Allow use in data structures

At present linker lists are designed for use in code. They make use of
statements within expressions ({...}), for example.

It is possible to generate a reference to a linker_list entry that can
be used in data structures, where such features are not permitted. It
requires that the reference first be declared as extern. In other
words the existing macro needs to be split into two parts.

Add new macros to support this.

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