Skip to contentSkip to conversation

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

PATCH New Fabio Estevam 2 participants 2 messages Sep 30, 2013

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

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

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.

---
 arch/arm/mach-imx/cpu.c | 1 +
 1 file changed, 1 insertion(+)
arch/arm/mach-imx/cpu.c +1 -0
index fae2c9a..c862402 100644
@@ -1,4 +1,5 @@
 
+#include <linux/err.h>
 #include <linux/module.h>
 #include <linux/io.h>
 #include <linux/of.h>
Signature · 1 line
1.8.1.2
#1 lore raw

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

Quoted 7 lines · Fabio Estevam

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 at nvidia.com

Best regards
Uwe

Signature · 2 lines
Pengutronix e.K.                           | Uwe Kleine-K?nig            |
Industrial Linux Solutions                 | http://www.pengutronix.de/  |