lkml.org 
[lkml]   [2015]   [Mar]   [4]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
Subject[PATCH 11/16] arch: x86: kernel: Add prototype for smp_reboot_interrupt
Date
smp.c defines smp_reboot_interrupt used in this file and
in some assembly, so add a prototype for the same in smp.c

This eliminates the following warning:
arch/x86/kernel/smp.c:171:27: warning: no previous prototype for ‘smp_reboot_interrupt’ [-Wmissing-prototypes]

Signed-off-by: Darshana Padmadas <darshanapadmadas@gmail.com>
---
arch/x86/kernel/smp.c | 2 ++
1 file changed, 2 insertions(+)

diff --git a/arch/x86/kernel/smp.c b/arch/x86/kernel/smp.c
index be8e1bd..07e8dec 100644
--- a/arch/x86/kernel/smp.c
+++ b/arch/x86/kernel/smp.c
@@ -168,6 +168,8 @@ static int smp_stop_nmi_callback(unsigned int val, struct pt_regs *regs)
* this function calls the 'stop' function on all other CPUs in the system.
*/

+asmlinkage __visible void smp_reboot_interrupt(void);
+
asmlinkage __visible void smp_reboot_interrupt(void)
{
ack_APIC_irq();
--
1.9.1


\
 
 \ /
  Last update: 2015-03-04 15:01    [W:0.114 / U:0.328 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site