arm: add kernel/fork.c function definitions
PATCH 1/1 arm: add kernel/fork.c function definitions
Add the definitions of arch_release_task_struct, arch_task_cache_init and arch_dup_task_struct which are used in kernel/fork.c but defined in various architecture's <asm/thread_info.h>.
Fixes the following warnings:
kernel/fork.c:160:13: warning: symbol 'arch_release_task_struct' was not declared. Should it be static? kernel/fork.c:752:20: warning: symbol 'arch_task_cache_init' was not declared. Should it be static? kernel/fork.c:841:12: warning: symbol 'arch_dup_task_struct' was not declared. Should it be static?
---
Cc: Russell King <[email protected]>
Cc: [email protected]
Cc: [email protected]
--- arch/arm/include/asm/thread_info.h | 5 +++++ 1 file changed, 5 insertions(+)
arch/arm/include/asm/thread_info.h +5 -0
@@ -118,6 +118,11 @@ extern void iwmmxt_task_switch(struct thread_info *);extern void vfp_sync_hwstate (struct thread_info *);extern void vfp_flush_hwstate (struct thread_info *); +/* for kernel/fork.c */ +extern void arch_release_task_struct (struct task_struct *tsk); +extern void arch_task_cache_init (void ); +extern int arch_dup_task_struct (struct task_struct *dst,struct task_struct *src); +struct user_vfp ;struct user_vfp_exc ;
Signature · 1 line
2.23.0
Quoted 4 lines · Ben Dooks
Add the definitions of
arch_release_task_struct,arch_task_cache_initandarch_dup_task_structwhich are used inkernel/fork.cbut defined in various architecture's <asm/thread_info.h>.
So please lift them into a common header. In fact I'm pretty sure I had that comment before when people did the same blind sparse cleanups for riscv..
_______________________________________________
linux-arm-kernel mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
Quoted 9 lines · Christoph Hellwig
Quoted 4 lines · Ben Dooks
Add the definitions of
arch_release_task_struct,arch_task_cache_initandarch_dup_task_structwhich are used inkernel/fork.cbut defined in various architecture's <asm/thread_info.h>.So please lift them into a common header. In fact I'm pretty sure I had that comment before when people did the same blind sparse cleanups for riscv..
Does anyone have a preference to where these should go?
Signature · 4 lines
Ben Dooks http://www.codethink.co.uk/ Senior Engineer Codethink - Providing Genius https://www.codethink.co.uk/privacy.html
Quoted 1 line · Ben Dooks
Does anyone have a preference to where these should go?
Maybe include/linux/thread_info.h ?