mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-05 18:41:58 +09:00
um: Fix the declaration of kasan_map_memory
[ Upstream commit 6a85e34c4d07d2ec0c153067baff338ac0db55ca ]
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: 5b301409e8 ("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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
68bc383a75
commit
1ffee510fa
@@ -24,7 +24,6 @@
|
|||||||
|
|
||||||
#ifdef CONFIG_KASAN
|
#ifdef CONFIG_KASAN
|
||||||
void kasan_init(void);
|
void kasan_init(void);
|
||||||
void kasan_map_memory(void *start, unsigned long len);
|
|
||||||
extern int kasan_um_is_ready;
|
extern int kasan_um_is_ready;
|
||||||
|
|
||||||
#ifdef CONFIG_STATIC_LINK
|
#ifdef CONFIG_STATIC_LINK
|
||||||
|
|||||||
@@ -67,4 +67,6 @@ extern void fatal_sigsegv(void) __attribute__ ((noreturn));
|
|||||||
|
|
||||||
void um_idle_sleep(void);
|
void um_idle_sleep(void);
|
||||||
|
|
||||||
|
void kasan_map_memory(void *start, size_t len);
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
@@ -15,6 +15,7 @@
|
|||||||
#include <sys/vfs.h>
|
#include <sys/vfs.h>
|
||||||
#include <linux/magic.h>
|
#include <linux/magic.h>
|
||||||
#include <init.h>
|
#include <init.h>
|
||||||
|
#include <kern_util.h>
|
||||||
#include <os.h>
|
#include <os.h>
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|||||||
Reference in New Issue
Block a user