All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] lib: devres: Fix build breakage
@ 2013-01-22 21:24 Thierry Reding
  2013-01-22 21:30 ` Greg Kroah-Hartman
  0 siblings, 1 reply; 2+ messages in thread
From: Thierry Reding @ 2013-01-22 21:24 UTC (permalink / raw)
  To: Greg Kroah-Hartman; +Cc: linux-kernel

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@avionic-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


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

* Re: [PATCH] lib: devres: Fix build breakage
  2013-01-22 21:24 [PATCH] lib: devres: Fix build breakage Thierry Reding
@ 2013-01-22 21:30 ` Greg Kroah-Hartman
  0 siblings, 0 replies; 2+ messages in thread
From: Greg Kroah-Hartman @ 2013-01-22 21:30 UTC (permalink / raw)
  To: Thierry Reding; +Cc: linux-kernel

On Tue, Jan 22, 2013 at 10:24:46PM +0100, Thierry Reding wrote:
> 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@avionic-design.de>

You forgot to put a "reported-by:" field in here, which I've now done
for you.  Please be more considerate in the future.

thanks,

greg k-h

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

end of thread, other threads:[~2013-01-22 21:30 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-01-22 21:24 [PATCH] lib: devres: Fix build breakage Thierry Reding
2013-01-22 21:30 ` Greg Kroah-Hartman

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.