[linux-next PATCH] ARM: OMAP: fix build for omap4-restart.c

Bartlomiej Zolnierkiewicz b.zolnierkie at samsung.com
Wed Jun 26 05:53:09 EDT 2013


From: Bartlomiej Zolnierkiewicz <b.zolnierkie at samsung.com>
Subject: [linux-next PATCH] ARM: OMAP: fix build for omap4-restart.c

Building omap2plus_defconfig for next-20130626 results in the following
build error:

arch/arm/mach-omap2/omap4-restart.c:21:28: warning: ‘enum reboot_mode’ declared inside parameter list [enabled by default]
arch/arm/mach-omap2/omap4-restart.c:21:28: warning: its scope is only this definition or declaration, which is probably not what you want [enabled by default]
arch/arm/mach-omap2/omap4-restart.c:21:40: error: parameter 1 (‘mode’) has incomplete type
arch/arm/mach-omap2/omap4-restart.c:21:6: warning: function declaration isn’t a prototype [-Wstrict-prototypes]

It is caused by commit 7eb135b ("reboot: arm: change reboot_mode to use
enum reboot_mode").

Fix it by adding missing include.

Cc: Stephen Rothwell <sfr at canb.auug.org.au>
Cc: Tony Lindgren <tony at atomide.com>
Cc: Robin Holt <holt at sgi.com>
Signed-off-by: Kyungmin Park <kyungmin.park at samsung.com>
Signed-off-by: Bartlomiej Zolnierkiewicz <b.zolnierkie at samsung.com>
---
 arch/arm/mach-omap2/omap4-restart.c |    1 +
 1 file changed, 1 insertion(+)

Index: b/arch/arm/mach-omap2/omap4-restart.c
===================================================================
--- a/arch/arm/mach-omap2/omap4-restart.c	2013-06-25 14:41:05.842382072 +0200
+++ b/arch/arm/mach-omap2/omap4-restart.c	2013-06-25 14:44:16.062381692 +0200
@@ -8,6 +8,7 @@
  */
 
 #include <linux/types.h>
+#include <linux/reboot.h>
 #include "prminst44xx.h"
 
 /**




More information about the linux-arm-kernel mailing list