]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
x86: Move include of bitops out of ACPI region
authorSimon Glass <sjg@chromium.org>
Tue, 22 Sep 2020 18:45:41 +0000 (12:45 -0600)
committerBin Meng <bmeng.cn@gmail.com>
Fri, 25 Sep 2020 03:27:25 +0000 (11:27 +0800)
At present linux/bitops.h is included in ACPI code. This is not needed and
can cause a problem in fls64.h since BITS_PER_LONG is not defined. Move
the #include into the part not used by ACPI.

Signed-off-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
include/acpi/acpi_table.h

index 3a243bf19ce1bf64a33b65853f249b9f1c8cf8a5..abbca6530db75a327edf4936139018c6d00d18ba 100644 (file)
@@ -14,7 +14,6 @@
 #define __ACPI_TABLE_H__
 
 #include <dm/acpi.h>
-#include <linux/bitops.h>
 
 #define RSDP_SIG               "RSD PTR "      /* RSDP pointer signature */
 #define OEM_ID                 "U-BOOT"        /* U-Boot */
@@ -29,6 +28,8 @@
 
 #if !defined(__ACPI__)
 
+#include <linux/bitops.h>
+
 struct acpi_ctx;
 
 /*