diff options
| author | Tiwei Bie <[email protected]> | 2024-04-23 12:58:55 +0000 |
|---|---|---|
| committer | Richard Weinberger <[email protected]> | 2024-04-30 12:15:42 +0000 |
| commit | 6a85e34c4d07d2ec0c153067baff338ac0db55ca (patch) | |
| tree | dba37ce9e4b069f2cfb27ffea3cc59d7b4dee2e6 /arch/um/include/shared/kern_util.h | |
| parent | um: Fix the -Wmissing-prototypes warning for get_thread_reg (diff) | |
| download | kernel-6a85e34c4d07d2ec0c153067baff338ac0db55ca.tar.gz kernel-6a85e34c4d07d2ec0c153067baff338ac0db55ca.zip | |
um: Fix the declaration of kasan_map_memory
Make it match its definition (size_t vs unsigned long). And declare
it in a shared header to fix the -Wmissing-prototypes warning, as it
is defined in the user code and called in the kernel code.
Fixes: 5b301409e8bc ("UML: add support for KASAN under x86_64")
Signed-off-by: Tiwei Bie <[email protected]>
Signed-off-by: Richard Weinberger <[email protected]>
Diffstat (limited to 'arch/um/include/shared/kern_util.h')
| -rw-r--r-- | arch/um/include/shared/kern_util.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/um/include/shared/kern_util.h b/arch/um/include/shared/kern_util.h index 81bc38a2e3fc..95521b1f5b20 100644 --- a/arch/um/include/shared/kern_util.h +++ b/arch/um/include/shared/kern_util.h @@ -67,4 +67,6 @@ extern void fatal_sigsegv(void) __attribute__ ((noreturn)); void um_idle_sleep(void); +void kasan_map_memory(void *start, size_t len); + #endif |
