[4.4,1/4] arm: add missing include platform-data/atmel.h

Message ID 20191202094150.32485-1-lee.jones@linaro.org
State Superseded
Headers show
Series
  • [4.4,1/4] arm: add missing include platform-data/atmel.h
Related show

Commit Message

Lee Jones Dec. 2, 2019, 9:41 a.m.
From: Philippe Mazenauer <philippe.mazenauer@outlook.de>


[ Upstream commit 95701b1c3c8fe36368361394e3950094eece4723 ]

Include corresponding headerfile <linux/platform-data/atmel.h> for
function at91_suspend_entering_slow_clock().

../arch/arm/mach-at91/pm.c:279:5: warning: no previous prototype for ‘at91_suspend_entering_slow_clock’ [-Wmissing-prototypes]
 int at91_suspend_entering_slow_clock(void)
     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Signed-off-by: Philippe Mazenauer <philippe.mazenauer@outlook.de>

Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>

Signed-off-by: Lee Jones <lee.jones@linaro.org>

---
 arch/arm/mach-at91/pm.c | 1 +
 1 file changed, 1 insertion(+)

-- 
2.24.0

Comments

Greg KH Dec. 2, 2019, 4:20 p.m. | #1
On Mon, Dec 02, 2019 at 09:41:47AM +0000, Lee Jones wrote:
> From: Philippe Mazenauer <philippe.mazenauer@outlook.de>

> 

> [ Upstream commit 95701b1c3c8fe36368361394e3950094eece4723 ]

> 

> Include corresponding headerfile <linux/platform-data/atmel.h> for

> function at91_suspend_entering_slow_clock().

> 

> ../arch/arm/mach-at91/pm.c:279:5: warning: no previous prototype for ‘at91_suspend_entering_slow_clock’ [-Wmissing-prototypes]

>  int at91_suspend_entering_slow_clock(void)

>      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

> 

> Signed-off-by: Philippe Mazenauer <philippe.mazenauer@outlook.de>

> Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>

> Signed-off-by: Lee Jones <lee.jones@linaro.org>

> ---

>  arch/arm/mach-at91/pm.c | 1 +

>  1 file changed, 1 insertion(+)


Does this show up on a "normal" build?  Or do you have to run with "W=1"
to see it?  There's no need for stable patches for stuff that only shows
up with W=1, thanks.

greg k-h

Patch

diff --git a/arch/arm/mach-at91/pm.c b/arch/arm/mach-at91/pm.c
index 84eefbc2b4f9..983a313bdbaf 100644
--- a/arch/arm/mach-at91/pm.c
+++ b/arch/arm/mach-at91/pm.c
@@ -24,6 +24,7 @@ 
 #include <linux/platform_device.h>
 #include <linux/io.h>
 #include <linux/clk/at91_pmc.h>
+#include <linux/platform_data/atmel.h>
 
 #include <asm/irq.h>
 #include <linux/atomic.h>