From mboxrd@z Thu Jan 1 00:00:00 1970 Content-Type: multipart/mixed; boundary="===============5908559592484888250==" MIME-Version: 1.0 From: Chuck Lever To: kbuild-all@lists.01.org Subject: Re: [linux-next:master 10476/14131] net/sunrpc/svcsock.c:226:5: warning: "ARCH_IMPLEMENTS_FLUSH_DCACHE_PAGE" is not defined Date: Mon, 01 Jun 2020 23:14:03 -0400 Message-ID: <4AC60DF4-D913-41ED-AE77-8BCD7E34B120@oracle.com> In-Reply-To: <202006021008.DBOlXreN%lkp@intel.com> List-Id: --===============5908559592484888250== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable > On Jun 1, 2020, at 10:48 PM, kbuild test robot wrote: > = > tree: https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.g= it master > head: e7b08814b16b80a0bf76eeca16317f8c2ed23b8c > commit: ca07eda33e01eafa7a26ec06974f7eacee6a89c8 [10476/14131] SUNRPC: Re= factor svc_recvfrom() > config: i386-randconfig-a006-20200602 (attached as .config) > compiler: gcc-6 (Debian 6.3.0-18+deb9u1) 6.3.0 20170516 > reproduce (this is a W=3D1 build): > git checkout ca07eda33e01eafa7a26ec06974f7eacee6a89c8 > # save the attached .config to linux build tree > make W=3D1 ARCH=3Di386 = > = > If you fix the issue, kindly add following tag as appropriate > Reported-by: kbuild test robot > = > All warnings (new ones prefixed by >>, old ones prefixed by <<): > = >>> net/sunrpc/svcsock.c:226:5: warning: "ARCH_IMPLEMENTS_FLUSH_DCACHE_PAGE= " is not defined [-Wundef] > #if ARCH_IMPLEMENTS_FLUSH_DCACHE_PAGE > ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ This appears to be a problem with ARCH=3Di386, not with my patch? [cel(a)klimt linux]$ git grep ARCH_IMPLEMENTS_FLUSH_DCACHE_PAGE arch/alpha/include/asm/cacheflush.h:#define ARCH_IMPLEMENTS_FLUSH_DCACHE_PA= GE 0 arch/arc/include/asm/cacheflush.h:#define ARCH_IMPLEMENTS_FLUSH_DCACHE_PAGE= 1 arch/arm/include/asm/cacheflush.h:#define ARCH_IMPLEMENTS_FLUSH_DCACHE_PAGE= 1 arch/arm64/include/asm/cacheflush.h:#define ARCH_IMPLEMENTS_FLUSH_DCACHE_PA= GE 1 arch/c6x/include/asm/cacheflush.h:#define ARCH_IMPLEMENTS_FLUSH_DCACHE_PAGE= 0 arch/csky/abiv1/inc/abi/cacheflush.h:#define ARCH_IMPLEMENTS_FLUSH_DCACHE_P= AGE 1 arch/csky/abiv2/inc/abi/cacheflush.h:#define ARCH_IMPLEMENTS_FLUSH_DCACHE_P= AGE 1 arch/hexagon/include/asm/cacheflush.h:#define ARCH_IMPLEMENTS_FLUSH_DCACHE_= PAGE 0 arch/ia64/include/asm/cacheflush.h:#define ARCH_IMPLEMENTS_FLUSH_DCACHE_PAG= E 1 arch/m68k/include/asm/cacheflush_mm.h:#define ARCH_IMPLEMENTS_FLUSH_DCACHE_= PAGE 1 arch/m68k/include/asm/cacheflush_no.h:#define ARCH_IMPLEMENTS_FLUSH_DCACHE_= PAGE 0 arch/microblaze/include/asm/cacheflush.h:#define ARCH_IMPLEMENTS_FLUSH_DCAC= HE_PAGE 1 arch/mips/include/asm/cacheflush.h:#define ARCH_IMPLEMENTS_FLUSH_DCACHE_PAG= E 1 arch/nds32/include/asm/cacheflush.h:#define ARCH_IMPLEMENTS_FLUSH_DCACHE_PA= GE 1 arch/nios2/include/asm/cacheflush.h:#define ARCH_IMPLEMENTS_FLUSH_DCACHE_PA= GE 1 arch/openrisc/include/asm/cacheflush.h:#define ARCH_IMPLEMENTS_FLUSH_DCACHE= _PAGE 1 arch/parisc/include/asm/cacheflush.h:#define ARCH_IMPLEMENTS_FLUSH_DCACHE_P= AGE 1 arch/powerpc/include/asm/cacheflush.h:#define ARCH_IMPLEMENTS_FLUSH_DCACHE_= PAGE 1 arch/riscv/include/asm/cacheflush.h:#define ARCH_IMPLEMENTS_FLUSH_DCACHE_PA= GE 0 arch/sh/include/asm/cacheflush.h:#define ARCH_IMPLEMENTS_FLUSH_DCACHE_PAGE 1 arch/sparc/include/asm/cacheflush_32.h:#define ARCH_IMPLEMENTS_FLUSH_DCACHE= _PAGE 1 arch/sparc/include/asm/cacheflush_64.h:#define ARCH_IMPLEMENTS_FLUSH_DCACHE= _PAGE 1 arch/unicore32/include/asm/cacheflush.h:#define ARCH_IMPLEMENTS_FLUSH_DCACH= E_PAGE 1 arch/xtensa/include/asm/cacheflush.h:#define ARCH_IMPLEMENTS_FLUSH_DCACHE_P= AGE 1 arch/xtensa/include/asm/cacheflush.h:#define ARCH_IMPLEMENTS_FLUSH_DCACHE_P= AGE 0 block/blk-core.c:#if ARCH_IMPLEMENTS_FLUSH_DCACHE_PAGE include/asm-generic/cacheflush.h:#define ARCH_IMPLEMENTS_FLUSH_DCACHE_PAGE 0 include/crypto/scatterwalk.h: /* Test ARCH_IMPLEMENTS_FLUSH_DCACH= E_PAGE first as include/crypto/scatterwalk.h: if (ARCH_IMPLEMENTS_FLUSH_DCACHE_PA= GE && !PageSlab(page)) include/linux/blkdev.h:#ifndef ARCH_IMPLEMENTS_FLUSH_DCACHE_PAGE include/linux/blkdev.h:# error "You should define ARCH_IMPLEMENTS_FLUSH_DC= ACHE_PAGE for your platform" include/linux/blkdev.h:#if ARCH_IMPLEMENTS_FLUSH_DCACHE_PAGE net/packet/af_packet.c:#if ARCH_IMPLEMENTS_FLUSH_DCACHE_PAGE =3D=3D 1 net/packet/af_packet.c:#if ARCH_IMPLEMENTS_FLUSH_DCACHE_PAGE =3D=3D 1 net/packet/af_packet.c:#if ARCH_IMPLEMENTS_FLUSH_DCACHE_PAGE =3D=3D 1 net/sunrpc/svcsock.c:#if ARCH_IMPLEMENTS_FLUSH_DCACHE_PAGE net/sunrpc/xprtsock.c:#if ARCH_IMPLEMENTS_FLUSH_DCACHE_PAGE [cel(a)klimt linux]$ > vim +/ARCH_IMPLEMENTS_FLUSH_DCACHE_PAGE +226 net/sunrpc/svcsock.c > = > 225 = >> 226 #if ARCH_IMPLEMENTS_FLUSH_DCACHE_PAGE > 227 static void svc_flush_bvec(const struct bio_vec *bvec, size_t size,= size_t seek) > 228 { > 229 struct bvec_iter bi =3D { > 230 .bi_size =3D size, > 231 }; > 232 struct bio_vec bv; > 233 = > 234 bvec_iter_advance(bvec, &bi, seek & PAGE_MASK); > 235 for_each_bvec(bv, bvec, bi, bi) > 236 flush_dcache_page(bv.bv_page); > 237 } > 238 #else > 239 static inline void svc_flush_bvec(const struct bio_vec *bvec, size_= t size, > 240 size_t seek) > 241 { > 242 } > 243 #endif > 244 = > = > --- > 0-DAY CI Kernel Test Service, Intel Corporation > https://lists.01.org/hyperkitty/list/kbuild-all(a)lists.01.org > <.config.gz> -- Chuck Lever --===============5908559592484888250==--