um: Fix the -Wmissing-prototypes warning for __switch_mm
authorTiwei Bie <tiwei.btw@antgroup.com>
Tue, 23 Apr 2024 12:58:53 +0000 (20:58 +0800)
committerRichard Weinberger <richard@nod.at>
Tue, 30 Apr 2024 12:14:08 +0000 (14:14 +0200)
commit2cbade17b18c0f0fd9963f26c9fc9b057eb1cb3a
treedc2447e8934e73ac9b87769554530eedf744d2ea
parent323ced9669a8f70a9ae707cfe46f852ca23ed23e
um: Fix the -Wmissing-prototypes warning for __switch_mm

The __switch_mm function is defined in the user code, and is called
by the kernel code. It should be declared in a shared header.

Fixes: 4dc706c2f292 ("um: take um_mmu.h to asm/mmu.h, clean asm/mmu_context.h a bit")
Signed-off-by: Tiwei Bie <tiwei.btw@antgroup.com>
Signed-off-by: Richard Weinberger <richard@nod.at>
arch/um/include/asm/mmu.h
arch/um/include/shared/skas/mm_id.h