]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 16 Jun 2024 11:39:44 +0000 (13:39 +0200)
commit026ea9532a9b2521b6e4eae885af621896e5997e
tree558044dfc0bae53146fe183f5395fc21f982a9f9
parent97e1f40f9f51d155478503af2ebd2c468583a0a5
um: Fix the -Wmissing-prototypes warning for __switch_mm

[ Upstream commit 2cbade17b18c0f0fd9963f26c9fc9b057eb1cb3a ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
arch/um/include/asm/mmu.h
arch/um/include/shared/skas/mm_id.h