um: Fix the declaration of kasan_map_memory
authorTiwei Bie <tiwei.btw@antgroup.com>
Tue, 23 Apr 2024 12:58:55 +0000 (20:58 +0800)
committerRichard Weinberger <richard@nod.at>
Tue, 30 Apr 2024 12:15:42 +0000 (14:15 +0200)
commit6a85e34c4d07d2ec0c153067baff338ac0db55ca
treedba37ce9e4b069f2cfb27ffea3cc59d7b4dee2e6
parent3144013e48f4f6e5127223c4ebc488016815dedb
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 <tiwei.btw@antgroup.com>
Signed-off-by: Richard Weinberger <richard@nod.at>
arch/um/include/asm/kasan.h
arch/um/include/shared/kern_util.h
arch/um/os-Linux/mem.c