Re: [PATCH bpf v1 1/2] Compiler Attributes: Add __retain macro

Miguel Ojeda
2024-06-03T13:57:50Z

On Mon, Jun 3, 2024 at 2:16 PM Tony Ambardar <tony.ambardar@gmail.com> wrote:
>
> +#if __has_attribute(__retain__) && \
> + (defined(CONFIG_LD_DEAD_CODE_DATA_ELIMINATION) || \
> + defined(CONFIG_LTO_CLANG))

Since this attribute depends on the configuration, please move it to
`compiler_types.h` instead.

Cheers,
Miguel