lkml.org 
[lkml]   [2019]   [May]   [21]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
Subject[PATCH] arm: add missing include <asm/system_misc.h>
Date
Include corresponding header file <asm/system_misc.h> for function
soft_restart().

../arch/arm/kernel/reboot.c:82:6: warning: no previous prototype for ‘soft_restart’ [-Wmissing-prototypes]
void soft_restart(unsigned long addr)
^~~~~~~~~~~~

Signed-off-by: Philippe Mazenauer <philippe.mazenauer@outlook.de>
---
arch/arm/kernel/reboot.c | 1 +
1 file changed, 1 insertion(+)

diff --git a/arch/arm/kernel/reboot.c b/arch/arm/kernel/reboot.c
index 3b2aa9a9fe26..8aca61faca37 100644
--- a/arch/arm/kernel/reboot.c
+++ b/arch/arm/kernel/reboot.c
@@ -10,6 +10,7 @@
#include <linux/delay.h>
#include <linux/reboot.h>

+#include <asm/system_misc.h>
#include <asm/cacheflush.h>
#include <asm/idmap.h>
#include <asm/virt.h>
--
2.17.1
\
 
 \ /
  Last update: 2019-05-21 16:28    [W:0.030 / U:1.200 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site