浏览代码

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>
Thierry Reding 13 年之前
父节点
当前提交
f4a18312f4
共有 1 个文件被更改,包括 1 次插入0 次删除
  1. 1 0
      lib/devres.c

+ 1 - 0
lib/devres.c

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