Skip to contentSkip to conversation

acpi: add missing include in acpi_numa.h

PATCH In review Ross Zwisler 2 participants 3 messages Jul 21, 2017 – Jul 24, 2017

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

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
     ^~~~~~~~~~~~
Signed-off-by Ross Zwisler <ross.zwisler(a)linux.intel.com>
Acked-by Rafael J. Wysocki <rafael.j.wysocki(a)intel.com>

---

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
index d4b7294..1e3a74f 100644
@@ -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
#1 lore raw

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".

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 +1 -1
index edb0c79..917f1cc 100644
@@ -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
#2 lore raw

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
index edb0c79..917f1cc 100644

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!