linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] ARM: mach-imx: cpu: Include <linux/err.h>
@ 2013-09-30 14:08 Fabio Estevam
  2013-09-30 15:32 ` Uwe Kleine-König
  0 siblings, 1 reply; 2+ messages in thread
From: Fabio Estevam @ 2013-09-30 14:08 UTC (permalink / raw)
  To: linux-arm-kernel

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(+)

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>
-- 
1.8.1.2

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* [PATCH] ARM: mach-imx: cpu: Include <linux/err.h>
  2013-09-30 14:08 [PATCH] ARM: mach-imx: cpu: Include <linux/err.h> Fabio Estevam
@ 2013-09-30 15:32 ` Uwe Kleine-König
  0 siblings, 0 replies; 2+ messages in thread
From: Uwe Kleine-König @ 2013-09-30 15:32 UTC (permalink / raw)
  To: linux-arm-kernel

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

Best regards
Uwe

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

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2013-09-30 15:32 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-09-30 14:08 [PATCH] ARM: mach-imx: cpu: Include <linux/err.h> Fabio Estevam
2013-09-30 15:32 ` Uwe Kleine-König

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).