]> git.baikalelectronics.ru Git - kernel.git/commitdiff
ACPI: NUMA: add missing include in acpi_numa.h
authorRoss Zwisler <ross.zwisler@linux.intel.com>
Fri, 21 Jul 2017 22:51:23 +0000 (16:51 -0600)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Mon, 24 Jul 2017 20:27:43 +0000 (22:27 +0200)
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@linux.intel.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
include/acpi/acpi_numa.h

index d4b72944ccdabc89748f054dd92c7b355f05de5a..1e3a74f94131eb15448f9c48c8410d75602949cd 100644 (file)
@@ -3,6 +3,7 @@
 
 #ifdef CONFIG_ACPI_NUMA
 #include <linux/kernel.h>
+#include <linux/numa.h>
 
 /* Proximity bitmap length */
 #if MAX_NUMNODES > 256