From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on gnuweeb.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,SPF_HELO_NONE,SPF_PASS, URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 Received: from mga09.intel.com (mga09.intel.com [134.134.136.24]) by gnuweeb.org (Postfix) with ESMTPS id 590C97E2E7 for ; Mon, 14 Mar 2022 07:26:16 +0000 (UTC) Authentication-Results: gnuweeb.org; dkim=pass (2048-bit key; unprotected) header.d=intel.com header.i=@intel.com header.a=rsa-sha256 header.s=Intel header.b=geH2euoU; dkim-atps=neutral DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1647242776; x=1678778776; h=date:from:to:cc:subject:message-id:mime-version; bh=bfWcMYWS2zvebQ7CpaRsDpVSYIbxbj/UAZ95la2dDTE=; b=geH2euoUBhvg4LRESCBT3QVwXlEsLQJoaJRgByNSd87yHIhEB11JwPyk B51arw1i+XbZW4SlXtl0hLG0xxF0HwI5aYu2li7DZ4k4R11R+vXavoksx L6Ocv8SDgpmG8JWHVs/NsFG3obiRcMsD1hd/IwZ0jUe7TmqWhPCaLg5B9 TamLHKxEod9ccAkeRM62p7Hsun3XyRn5Bs2JiEA3AryMTnPaUSBhoSDw3 AXDg8pGRAojRtXgfoOpAqkJjPjybAbD+YF5alL+ovdVR96OvTWOX0tw7e qMP3AgjFbzfBfl0dcsM6Ok/NYeVfDgidbTMc+GeXtvwatVJjyVLJ8aLht w==; X-IronPort-AV: E=McAfee;i="6200,9189,10285"; a="255684448" X-IronPort-AV: E=Sophos;i="5.90,180,1643702400"; d="scan'208";a="255684448" Received: from orsmga006.jf.intel.com ([10.7.209.51]) by orsmga102.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 14 Mar 2022 00:26:15 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.90,180,1643702400"; d="scan'208";a="515310957" Received: from lkp-server02.sh.intel.com (HELO 89b41b6ae01c) ([10.239.97.151]) by orsmga006.jf.intel.com with ESMTP; 14 Mar 2022 00:26:14 -0700 Received: from kbuild by 89b41b6ae01c with local (Exim 4.92) (envelope-from ) id 1nTf5p-0009gq-Ct; Mon, 14 Mar 2022 07:26:13 +0000 Date: Mon, 14 Mar 2022 15:25:38 +0800 From: kernel test robot To: Herbert Xu Cc: kbuild-all@lists.01.org, GNU/Weeb Mailing List , linux-kernel@vger.kernel.org Subject: [ammarfaizi2-block:herbert/cryptodev-2.6/master 137/137] include/linux/cacheflush.h:12:46: warning: 'struct folio' declared inside parameter list will not be visible outside of this definition or declaration Message-ID: <202203141545.snRTl9jH-lkp@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.10.1 (2018-07-13) List-Id: tree: https://github.com/ammarfaizi2/linux-block herbert/cryptodev-2.6/master head: 0e03b8fd29363f2df44e2a7a176d486de550757a commit: 0e03b8fd29363f2df44e2a7a176d486de550757a [137/137] crypto: xilinx - Turn SHA into a tristate and allow COMPILE_TEST config: h8300-allmodconfig (https://download.01.org/0day-ci/archive/20220314/202203141545.snRTl9jH-lkp@intel.com/config) compiler: h8300-linux-gcc (GCC) 11.2.0 reproduce (this is a W=1 build): wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross chmod +x ~/bin/make.cross # https://github.com/ammarfaizi2/linux-block/commit/0e03b8fd29363f2df44e2a7a176d486de550757a git remote add ammarfaizi2-block https://github.com/ammarfaizi2/linux-block git fetch --no-tags ammarfaizi2-block herbert/cryptodev-2.6/master git checkout 0e03b8fd29363f2df44e2a7a176d486de550757a # save the config file to linux build tree mkdir build_dir COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross O=build_dir ARCH=h8300 SHELL=/bin/bash drivers/crypto/xilinx/ If you fix the issue, kindly add following tag as appropriate Reported-by: kernel test robot All warnings (new ones prefixed by >>): In file included from drivers/crypto/xilinx/zynqmp-sha.c:6: >> include/linux/cacheflush.h:12:46: warning: 'struct folio' declared inside parameter list will not be visible outside of this definition or declaration 12 | static inline void flush_dcache_folio(struct folio *folio) | ^~~~~ In file included from include/asm-generic/percpu.h:5, from ./arch/h8300/include/generated/asm/percpu.h:1, from include/linux/irqflags.h:17, from include/asm-generic/cmpxchg.h:15, from ./arch/h8300/include/generated/asm/cmpxchg.h:1, from include/asm-generic/atomic.h:12, from ./arch/h8300/include/generated/asm/atomic.h:1, from include/linux/atomic.h:7, from include/linux/crypto.h:15, from include/crypto/hash.h:11, from drivers/crypto/xilinx/zynqmp-sha.c:7: include/linux/scatterlist.h: In function 'sg_set_buf': include/asm-generic/page.h:89:51: warning: ordered comparison of pointer with null pointer [-Wextra] 89 | #define virt_addr_valid(kaddr) (((void *)(kaddr) >= (void *)PAGE_OFFSET) && \ | ^~ include/linux/compiler.h:78:45: note: in definition of macro 'unlikely' 78 | # define unlikely(x) __builtin_expect(!!(x), 0) | ^ include/linux/scatterlist.h:160:9: note: in expansion of macro 'BUG_ON' 160 | BUG_ON(!virt_addr_valid(buf)); | ^~~~~~ include/linux/scatterlist.h:160:17: note: in expansion of macro 'virt_addr_valid' 160 | BUG_ON(!virt_addr_valid(buf)); | ^~~~~~~~~~~~~~~ vim +12 include/linux/cacheflush.h 522a0032af0055 Matthew Wilcox (Oracle 2021-11-06 6) 522a0032af0055 Matthew Wilcox (Oracle 2021-11-06 7) #if ARCH_IMPLEMENTS_FLUSH_DCACHE_PAGE 522a0032af0055 Matthew Wilcox (Oracle 2021-11-06 8) #ifndef ARCH_IMPLEMENTS_FLUSH_DCACHE_FOLIO 522a0032af0055 Matthew Wilcox (Oracle 2021-11-06 9) void flush_dcache_folio(struct folio *folio); 522a0032af0055 Matthew Wilcox (Oracle 2021-11-06 10) #endif 522a0032af0055 Matthew Wilcox (Oracle 2021-11-06 11) #else 522a0032af0055 Matthew Wilcox (Oracle 2021-11-06 @12) static inline void flush_dcache_folio(struct folio *folio) 522a0032af0055 Matthew Wilcox (Oracle 2021-11-06 13) { 522a0032af0055 Matthew Wilcox (Oracle 2021-11-06 14) } 522a0032af0055 Matthew Wilcox (Oracle 2021-11-06 15) #define ARCH_IMPLEMENTS_FLUSH_DCACHE_FOLIO 0 522a0032af0055 Matthew Wilcox (Oracle 2021-11-06 16) #endif /* ARCH_IMPLEMENTS_FLUSH_DCACHE_PAGE */ 522a0032af0055 Matthew Wilcox (Oracle 2021-11-06 17) :::::: The code at line 12 was first introduced by commit :::::: 522a0032af005502507f5f81ae64fdcc82b5d068 Add linux/cacheflush.h :::::: TO: Matthew Wilcox (Oracle) :::::: CC: Matthew Wilcox (Oracle) --- 0-DAY CI Kernel Test Service https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org