[PATCH 1/2] command.h: Add a U_BOOT_LONGHELP macro

Simon Glass sjg at google.com
Sat Oct 7 22:18:54 CEST 2023


On Sat, 7 Oct 2023 at 13:13, Tom Rini <trini at konsulko.com> wrote:
>
> In order to be able to discard unused long help texts without further
> linker lists, add a macro for defining the long help messages which uses
> __maybe_unused.  This allows us to discard them as unreferenced as part
> of the link.
>
> Signed-off-by: Tom Rini <trini at konsulko.com>
> ---
>  include/command.h | 3 +++
>  1 file changed, 3 insertions(+)

Reviewed-by: Simon Glass <sjg at chromium.org>


More information about the U-Boot mailing list