[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <1358889886-8502-1-git-send-email-thierry.reding@avionic-design.de>
Date: Tue, 22 Jan 2013 22:24:46 +0100
From: Thierry Reding <thierry.reding@...onic-design.de>
To: Greg Kroah-Hartman <gregkh@...uxfoundation.org>
Cc: linux-kernel@...r.kernel.org
Subject: [PATCH] lib: devres: Fix build breakage
The ERR_PTR() and IS_ERR() macros used by the devm_ioremap_resource()
function are defined in the linux/err.h header. On ARM this seems to be
pulled in by one of the other headers but the build fails at least on
OpenRISC.
Signed-off-by: Thierry Reding <thierry.reding@...onic-design.de>
---
lib/devres.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/lib/devres.c b/lib/devres.c
index 9c76b3a..88ad759 100644
--- a/lib/devres.c
+++ b/lib/devres.c
@@ -1,3 +1,4 @@
+#include <linux/err.h>
#include <linux/pci.h>
#include <linux/io.h>
#include <linux/gfp.h>
--
1.8.1.1
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists