]> git.baikalelectronics.ru Git - kernel.git/commit
include/linux/io-mapping.h: remove fallback for writecombine
authorLucas De Marchi <lucas.demarchi@intel.com>
Fri, 5 Nov 2021 20:39:10 +0000 (13:39 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Sat, 6 Nov 2021 20:30:36 +0000 (13:30 -0700)
commitb78cc78cbe2604f4738e2edec15973dcb35eed0b
treea0c751204b12d771fdb458a54f01f69dc2c99dd3
parent07902b72937161a7c3cccfde93190f2061635cf5
include/linux/io-mapping.h: remove fallback for writecombine

The fallback was introduced in commit bd6a50cad00c ("io-mapping: Fixup
for different names of writecombine") to fix the build on microblaze.

5 years later, it seems all archs now provide a pgprot_writecombine(),
so just remove the other possible fallbacks.  For microblaze,
pgprot_writecombine() is available since commit d0822e193b6f
("microblaze: Provide pgprot_device/writecombine macros for nommu").

This is build-tested on microblaze with a hack to always build
mm/io-mapping.o and without DIYing on an x86-only macro
(_PAGE_CACHE_MASK)

Link: https://lkml.kernel.org/r/20211020204838.1142908-1-lucas.demarchi@intel.com
Signed-off-by: Lucas De Marchi <lucas.demarchi@intel.com>
Cc: Chris Wilson <chris@chris-wilson.co.uk>
Cc: Daniel Vetter <daniel.vetter@ffwll.ch>
Cc: Joonas Lahtinen <joonas.lahtinen@linux.intel.com>
Cc: Peter Zijlstra <peterz@infradead.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
include/linux/io-mapping.h