aboutsummaryrefslogtreecommitdiffstats
path: root/net/unix/af_unix.c
diff options
context:
space:
mode:
authorKefeng Wang <[email protected]>2019-10-23 03:23:01 +0000
committerPaul Walmsley <[email protected]>2019-10-23 21:53:46 +0000
commit62103ece52360992a6799e9ec85628166a8477e8 (patch)
treeec446ce613be76450b3c6f73e540f9b75def2a90 /net/unix/af_unix.c
parentriscv: fix fs/proc/kcore.c compilation with sparsemem enabled (diff)
downloadkernel-62103ece52360992a6799e9ec85628166a8477e8.tar.gz
kernel-62103ece52360992a6799e9ec85628166a8477e8.zip
riscv: Fix implicit declaration of 'page_to_section'
With CONFIG_SPARSEMEM and !CONFIG_SPARSEMEM_VMEMMAP, arch/riscv/include/asm/pgtable.h: In function ‘mk_pte’: 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] int __sec = page_to_section(__pg); \ ^~~~~~~~~~~~~~~ Fixed by changing mk_pte() from inline function to macro. Cc: Logan Gunthorpe <[email protected]> Fixes: d95f1a542c3d ("RISC-V: Implement sparsemem") Signed-off-by: Kefeng Wang <[email protected]> [[email protected]: fixed checkpatch errors] Signed-off-by: Paul Walmsley <[email protected]>
Diffstat (limited to 'net/unix/af_unix.c')
0 files changed, 0 insertions, 0 deletions