]> git.baikalelectronics.ru Git - kernel.git/commit
io-mapping.h: s/PAGE_KERNEL_IO/PAGE_KERNEL/
authorChris Wilson <chris@chris-wilson.co.uk>
Tue, 23 Aug 2016 15:50:24 +0000 (16:50 +0100)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Wed, 24 Aug 2016 07:43:40 +0000 (09:43 +0200)
commitd7d18e7a9dfffd44950677ed650fa0123311dd16
tree53292216c1f1b947b0f2d0ef82bc7138147dedd0
parent768b398046850103101716662a8d19cb5911530d
io-mapping.h: s/PAGE_KERNEL_IO/PAGE_KERNEL/

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 <sfr@canb.auug.org.au>
Fixes: 652612a28b50 ("io-mapping: Always create a struct to hold metadata about the io-mapping")
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Cc: Daniel Vetter <daniel.vetter@ffwll.ch>
Cc: Joonas Lahtinen <joonas.lahtinen@linux.intel.com>
Cc: linux-mm@kvack.org
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Link: http://patchwork.freedesktop.org/patch/msgid/20160823155024.22379-1-chris@chris-wilson.co.uk
(cherry picked from commit ac96b5566926af83463ddcf4655856033c092f26)
include/linux/io-mapping.h