Skip to content

Commit

Permalink
lib: devres: Fix build breakage
Browse files Browse the repository at this point in the history
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>
Reported-by: kbuild test robot <fengguang.wu@intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
  • Loading branch information
Thierry Reding authored and gregkh committed Jan 22, 2013
1 parent 846a798 commit f4a1831
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/devres.c
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#include <linux/err.h>
#include <linux/pci.h>
#include <linux/io.h>
#include <linux/gfp.h>
Expand Down

0 comments on commit f4a1831

Please sign in to comment.