]> git.baikalelectronics.ru Git - kernel.git/commit
arm64: smp: Add missing prototype for some smp.c functions
authorChen Lifu <chenlifu@huawei.com>
Mon, 29 Mar 2021 03:43:43 +0000 (11:43 +0800)
committerCatalin Marinas <catalin.marinas@arm.com>
Mon, 29 Mar 2021 09:41:42 +0000 (10:41 +0100)
commit33bdd4d4e99926412201da1106a106b02d2e5860
tree88c13b37f32ac71650dd7cc2214def821e44e97f
parent5e8af1c2bfa47d7986475c988f3467a5d8058bba
arm64: smp: Add missing prototype for some smp.c functions

In commit c598c618dc9c
("arm64: Support arch_irq_work_raise() via self IPIs") a new
function "arch_irq_work_raise" was added without a prototype.

In commit ad2aae9597fa
("arm64: Implement panic_smp_self_stop()") a new
function "panic_smp_self_stop" was added without a prototype.

We get the following warnings on W=1:
arch/arm64/kernel/smp.c:842:6: warning: no previous prototype
for ‘arch_irq_work_raise’ [-Wmissing-prototypes]
arch/arm64/kernel/smp.c:862:6: warning: no previous prototype
for ‘panic_smp_self_stop’ [-Wmissing-prototypes]

Fix the warnings by:
1. Adding the prototype for 'arch_irq_work_raise' in irq_work.h
2. Adding the prototype for 'panic_smp_self_stop' in smp.h

Signed-off-by: Chen Lifu <chenlifu@huawei.com>
Link: https://lore.kernel.org/r/20210329034343.183974-1-chenlifu@huawei.com
Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
arch/arm64/include/asm/irq_work.h
arch/arm64/include/asm/smp.h