[prev in list] [next in list] [prev in thread] [next in thread]
List: linux-backports
Subject: [PATCH 4/8] header: add IOMEM_ERR_PTR()
From: Hauke Mehrtens <hauke () hauke-m ! de>
Date: 2017-09-10 22:10:16
Message-ID: 20170910221020.13067-5-hauke () hauke-m ! de
[Download RAW message or body]
This was added in kernel 3.17 in commit efd342fb0031a1 ("of: Provide a
function to request and map memory")
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
---
backport/backport-include/linux/io.h | 9 +++++++++
1 file changed, 9 insertions(+)
create mode 100644 backport/backport-include/linux/io.h
diff --git a/backport/backport-include/linux/io.h b/backport/backport-include/linux/io.h
new file mode 100644
index 00000000..78ae4650
--- /dev/null
+++ b/backport/backport-include/linux/io.h
@@ -0,0 +1,9 @@
+#ifndef __BP_LINUX_IO_H
+#define __BP_LINUX_IO_H
+#include_next <linux/io.h>
+
+#ifndef IOMEM_ERR_PTR
+#define IOMEM_ERR_PTR(err) (__force void __iomem *)ERR_PTR(err)
+#endif
+
+#endif /* __BP_LINUX_IO_H */
--
2.11.0
--
To unsubscribe from this list: send the line "unsubscribe backports" in
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic