Commit f4a18312f46a6c6e0ba7b81776b01fc36edea9fc

Authored by Thierry Reding
Committed by Greg Kroah-Hartman
1 parent 846a798174

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@avionic-design.de>
Reported-by: kbuild test robot <fengguang.wu@intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

Showing 1 changed file with 1 additions and 0 deletions Side-by-side Diff

  1 +#include <linux/err.h>
1 2 #include <linux/pci.h>
2 3 #include <linux/io.h>
3 4 #include <linux/gfp.h>