From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by smtp.lore.kernel.org (Postfix) with ESMTP id CCF49CF9C6B for ; Tue, 24 Sep 2024 22:48:55 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 2BA726B008A; Tue, 24 Sep 2024 18:48:55 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 26AF96B0093; Tue, 24 Sep 2024 18:48:55 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 10B796B0099; Tue, 24 Sep 2024 18:48:55 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0015.hostedemail.com [216.40.44.15]) by kanga.kvack.org (Postfix) with ESMTP id DB4506B008A for ; Tue, 24 Sep 2024 18:48:54 -0400 (EDT) Received: from smtpin26.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay04.hostedemail.com (Postfix) with ESMTP id 562281A03A8 for ; Tue, 24 Sep 2024 22:48:54 +0000 (UTC) X-FDA: 82601123388.26.0136550 Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.9]) by imf15.hostedemail.com (Postfix) with ESMTP id B37BCA0004 for ; Tue, 24 Sep 2024 22:48:50 +0000 (UTC) Authentication-Results: imf15.hostedemail.com; dkim=pass header.d=intel.com header.s=Intel header.b=YasrFEI8; spf=pass (imf15.hostedemail.com: domain of lkp@intel.com designates 192.198.163.9 as permitted sender) smtp.mailfrom=lkp@intel.com; dmarc=pass (policy=none) header.from=intel.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1727217973; h=from:from:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type:content-transfer-encoding: in-reply-to:in-reply-to:references:references:dkim-signature; bh=UYt/Ci/3oZTqVOIzf+yfWnmZ9VLwvLa3nrON0gEcH2Q=; b=ub/Okw8LlpFqLbPMVulHL/L/hEFA2ecYaJOPWKuWuvcYAsguuPIvD4e9G/CA1hLi7NxCm0 G1szGBWZSI5vvcjJ3z6E4CRHIs15t8nWL0MmC53Hm6wtL7bl85whuloprFfdB9xvab+9SM ZnGv4R3FCXbeWIubmDYrFnOIcaigr3c= ARC-Authentication-Results: i=1; imf15.hostedemail.com; dkim=pass header.d=intel.com header.s=Intel header.b=YasrFEI8; spf=pass (imf15.hostedemail.com: domain of lkp@intel.com designates 192.198.163.9 as permitted sender) smtp.mailfrom=lkp@intel.com; dmarc=pass (policy=none) header.from=intel.com ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1727217973; a=rsa-sha256; cv=none; b=zluaxE6VIkEKV0HaZjtNloqRojEgQEMIc/kCxATCmOs/y/1j0GjFW1GCoD7Jt0kcK/O/v7 dZNZh1S+kKV3OVXZSBOq+z4DhsClrm+celXJaqQYCj6L0P10s5TvAM5dgrj/YER++BlW1P eITl8DhJwba2x7hgW9pQNafmkz6LVfs= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1727218130; x=1758754130; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=YFLT7lvUmLlcX+KeUeORCwsDU3A3sva3+huIQHw5Sp0=; b=YasrFEI8pm4K3Ge7VTfKJ0T/Tv6i0R3azLGESU7kLoDgGY2dsMwD15nD gfW7yCfnEcXA1uw8D5L8X20DGw1znC1F+i9gOsk+JWBifL3MI+fWWdjrO oHVkF/EzZnR9G8phgSncgmdGnlUPvB0W442gGdNGE3PWS8sWhblbZdI3F a3qVNnsVBQFGU2wWCBvneHg1rruTotG3rGXfkTBoESdXNgfk1VJGBMSdV Hc349tKxqmTItpMUdudADg7ealfSWALCnu1sdW9nj/+OzmNclKAxCObls DByJwXV77um/M8HFNmL7Zduuex84kfV7lfbVP3MSCMq2t8tK6DtV0/sdq g==; X-CSE-ConnectionGUID: DpzZ/EuuS0+Rp/Uk0G1f2A== X-CSE-MsgGUID: 4Iin4s85S/m+H45I2qNp7w== X-IronPort-AV: E=McAfee;i="6700,10204,11205"; a="36909566" X-IronPort-AV: E=Sophos;i="6.10,255,1719903600"; d="scan'208";a="36909566" Received: from fmviesa001.fm.intel.com ([10.60.135.141]) by fmvoesa103.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 24 Sep 2024 15:48:49 -0700 X-CSE-ConnectionGUID: VewxNWtFTjy2y+neNWv/nQ== X-CSE-MsgGUID: w14Jr1cfTmGEMvrzgefZ/A== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.10,255,1719903600"; d="scan'208";a="102389047" Received: from lkp-server01.sh.intel.com (HELO 53e96f405c61) ([10.239.97.150]) by fmviesa001.fm.intel.com with ESMTP; 24 Sep 2024 15:48:46 -0700 Received: from kbuild by 53e96f405c61 with local (Exim 4.96) (envelope-from ) id 1stEKp-000Iun-1x; Tue, 24 Sep 2024 22:48:43 +0000 Date: Wed, 25 Sep 2024 06:48:14 +0800 From: kernel test robot To: Julian Vetter , Arnd Bergmann , Catalin Marinas , Will Deacon , Guo Ren , Huacai Chen , WANG Xuerui , Andrew Morton Cc: llvm@lists.linux.dev, oe-kbuild-all@lists.linux.dev, Linux Memory Management List , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-csky@vger.kernel.org, loongarch@lists.linux.dev, Yann Sionneau , Julian Vetter Subject: Re: [PATCH v5 1/5] Consolidate __memcpy_{to,from}io and __memset_io into iomap_copy.c Message-ID: <202409250603.okc57309-lkp@intel.com> References: <20240924121432.798655-2-jvetter@kalrayinc.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20240924121432.798655-2-jvetter@kalrayinc.com> X-Rspamd-Server: rspam06 X-R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xPLhVmZ 7N2toN7DPNicePzfMggWt4jprIgqEyvP0GYVbNaKGpisNviHCogsbBB7Is3131tQn4Sh1osepBuxeRgB0Hc+q33Ki5VhLWY5NKKnckq6SOWiun0OLSDfHPTGec+4fSoEX47UuR8Vt3yXi29fmsiEgOo0Y5F75aQaRaqYoXWMpAyKQr+OKQvHCnI2wx1rBjF6ZRt+bYMFLYmjJceVvlk7Sw+Bb9BdRAzueyxvxxuxnlLLFK9QXS8tkVT55JwUzzNzavD9OOlFWbRxCk1pj2uSymBOnM2YwVfYk2oI1jUv++kpv9NmDSJp3tm6RX3AlLcleF7E3xZqnp9lSaHwVPtVQeCaZ4zw6xNBqywGjVvgneMSqkC8qgyy0Sg8/HrtKVZBkh7eSk2+kyNCIEbw+7ZwhBWwgNi/DGrvfsrt2Yp5tS2kuTcHwPotcfZKAmbEboRRUO82O6oqt3+ydQuf1o3KmeSYKmw== X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: List-Subscribe: List-Unsubscribe: Hi Julian, kernel test robot noticed the following build warnings: [auto build test WARNING on arnd-asm-generic/master] [also build test WARNING on soc/for-next akpm-mm/mm-nonmm-unstable arm64/for-next/core linus/master v6.11 next-20240924] [If your patch is applied to the wrong git tree, kindly drop us a note. And when submitting patch, we suggest to use '--base' as documented in https://git-scm.com/docs/git-format-patch#_base_tree_information] url: https://github.com/intel-lab-lkp/linux/commits/Julian-Vetter/Consolidate-__memcpy_-to-from-io-and-__memset_io-into-iomap_copy-c/20240924-202154 base: https://git.kernel.org/pub/scm/linux/kernel/git/arnd/asm-generic.git master patch link: https://lore.kernel.org/r/20240924121432.798655-2-jvetter%40kalrayinc.com patch subject: [PATCH v5 1/5] Consolidate __memcpy_{to,from}io and __memset_io into iomap_copy.c config: arm-mxs_defconfig (https://download.01.org/0day-ci/archive/20240925/202409250603.okc57309-lkp@intel.com/config) compiler: clang version 20.0.0git (https://github.com/llvm/llvm-project 7773243d9916f98ba0ffce0c3a960e4aa9f03e81) reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20240925/202409250603.okc57309-lkp@intel.com/reproduce) If you fix the issue in a separate patch/commit (i.e. not just a new version of the same patch/commit), kindly add following tags | Reported-by: kernel test robot | Closes: https://lore.kernel.org/oe-kbuild-all/202409250603.okc57309-lkp@intel.com/ All warnings (new ones prefixed by >>): lib/iomap_copy.c:89:19: error: call to undeclared function 'IS_ALIGNED'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 89 | while (count && !IS_ALIGNED((unsigned long)from, NATIVE_STORE_SIZE)) { | ^ lib/iomap_copy.c:121:19: error: call to undeclared function 'IS_ALIGNED'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 121 | while (count && !IS_ALIGNED((unsigned long)to, NATIVE_STORE_SIZE)) { | ^ lib/iomap_copy.c:161:19: error: call to undeclared function 'IS_ALIGNED'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 161 | while (count && !IS_ALIGNED((unsigned long)dst, NATIVE_STORE_SIZE)) { | ^ >> lib/iomap_copy.c:159:12: warning: shift count >= width of type [-Wshift-count-overflow] 159 | qc |= qc << 32; | ^ ~~ 1 warning and 3 errors generated. vim +159 lib/iomap_copy.c 84 85 86 #ifndef __memcpy_fromio 87 void __memcpy_fromio(void *to, const volatile void __iomem *from, size_t count) 88 { > 89 while (count && !IS_ALIGNED((unsigned long)from, NATIVE_STORE_SIZE)) { 90 *(u8 *)to = __raw_readb(from); 91 from++; 92 to++; 93 count--; 94 } 95 96 while (count >= NATIVE_STORE_SIZE) { 97 #ifdef CONFIG_64BIT 98 put_unaligned(__raw_readq(from), (uintptr_t *)to); 99 #else 100 put_unaligned(__raw_readl(from), (uintptr_t *)to); 101 #endif 102 103 from += NATIVE_STORE_SIZE; 104 to += NATIVE_STORE_SIZE; 105 count -= NATIVE_STORE_SIZE; 106 } 107 108 while (count) { 109 *(u8 *)to = __raw_readb(from); 110 from++; 111 to++; 112 count--; 113 } 114 } 115 EXPORT_SYMBOL(__memcpy_fromio); 116 #endif 117 118 #ifndef __memcpy_toio 119 void __memcpy_toio(volatile void __iomem *to, const void *from, size_t count) 120 { 121 while (count && !IS_ALIGNED((unsigned long)to, NATIVE_STORE_SIZE)) { 122 __raw_writeb(*(u8 *)from, to); 123 from++; 124 to++; 125 count--; 126 } 127 128 while (count >= NATIVE_STORE_SIZE) { 129 #ifdef CONFIG_64BIT 130 __raw_writeq(get_unaligned((uintptr_t *)from), to); 131 #else 132 __raw_writel(get_unaligned((uintptr_t *)from), to); 133 #endif 134 135 from += NATIVE_STORE_SIZE; 136 to += NATIVE_STORE_SIZE; 137 count -= NATIVE_STORE_SIZE; 138 } 139 140 while (count) { 141 __raw_writeb(*(u8 *)from, to); 142 from++; 143 to++; 144 count--; 145 } 146 } 147 EXPORT_SYMBOL(__memcpy_toio); 148 #endif 149 150 #ifndef __memset_io 151 void __memset_io(volatile void __iomem *dst, int c, size_t count) 152 { 153 uintptr_t qc = (u8)c; 154 155 qc |= qc << 8; 156 qc |= qc << 16; 157 158 if (IS_ENABLED(CONFIG_64BIT)) > 159 qc |= qc << 32; -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki