Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

ARM: 6988/1: multi-cpu: remove arguments from CPU proc macros

The macros for invoking functions via the processor struct in the
MULTI_CPU case define the arguments as part of the macros, making it
impossible to take the address of those functions.

This patch removes the arguments from the macro definitions so that we
can take the address of these functions like we can for the !MULTI_CPU
case.

Reported-by: Frank Hofmann <frank.hofmann@tomtom.com>
Signed-off-by: Will Deacon <will.deacon@arm.com>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>

authored by

Will Deacon and committed by
Russell King
eca5dc2a f022e4e4

+7 -7
+7 -7
arch/arm/include/asm/proc-fns.h
··· 82 82 extern void cpu_set_pte_ext(pte_t *ptep, pte_t pte, unsigned int ext); 83 83 extern void cpu_reset(unsigned long addr) __attribute__((noreturn)); 84 84 #else 85 - #define cpu_proc_init() processor._proc_init() 86 - #define cpu_proc_fin() processor._proc_fin() 87 - #define cpu_reset(addr) processor.reset(addr) 88 - #define cpu_do_idle() processor._do_idle() 89 - #define cpu_dcache_clean_area(addr,sz) processor.dcache_clean_area(addr,sz) 90 - #define cpu_set_pte_ext(ptep,pte,ext) processor.set_pte_ext(ptep,pte,ext) 91 - #define cpu_do_switch_mm(pgd,mm) processor.switch_mm(pgd,mm) 85 + #define cpu_proc_init processor._proc_init 86 + #define cpu_proc_fin processor._proc_fin 87 + #define cpu_reset processor.reset 88 + #define cpu_do_idle processor._do_idle 89 + #define cpu_dcache_clean_area processor.dcache_clean_area 90 + #define cpu_set_pte_ext processor.set_pte_ext 91 + #define cpu_do_switch_mm processor.switch_mm 92 92 #endif 93 93 94 94 extern void cpu_resume(void);