From mboxrd@z Thu Jan 1 00:00:00 1970 From: Simon Glass Date: Wed, 17 Mar 2021 01:29:00 +0000 Subject: [PATCH v4 03/42] linker_lists: Allow use in data structures In-Reply-To: <20210315172537.v4.3.If4b6aad281b0987643878ab428b5120dbdbbecfb@changeid> References: <20210315172537.v4.3.If4b6aad281b0987643878ab428b5120dbdbbecfb@changeid> <20210315042553.1932494-1-sjg@chromium.org> Message-ID: List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de 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 --- (no changes since v3) Changes in v3: - Drop the decl() variant since it is just as easy to use extern include/linker_lists.h | 12 ++++++++++++ 1 file changed, 12 insertions(+) Applied to u-boot-dm/next, thanks!