Skip to content

Commit

Permalink
ACPI: NUMA: add missing include in acpi_numa.h
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Ross Zwisler authored and Rafael J. Wysocki committed Jul 24, 2017
1 parent 520eccd commit a0c2d9c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions include/acpi/acpi_numa.h
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@

#ifdef CONFIG_ACPI_NUMA
#include <linux/kernel.h>
#include <linux/numa.h>

/* Proximity bitmap length */
#if MAX_NUMNODES > 256
Expand Down

0 comments on commit a0c2d9c

Please sign in to comment.