Patchwork ARM: mach-imx: cpu: Include <linux/err.h>

login
register
mail settings
Submitter Fabio Estevam
Date Sept. 30, 2013, 2:08 p.m.
Message ID <1380550105-19372-1-git-send-email-fabio.estevam@freescale.com>
Download mbox | patch
Permalink /patch/279158/
State New
Headers show

Comments

Fabio Estevam - Sept. 30, 2013, 2:08 p.m.
Commit e709f38cd7 (ARM: imx6: report soc info via soc device) causes the 
following build error on imx_v4_v5_defconfig:

arch/arm/mach-imx/cpu.c: In function 'imx_soc_device_init':
arch/arm/mach-imx/cpu.c:129:2: error: implicit declaration of function 'IS_ERR' [-Werror=implicit-function-declaration]

Include <linux/err.h> to fix it.

Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com>
---
 arch/arm/mach-imx/cpu.c | 1 +
 1 file changed, 1 insertion(+)
Uwe Kleine-K├Ânig - Sept. 30, 2013, 3:32 p.m.
On Mon, Sep 30, 2013 at 11:08:25AM -0300, Fabio Estevam wrote:
> Commit e709f38cd7 (ARM: imx6: report soc info via soc device) causes the 
> following build error on imx_v4_v5_defconfig:
> 
> arch/arm/mach-imx/cpu.c: In function 'imx_soc_device_init':
> arch/arm/mach-imx/cpu.c:129:2: error: implicit declaration of function 'IS_ERR' [-Werror=implicit-function-declaration]
> 
> Include <linux/err.h> to fix it.
The same fix was already sent earlier: 
	http://mid.gmane.org/1380542691-24756-1-git-send-email-treding@nvidia.com

Best regards
Uwe

Patch

diff --git a/arch/arm/mach-imx/cpu.c b/arch/arm/mach-imx/cpu.c
index fae2c9a..c862402 100644
--- a/arch/arm/mach-imx/cpu.c
+++ b/arch/arm/mach-imx/cpu.c
@@ -1,4 +1,5 @@ 
 
+#include <linux/err.h>
 #include <linux/module.h>
 #include <linux/io.h>
 #include <linux/of.h>