diff options
| author | David Abdurachmanov <[email protected]> | 2019-10-22 16:21:35 +0000 |
|---|---|---|
| committer | Paul Walmsley <[email protected]> | 2019-10-23 21:53:46 +0000 |
| commit | 90db7b220c9aea91948e82d51b99514f9398f9b5 (patch) | |
| tree | 82d19461ad5c0371778a75f4c722cf8aac27a336 /net/unix/af_unix.c | |
| parent | Linux 5.4-rc4 (diff) | |
| download | kernel-90db7b220c9aea91948e82d51b99514f9398f9b5.tar.gz kernel-90db7b220c9aea91948e82d51b99514f9398f9b5.zip | |
riscv: fix fs/proc/kcore.c compilation with sparsemem enabled
Failed to compile Fedora/RISCV kernel (5.4-rc3+) with sparsemem enabled:
fs/proc/kcore.c: In function 'read_kcore':
fs/proc/kcore.c:510:8: error: implicit declaration of function 'kern_addr_valid'; did you mean 'virt_addr_valid'? [-Werror=implicit-function-declaration]
510 | if (kern_addr_valid(start)) {
| ^~~~~~~~~~~~~~~
| virt_addr_valid
Looking at other architectures I don't see kern_addr_valid being guarded by
CONFIG_FLATMEM.
Fixes: d95f1a542c3d ("RISC-V: Implement sparsemem")
Signed-off-by: David Abdurachmanov <[email protected]>
Tested-by: David Abdurachmanov <[email protected]>
Reviewed-by: Logan Gunthorpe <[email protected]>
Signed-off-by: Paul Walmsley <[email protected]>
Diffstat (limited to 'net/unix/af_unix.c')
0 files changed, 0 insertions, 0 deletions
