On Tue, 21 Feb 2023 at 16:33, Aditya Kumar <appu...@google.com> wrote:
>
> From 39d292a327b104dcb1347afb545b2baeb7b2227e Mon Sep 17 00:00:00 2001
> From: AdityaK <appu...@google.com>
> Date: Tue, 21 Feb 2023 15:05:54 -0800
> Subject: [PATCH] linker_lists.h: Add attribute used to ll_entry_start macro
>
> The variable gets dropped by clang compiler in an optimized builds.
> Adding attribute((used)) allows the symbol to be preserved. Similar
> changes have been proposed in the past e.g.,
> 569524741a01e1a96fc2b75dd7e5d12e41ce6c2b for ll_entry_declare macro.
>
> Signed-off-by: AdityaK <appu...@google.com>
> ---
>  include/linker_lists.h | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)

Reviewed-by: Simon Glass <s...@chromium.org>

Reply via email to