Skip to content
This repository was archived by the owner on Nov 8, 2023. It is now read-only.

Commit 79a947b

Browse files
tobluxrafaeljw
authored andcommitted
ACPI: NUMA: Consolidate header includes
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 <thorsten.blum@toblux.com> Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
1 parent 74c2a2a commit 79a947b

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

include/linux/acpi.h

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ struct irq_domain_ops;
2424
#define _LINUX
2525
#endif
2626
#include <acpi/acpi.h>
27+
#include <acpi/acpi_numa.h>
2728

2829
#ifdef CONFIG_ACPI
2930

@@ -35,7 +36,6 @@ struct irq_domain_ops;
3536

3637
#include <acpi/acpi_bus.h>
3738
#include <acpi/acpi_drivers.h>
38-
#include <acpi/acpi_numa.h>
3939
#include <acpi/acpi_io.h>
4040
#include <asm/acpi.h>
4141

@@ -777,8 +777,6 @@ const char *acpi_get_subsystem_id(acpi_handle handle);
777777
#define acpi_dev_uid_match(adev, uid2) (adev && false)
778778
#define acpi_dev_hid_uid_match(adev, hid2, uid2) (adev && false)
779779

780-
#include <acpi/acpi_numa.h>
781-
782780
struct fwnode_handle;
783781

784782
static inline bool acpi_dev_found(const char *hid)

0 commit comments

Comments
 (0)