diff options
| author | Nanyong Sun <[email protected]> | 2021-06-17 09:58:31 +0000 |
|---|---|---|
| committer | Palmer Dabbelt <[email protected]> | 2021-07-06 01:42:31 +0000 |
| commit | 9eb4fcff220790f4afadf59160f2c696e99f0a84 (patch) | |
| tree | afab52c5f4e81ed972198468b4c1e8d9c182c14d /lib/debugobjects.c | |
| parent | riscv: Introduce structure that group all variables regarding kernel mapping (diff) | |
| download | kernel-9eb4fcff220790f4afadf59160f2c696e99f0a84.tar.gz kernel-9eb4fcff220790f4afadf59160f2c696e99f0a84.zip | |
riscv: mm: fix build errors caused by mk_pmd()
With "riscv: mm: add THP support on 64-bit", mk_pmd() function
introduce build errors,
1.build with CONFIG_ARCH_RV32I=y:
arch/riscv/include/asm/pgtable.h: In function 'mk_pmd':
arch/riscv/include/asm/pgtable.h:513:9: error: implicit declaration of function 'pfn_pmd';
did you mean 'pfn_pgd'? [-Werror=implicit-function-declaration]
2.build with CONFIG_SPARSEMEM=y && CONFIG_SPARSEMEM_VMEMMAP=n
arch/riscv/include/asm/pgtable.h: In function 'mk_pmd':
include/asm-generic/memory_model.h:64:14: error: implicit declaration of function 'page_to_section';
did you mean 'present_section'? [-Werror=implicit-function-declaration]
Move the definition of mk_pmd to pgtable-64.h to fix the first error.
Use macro definition instead of inline function for mk_pmd
to fix the second problem. It is similar to the mk_pte macro.
Reported-by: kernel test robot <[email protected]>
Signed-off-by: Nanyong Sun <[email protected]>
Tested-by: Geert Uytterhoeven <[email protected]>
Signed-off-by: Palmer Dabbelt <[email protected]>
Diffstat (limited to 'lib/debugobjects.c')
0 files changed, 0 insertions, 0 deletions
