]> git.baikalelectronics.ru Git - uboot.git/commit
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)
commit77678433537ce631bb969019b2654e5cde01450b
treec429438f2b196a2ba1cde8607e8dc1f293c8ce6a
parenta2b0dbf4d8798c0062c896d6dad7be84ac122936
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