acpi: add missing include in acpi_numa.h
Subsystems (2)
PATCH 1/2 acpi: add missing include in acpi_numa.h
Right now if a file includes acpi_numa.h and they don't happen to include linux/numa.h before it, they get the following warning:
./include/acpi/acpi_numa.h:9:5: warning: "MAX_NUMNODES" is not defined [-Wundef]
#if MAX_NUMNODES > 256
^~~~~~~~~~~~---
These two small fixes were previously part of my HMAT enabling series, but I thought I'd submit them seperately so they don't get held up while I'm iterating that series.
--- include/acpi/acpi_numa.h | 1 + 1 file changed, 1 insertion(+)
include/acpi/acpi_numa.h +1 -0
@@ -3,6 +3,7 @@#ifdef CONFIG_ACPI_NUMA #include <linux/kernel.h> +#include <linux/numa.h> /* Proximity bitmap length */ #if MAX_NUMNODES >256
Signature · 1 line
2.9.4
PATCH 2/2 acpi: Fix typo in SRAT table name
To save someone the time of searching the ACPI spec for "Static Resource Affinity Table".
--- drivers/acpi/numa.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/acpi/numa.c +1 -1
@@ -443,7 +443,7 @@ int __init acpi_numa_init(void)* So go over all cpu entries in SRAT to get apicid to node mapping. */ -/* SRAT: Static Resource Affinity Table */ +/* SRAT: System Resource Affinity Table */ if (!acpi_table_parse (ACPI_SIG_SRAT , acpi_parse_srat)) {struct acpi_subtable_proc srat_proc[3 ];
Signature · 1 line
2.9.4
Re: [PATCH 2/2] acpi: Fix typo in SRAT table name
Quoted 14 lines · Ross Zwisler
To save someone the time of searching the ACPI spec for "Static Resource Affinity Table".
Signed-off-by Ross Zwisler <ross.zwisler(a)linux.intel.com>--- drivers/acpi/numa.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)drivers/acpi/numa.c +0
-0
drivers/acpi/numa.c int __init acpi_numa_init(void) · line 449
Quoted 8 lines
drivers/acpi/numa.c +1
-1@@ -443,7 +443,7 @@ int __init acpi_numa_init(void)* So go over all cpu entries in SRAT to get apicid to node mapping. */ -/* SRAT: Static Resource Affinity Table */ +/* SRAT: System Resource Affinity Table */ if (!acpi_table_parse (ACPI_SIG_SRAT , acpi_parse_srat)) {struct acpi_subtable_proc srat_proc[3 ];
Both this and the [1/2] applied, thanks!