Skip to content

Commit b963d12

Browse files
arndbhansendc
authored andcommitted
x86/mm: Include asm/numa.h for set_highmem_pages_init()
The set_highmem_pages_init() function is declared in asm/numa.h, which must be included in the file that defines it to avoid a W=1 warning: arch/x86/mm/highmem_32.c:7:13: error: no previous prototype for 'set_highmem_pages_init' [-Werror=missing-prototypes] Signed-off-by: Arnd Bergmann <arnd@arndb.de> Signed-off-by: Dave Hansen <dave.hansen@linux.intel.com> Reviewed-by: Alexander Lobakin <aleksander.lobakin@intel.com> Link: https://lore.kernel.org/all/20230516193549.544673-9-arnd%40kernel.org
1 parent c966483 commit b963d12

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

arch/x86/mm/highmem_32.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
#include <linux/export.h>
44
#include <linux/swap.h> /* for totalram_pages */
55
#include <linux/memblock.h>
6+
#include <asm/numa.h>
67

78
void __init set_highmem_pages_init(void)
89
{

0 commit comments

Comments
 (0)