]> git.ipfire.org Git - thirdparty/u-boot.git/commitdiff
image: Fix FIT image loadable section custom processing
authorMarek Vasut <marek.vasut@mailbox.org>
Mon, 12 May 2025 15:58:39 +0000 (17:58 +0200)
committerTom Rini <trini@konsulko.com>
Fri, 30 May 2025 16:19:24 +0000 (10:19 -0600)
The original commit always generated linker list entries with the same
entry variable name, because _function passed to ll_entry_declare() is
not a variable and therefore was interpreted as fixed string. Change it
to _type which is a variable and which does allow generation of multiple
unique linker list entries, one for each U_BOOT_FIT_LOADABLE_HANDLER().

Fixes: d7be50921ed3 ("image: Add FIT image loadable section custom processing")
Signed-off-by: Marek Vasut <marek.vasut@mailbox.org>
include/image.h

index 4620782c069e757713fea77f72f6ce3a72314311..1e1bded690b99a7ed919cb5524391507985bbf19 100644 (file)
@@ -2134,7 +2134,7 @@ struct fit_loadable_tbl {
  * _handler is the handler function to call after this image type is loaded
  */
 #define U_BOOT_FIT_LOADABLE_HANDLER(_type, _handler) \
-       ll_entry_declare(struct fit_loadable_tbl, _function, fit_loadable) = { \
+       ll_entry_declare(struct fit_loadable_tbl, _type, fit_loadable) = { \
                .type = _type, \
                .handler = _handler, \
        }