diff options
| author | Luc Van Oostenryck <[email protected]> | 2019-12-22 09:26:04 +0000 |
|---|---|---|
| committer | Paul Walmsley <[email protected]> | 2019-12-28 05:44:36 +0000 |
| commit | 4d47ce158efb7b145c680e79cd33e3c6fd773de4 (patch) | |
| tree | 535ad09cbfa0e4b9a9f4939bb170daf52d22c5a5 /drivers/firmware/psci/psci.c | |
| parent | Linux 5.5-rc3 (diff) | |
| download | kernel-4d47ce158efb7b145c680e79cd33e3c6fd773de4.tar.gz kernel-4d47ce158efb7b145c680e79cd33e3c6fd773de4.zip | |
riscv: fix compile failure with EXPORT_SYMBOL() & !MMU
When support for !MMU was added, the declaration of
__asm_copy_to_user() & __asm_copy_from_user() were #ifdefed
out hence their EXPORT_SYMBOL() give an error message like:
.../riscv_ksyms.c:13:15: error: '__asm_copy_to_user' undeclared here
.../riscv_ksyms.c:14:15: error: '__asm_copy_from_user' undeclared here
Since these symbols are not defined with !MMU it's wrong to export them.
Same for __clear_user() (even though this one is also declared in
include/asm-generic/uaccess.h and thus doesn't give an error message).
Fix this by doing the EXPORT_SYMBOL() directly where these symbols
are defined: inside lib/uaccess.S itself.
Fixes: 6bd33e1ece52 ("riscv: fix compile failure with EXPORT_SYMBOL() & !MMU")
Reported-by: kbuild test robot <[email protected]>
Cc: Christoph Hellwig <[email protected]>
Cc: Palmer Dabbelt <[email protected]>
Cc: Paul Walmsley <[email protected]>
Signed-off-by: Luc Van Oostenryck <[email protected]>
Signed-off-by: Paul Walmsley <[email protected]>
Diffstat (limited to 'drivers/firmware/psci/psci.c')
0 files changed, 0 insertions, 0 deletions
