[PATCH v5 18/29] acpi: Add an __ACPI__ preprocessor symbol

Bin Meng bmeng.cn at gmail.com
Thu Apr 16 08:17:09 CEST 2020


On Thu, Apr 9, 2020 at 6:58 AM Simon Glass <sjg at chromium.org> wrote:
>
> The ASL compiler cannot handle C structures and the like so needs some
> sort of header guard around these.
>
> We already have an __ASSEMBLY__ #define but it seems best to create a new
> one for ACPI since the rules may be different.
>
> Add the check to a few files that ACPI always includes.
>
> Signed-off-by: Simon Glass <sjg at chromium.org>
> Reviewed-by: Bin Meng <bmeng.cn at gmail.com>
> Reviewed-by: Wolfgang Wallner <wolfgang.wallner at br-automation.com>
> ---
>
> Changes in v5: None
> Changes in v4: None
> Changes in v3: None
> Changes in v2: None
>
>  include/acpi/acpi_table.h | 4 ++++
>  include/dm/acpi.h         | 4 ++++
>  scripts/Makefile.lib      | 4 ++--
>  3 files changed, 10 insertions(+), 2 deletions(-)
>

applied to u-boot-x86, thanks!


More information about the U-Boot mailing list