mirror of
https://github.com/nxp-imx/linux-imx.git
synced 2025-07-19 07:39:54 +02:00
um: Fix the -Wmissing-prototypes warning for __switch_mm
[ Upstream commit2cbade17b1
] 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:4dc706c2f2
("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>
This commit is contained in:
parent
adb1c558c6
commit
59e34e390c
|
@ -15,8 +15,6 @@ typedef struct mm_context {
|
||||||
struct page *stub_pages[2];
|
struct page *stub_pages[2];
|
||||||
} mm_context_t;
|
} mm_context_t;
|
||||||
|
|
||||||
extern void __switch_mm(struct mm_id * mm_idp);
|
|
||||||
|
|
||||||
/* Avoid tangled inclusion with asm/ldt.h */
|
/* Avoid tangled inclusion with asm/ldt.h */
|
||||||
extern long init_new_ldt(struct mm_context *to_mm, struct mm_context *from_mm);
|
extern long init_new_ldt(struct mm_context *to_mm, struct mm_context *from_mm);
|
||||||
extern void free_ldt(struct mm_context *mm);
|
extern void free_ldt(struct mm_context *mm);
|
||||||
|
|
|
@ -15,4 +15,6 @@ struct mm_id {
|
||||||
int kill;
|
int kill;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
void __switch_mm(struct mm_id *mm_idp);
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Reference in New Issue
Block a user