diff mbox

ARM: sunxi: add missing include for mdelay()

Message ID 20121130013730.GA30592@beefymiracle.amer.corp.natinst.com (mailing list archive)
State New, archived
Headers show

Commit Message

Josh Cartwright Nov. 30, 2012, 1:37 a.m. UTC
CC      arch/arm/mach-sunxi/sunxi.o
./arch/arm/mach-sunxi/sunxi.c: In function 'sunxi_restart':
./arch/arm/mach-sunxi/sunxi.c:55:3: error: implicit declaration of function 'mdelay' [-Werror=implicit-function-declaration]

Signed-off-by: Josh Cartwright <josh.cartwright@ni.com>
---
Fixes multiplatform build error seen with today's linux-next-20121129.

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

Comments

Maxime Ripard Nov. 30, 2012, 8:18 a.m. UTC | #1
Le 30/11/2012 02:37, Josh Cartwright a écrit :
>   CC      arch/arm/mach-sunxi/sunxi.o
> ./arch/arm/mach-sunxi/sunxi.c: In function 'sunxi_restart':
> ./arch/arm/mach-sunxi/sunxi.c:55:3: error: implicit declaration of function 'mdelay' [-Werror=implicit-function-declaration]
> 
> Signed-off-by: Josh Cartwright <josh.cartwright@ni.com>

Acked-by: Maxime Ripard <maxime.ripard@free-electrons.com>

> ---
> Fixes multiplatform build error seen with today's linux-next-20121129.
> 
>  arch/arm/mach-sunxi/sunxi.c | 1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/arch/arm/mach-sunxi/sunxi.c b/arch/arm/mach-sunxi/sunxi.c
> index dc634ae..9be910f 100644
> --- a/arch/arm/mach-sunxi/sunxi.c
> +++ b/arch/arm/mach-sunxi/sunxi.c
> @@ -10,6 +10,7 @@
>   * warranty of any kind, whether express or implied.
>   */
>  
> +#include <linux/delay.h>
>  #include <linux/kernel.h>
>  #include <linux/init.h>
>  #include <linux/of_address.h>
>
Olof Johansson Nov. 30, 2012, 5:58 p.m. UTC | #2
On Fri, Nov 30, 2012 at 09:18:18AM +0100, Maxime Ripard wrote:
> Le 30/11/2012 02:37, Josh Cartwright a écrit :
> >   CC      arch/arm/mach-sunxi/sunxi.o
> > ./arch/arm/mach-sunxi/sunxi.c: In function 'sunxi_restart':
> > ./arch/arm/mach-sunxi/sunxi.c:55:3: error: implicit declaration of function 'mdelay' [-Werror=implicit-function-declaration]
> > 
> > Signed-off-by: Josh Cartwright <josh.cartwright@ni.com>
> 
> Acked-by: Maxime Ripard <maxime.ripard@free-electrons.com>
> 

Thanks, applied on top of sunxi/soc2.


-Olof
diff mbox

Patch

diff --git a/arch/arm/mach-sunxi/sunxi.c b/arch/arm/mach-sunxi/sunxi.c
index dc634ae..9be910f 100644
--- a/arch/arm/mach-sunxi/sunxi.c
+++ b/arch/arm/mach-sunxi/sunxi.c
@@ -10,6 +10,7 @@ 
  * warranty of any kind, whether express or implied.
  */
 
+#include <linux/delay.h>
 #include <linux/kernel.h>
 #include <linux/init.h>
 #include <linux/of_address.h>