diff mbox

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

Message ID 1380550105-19372-1-git-send-email-fabio.estevam@freescale.com (mailing list archive)
State New, archived
Headers show

Commit Message

Fabio Estevam Sept. 30, 2013, 2:08 p.m. UTC
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(+)

Comments

Uwe Kleine-König Sept. 30, 2013, 3:32 p.m. UTC | #1
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
diff mbox

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>