]> git.baikalelectronics.ru Git - kernel.git/commit
SUNRPC: Add missing definition of ARCH_IMPLEMENTS_FLUSH_DCACHE_PAGE
authorChristophe Leroy <christophe.leroy@csgroup.eu>
Mon, 15 Jun 2020 06:25:23 +0000 (06:25 +0000)
committerJ. Bruce Fields <bfields@redhat.com>
Mon, 29 Jun 2020 18:50:25 +0000 (14:50 -0400)
commit06d1bb98f0de04d4e3bb911b6587cdc58b97e36e
treed3ce84f0610fbf33e9fdc23e295ddc3532c9db11
parenta9762ccae70935eb4caeba4eb676a94626e45280
SUNRPC: Add missing definition of ARCH_IMPLEMENTS_FLUSH_DCACHE_PAGE

Even if that's only a warning, not including asm/cacheflush.h
leads to svc_flush_bvec() being empty allthough powerpc defines
ARCH_IMPLEMENTS_FLUSH_DCACHE_PAGE.

  CC      net/sunrpc/svcsock.o
net/sunrpc/svcsock.c:227:5: warning: "ARCH_IMPLEMENTS_FLUSH_DCACHE_PAGE" is not defined [-Wundef]
 #if ARCH_IMPLEMENTS_FLUSH_DCACHE_PAGE
     ^

Include linux/highmem.h so that asm/cacheflush.h will be included.

Reported-by: Christophe Leroy <christophe.leroy@csgroup.eu>
Reported-by: kernel test robot <lkp@intel.com>
Fixes: 463f9b718cd8 ("SUNRPC: Refactor svc_recvfrom()")
Signed-off-by: Christophe Leroy <christophe.leroy@csgroup.eu>
Acked-by: Chuck Lever <chuck.lever@oracle.com>
Signed-off-by: J. Bruce Fields <bfields@redhat.com>
net/sunrpc/svcsock.c