Skip to content

Commit

Permalink
arch/x86: add missing include to sparsemem.h
Browse files Browse the repository at this point in the history
sparsemem.h:34:32: error: unknown type name 'phys_addr_t'
extern int phys_to_target_node(phys_addr_t start);
                               ^
sparsemem.h:36:39: error: unknown type name 'u64'
extern int memory_add_physaddr_to_nid(u64 start);
                                      ^

Signed-off-by: Dmitry Vyukov <dvyukov@google.com>
Change-Id: I7011b076dff568fbdaed76ce601413c38a9d42bb
  • Loading branch information
dvyukov committed Feb 11, 2021
1 parent fe50a5c commit 29ad81a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions arch/x86/include/asm/sparsemem.h
Expand Up @@ -2,6 +2,8 @@
#ifndef _ASM_X86_SPARSEMEM_H
#define _ASM_X86_SPARSEMEM_H

#include <linux/types.h>

#ifdef CONFIG_SPARSEMEM
/*
* generic non-linear memory support:
Expand Down

0 comments on commit 29ad81a

Please sign in to comment.