projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
62e0fb8
)
io-mapping.h: s/PAGE_KERNEL_IO/PAGE_KERNEL/
author
Chris Wilson
<
[email protected]
>
Tue, 23 Aug 2016 15:50:24 +0000
(16:50 +0100)
committer
Daniel Vetter
<
[email protected]
>
Tue, 23 Aug 2016 15:54:36 +0000
(17:54 +0200)
PAGE_KERNEL_IO is an x86-ism. Though it is used to define the pgprot_t
used for the iomapped region, it itself is just PAGE_KERNEL. On all
other arches, PAGE_KERNEL_IO is undefined so in a general header we must
refrain from using it.
v2: include pgtable for pgprot_combine()
Reported-by: Stephen Rothwell <
[email protected]
>
Fixes: cafaf14a5d8f ("io-mapping: Always create a struct to hold metadata about the io-mapping")
Signed-off-by: Chris Wilson <
[email protected]
>
Cc: Daniel Vetter <
[email protected]
>
Cc: Joonas Lahtinen <
[email protected]
>
Cc:
[email protected]
Signed-off-by: Daniel Vetter <
[email protected]
>
Link:
http://patchwork.freedesktop.org/patch/msgid/
[email protected]
include/linux/io-mapping.h
patch
|
blob
|
history
diff --git
a/include/linux/io-mapping.h
b/include/linux/io-mapping.h
index b4c4b5c4216dd5105a253dcf269097a6eff9023b..a87dd7fffc0af461d16d325b010903e89e237289 100644
(file)
--- a/
include/linux/io-mapping.h
+++ b/
include/linux/io-mapping.h
@@
-112,7
+112,7
@@
io_mapping_unmap(void __iomem *vaddr)
#else
#include <linux/uaccess.h>
-#include <asm/pgtable
_types
.h>
+#include <asm/pgtable.h>
/* Create the io_mapping object*/
static inline struct io_mapping *
@@
-123,7
+123,7
@@
io_mapping_init_wc(struct io_mapping *iomap,
iomap->base = base;
iomap->size = size;
iomap->iomem = ioremap_wc(base, size);
- iomap->prot = pgprot_writecombine(PAGE_KERNEL
_IO
);
+ iomap->prot = pgprot_writecombine(PAGE_KERNEL);
return iomap;
}