asm-generic: improve the flush_dcache_page stub
authorChristoph Hellwig <hch@lst.de>
Mon, 8 Jun 2020 04:41:45 +0000 (21:41 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Mon, 8 Jun 2020 18:05:57 +0000 (11:05 -0700)
commit76b3b58fac350c45e44a3868946ff5e454e8d367
treec64e7e3182116e248c426878905e48fe02c137f2
parente0cf615d725cb3b69f0bdf1d8afdd4d4c31b4fd1
asm-generic: improve the flush_dcache_page stub

There is a magic ARCH_IMPLEMENTS_FLUSH_DCACHE_PAGE cpp symbol that
guards non-stub availability of flush_dcache_pagge.  Use that to check
if flush_dcache_pagg is implemented.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Cc: Arnd Bergmann <arnd@arndb.de>
Link: http://lkml.kernel.org/r/20200515143646.3857579-8-hch@lst.de
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
include/asm-generic/cacheflush.h