]> Git Repo - J-linux.git/commitdiff
ACPI: NUMA: Consolidate header includes
authorThorsten Blum <[email protected]>
Thu, 6 Jun 2024 18:52:02 +0000 (20:52 +0200)
committerRafael J. Wysocki <[email protected]>
Thu, 13 Jun 2024 19:17:42 +0000 (21:17 +0200)
The header file acpi/acpi_numa.h is included whether CONFIG_ACPI is
defined or not.

Include it only once before the #ifdef/#else/#endif preprocessor
directives and fix the following make includecheck warning:

acpi/acpi_numa.h is included more than once

Signed-off-by: Thorsten Blum <[email protected]>
Signed-off-by: Rafael J. Wysocki <[email protected]>
include/linux/acpi.h

index 28c3fb2bef0daacbd524476dc3a4fd97de29b22c..bb18e7bf882676973f1cc7764fed5214d288f716 100644 (file)
@@ -24,6 +24,7 @@ struct irq_domain_ops;
 #define _LINUX
 #endif
 #include <acpi/acpi.h>
+#include <acpi/acpi_numa.h>
 
 #ifdef CONFIG_ACPI
 
@@ -35,7 +36,6 @@ struct irq_domain_ops;
 
 #include <acpi/acpi_bus.h>
 #include <acpi/acpi_drivers.h>
-#include <acpi/acpi_numa.h>
 #include <acpi/acpi_io.h>
 #include <asm/acpi.h>
 
@@ -777,8 +777,6 @@ const char *acpi_get_subsystem_id(acpi_handle handle);
 #define acpi_dev_uid_match(adev, uid2)                 (adev && false)
 #define acpi_dev_hid_uid_match(adev, hid2, uid2)       (adev && false)
 
-#include <acpi/acpi_numa.h>
-
 struct fwnode_handle;
 
 static inline bool acpi_dev_found(const char *hid)
This page took 0.046014 seconds and 4 git commands to generate.