[PATCH] include: completion.h: Convert the rest of the dummy functions to macros

Peng Fan peng.fan at oss.nxp.com
Mon Sep 29 04:45:24 CEST 2025


Hi Tom,

On Fri, Sep 26, 2025 at 09:31:28AM -0600, Tom Rini wrote:
>While we declare some of our dummy functions as "inline" we do not also
>declare them as "static" and so it is possible for the compiler to
>decide to make these as global functions instead. This can lead to link
>time failures in some cases, such as "allyesconfig". As these are just
>dummy functions, convert them to a macro instead.
>

Sorry for my ignorance, why we not follow Linux Kernel to use "static inline"?

Thanks,
Peng


More information about the U-Boot mailing list