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 0D705CF9C69 for ; Tue, 24 Sep 2024 20:25:48 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 823546B00A2; Tue, 24 Sep 2024 16:25:48 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 7D27D6B00A7; Tue, 24 Sep 2024 16:25:48 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 64D706B00AB; Tue, 24 Sep 2024 16:25:48 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0010.hostedemail.com [216.40.44.10]) by kanga.kvack.org (Postfix) with ESMTP id 3E2716B00A2 for ; Tue, 24 Sep 2024 16:25:48 -0400 (EDT) Received: from smtpin02.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay04.hostedemail.com (Postfix) with ESMTP id A691B1A026A for ; Tue, 24 Sep 2024 20:25:47 +0000 (UTC) X-FDA: 82600762734.02.A397166 Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.15]) by imf16.hostedemail.com (Postfix) with ESMTP id 8CFA4180007 for ; Tue, 24 Sep 2024 20:25:44 +0000 (UTC) Authentication-Results: imf16.hostedemail.com; dkim=pass header.d=intel.com header.s=Intel header.b=nWQKGfqw; dmarc=pass (policy=none) header.from=intel.com; spf=pass (imf16.hostedemail.com: domain of lkp@intel.com designates 198.175.65.15 as permitted sender) smtp.mailfrom=lkp@intel.com ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1727209448; a=rsa-sha256; cv=none; b=ISaJI/vouRQ5dnU19Mf8bzqoHUz5go0dsNW+uojSxZl5p597I4NRfU478fFCxyv8xGAJuz DlAiRY6EZpn/o6p/njUH65XQ2N9Np7C1repAoNpHayg/6z87PXF8z2sxCEyh+hh50mNMzm hCWVpueCcdhgHtLkNXp0ztyHN27ox/0= ARC-Authentication-Results: i=1; imf16.hostedemail.com; dkim=pass header.d=intel.com header.s=Intel header.b=nWQKGfqw; dmarc=pass (policy=none) header.from=intel.com; spf=pass (imf16.hostedemail.com: domain of lkp@intel.com designates 198.175.65.15 as permitted sender) smtp.mailfrom=lkp@intel.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1727209448; 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=IqiGDgc8AAMLNYsnxV/YqQXDnA6hsVTZJ7Di9JT1hFg=; b=jkaKjhqbWGVHUAYiN7jhJ9a4I8Lt3ifh+Qx2TcY23y+w/BKWj5KiUITF/xvOlUDi9pKmAo ai6FyXwq72YkmWEUF9PcYaqeYEQhWBeBdi86iyVJMQWcK3rpPUnDkIGdhYGk9kUuxzF3Pb shgn56Rc9kA3mvnB4A1HgQAgKz/weFI= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1727209545; x=1758745545; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=93gxUKIopDOuDyl7RueuP8to9UNOVhpzwFUiRm2mDGU=; b=nWQKGfqwyXFCX76B+cARa6kBIz7FIf9juuoHMaPtCns7cQcOW20OEYj7 /hYWHx9MPGjEiRtMb4P6KdpuNDuas79hnpKZ/88IK5jF3sfd2Xd9ToCJh Ahb0L9c4/klyDwk7rVQ7A8kL7XsO7bWyLaO14hpwRXeduLg0Ra4jDBW7z 4NJxxUOo+MDwu3j1M/Lgoyju+drIxp0ptKSeCi5RbpZEs6e1gLVJw862b kw50tLjWLD5igDqCUhlTVdQ2agKKDAr4pEve+kwFr70Ml27p/NP9Z/wf2 vvAjIjXuQiQwA9PGfmffN8J1720MhChkXlCtlo8mO0+/BDCx6k1SHYnbD g==; X-CSE-ConnectionGUID: nBrpM9JCSdqE1CE2DULdsg== X-CSE-MsgGUID: wkPrjGCTQz2OscMP0mDjlQ== X-IronPort-AV: E=McAfee;i="6700,10204,11205"; a="29938373" X-IronPort-AV: E=Sophos;i="6.10,255,1719903600"; d="scan'208";a="29938373" Received: from fmviesa003.fm.intel.com ([10.60.135.143]) by orvoesa107.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 24 Sep 2024 13:25:43 -0700 X-CSE-ConnectionGUID: iGvYRx9hQPu42ih2tE1DAQ== X-CSE-MsgGUID: HS6cwghiQVS5NxpipcoCcw== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.10,255,1719903600"; d="scan'208";a="75642370" Received: from lkp-server01.sh.intel.com (HELO 53e96f405c61) ([10.239.97.150]) by fmviesa003.fm.intel.com with ESMTP; 24 Sep 2024 13:25:39 -0700 Received: from kbuild by 53e96f405c61 with local (Exim 4.96) (envelope-from ) id 1stC6K-000IoH-2X; Tue, 24 Sep 2024 20:25:36 +0000 Date: Wed, 25 Sep 2024 04:25:18 +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 v4 2/5] Replace generic memcpy and memset by IO memcpy functions Message-ID: <202409250346.N624LLrr-lkp@intel.com> References: <20240924092223.534040-3-jvetter@kalrayinc.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20240924092223.534040-3-jvetter@kalrayinc.com> X-Rspamd-Server: rspam12 X-Rspamd-Queue-Id: 8CFA4180007 X-Stat-Signature: nmor9rsr1jfwsrx7egb9dh19ehpufie8 X-Rspam-User: X-HE-Tag: 1727209544-165921 X-HE-Meta: U2FsdGVkX1+GtY6c5bBxxojpS7nFCkpgccP7VlEmrvdfnsMLY9AZFNe7NruXGnBfSlBemJrsBEzFJE57oTWgdigSYDJGs0jV99hfyUR+3T3qBwnIWIzitsk70DoUqJMbGyrG6OJhTVp0SG7Mkm2IdRwFaccxRaUpYtxfXZY2oznqkSdOlAM/BNUcKwwZpJVYGX/WhXik+10syUtvb0m73b0zCECQiBUfh26h19cI2G4Cwr37d+ZagmR/fHQCWl/fPzRHYVXI29j4ZjqooLYBWrMbEDAzg2NhC662jtuJUqNwKa5R7hUwYihUjR6SngqLk2+SdrD1Gd8pfwWnxfwnn+0GmBM7GaZId1MFDqoSN5h3q7c/llFlZ3DvrT4OOhYCn1Em5Kg5fPoRCT6LgsrrpVP9zcdW5sSIgUexmnCItcasdWq0SV4y/SHcnEusDkvmDF5dPx3+pw53CT2HPDYE/paNmRii7coXG14Jbzt6OftZG1RHO580gOaRAEnZKZK1c9c9Bp9nF8j+OODm5d/i0MT1iQVLSyJV8R8+AY0ddkQUS8LXJswiKPa/N5m/eTX6nXdcVt3PNtRvENcjXtnIK0k15VXACeB7AZqxb26fxC8abJuvhX/rxSPq6pnv0m04luz25h12llVXgTxwvYjBM/6SuJYOBb7DlwOlyR7MpGbbnQJqyn417L7CUUDvZJrnIj5GUBj5DBYVW9neL1kZLmIZfrZGNx+Sdw5h6qrGSkgUCnrPRpVXyWCByV92zfybfh9vCg/EntlGPx9REuxQQ6aztM3iYVbAQpNbW5FhmNbdm3VXwwLar3z2grVmSpd9riaZMNUUAO2pnO/UDqpwq4K7I1jw3H5boGihdumrG7SUPWoEv6C5tBjLdjVxs0gumE6+8XBDAlvOrimUK7o9nbo3lVHWMRgbNSmvdAElVMAvun3z5IiGAGBrVLHJLDIl1yiHwwuaoJFfo9rNA8l +Ptp8svD iKgNLBKYn3961UtS7ewUgZL7lpI1YQgy6Mj6ljLNbHK0QAe9hOJH3V7f/EEeRplQi4Kpsn0Exyvdtci4iZnidOCPYp9scZX8kPjvOC+LnjUe9dXZ2m36dT9uLcIi8VxAO1XphlC791v2U4LCImJSj/sWXC5b61YKyHNPbQ/s7aDFO9Q39Yn5nl2Sqp++D7MSQvxcq9PiOUxkhTG0azqGUKtXU5uAL+ehtgoD90jP+dsU1L07f5diw+vyzm8mcleH6IaIykeKWh2rWeJtAKPq92SFfwiFi0sS6sJ4Wu4oueHH9rloQbu+mFA+thBpfT6tnjdgO8H0cDFtO9z2n73MAzz8HPZ5n89D5+MF/lxs43ZoMqFC+0BL87BWD+jDrYS7Ea5yowKOFz4Dt6me63CidLFsIbqvCPIc5rdeC 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 errors: [auto build test ERROR on akpm-mm/mm-nonmm-unstable] [also build test ERROR on arm64/for-next/core soc/for-next 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-a-single-lib/20240924-172751 base: https://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm.git mm-nonmm-unstable patch link: https://lore.kernel.org/r/20240924092223.534040-3-jvetter%40kalrayinc.com patch subject: [PATCH v4 2/5] Replace generic memcpy and memset by IO memcpy functions config: um-x86_64_defconfig (https://download.01.org/0day-ci/archive/20240925/202409250346.N624LLrr-lkp@intel.com/config) compiler: clang version 15.0.7 (https://github.com/llvm/llvm-project 8dfdcc7b7bf66834a761bd8de445840ef68e4d1a) reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20240925/202409250346.N624LLrr-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/202409250346.N624LLrr-lkp@intel.com/ All errors (new ones prefixed by >>): In file included from kernel/time/time.c:31: In file included from include/linux/timekeeper_internal.h:10: In file included from include/linux/clocksource.h:22: In file included from arch/um/include/asm/io.h:24: include/asm-generic/io.h:548:31: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __raw_readb(PCI_IOBASE + addr); ~~~~~~~~~~ ^ include/asm-generic/io.h:561:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le16_to_cpu((__le16 __force)__raw_readw(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ include/uapi/linux/byteorder/little_endian.h:37:51: note: expanded from macro '__le16_to_cpu' #define __le16_to_cpu(x) ((__force __u16)(__le16)(x)) ^ In file included from kernel/time/time.c:31: In file included from include/linux/timekeeper_internal.h:10: In file included from include/linux/clocksource.h:22: In file included from arch/um/include/asm/io.h:24: include/asm-generic/io.h:574:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le32_to_cpu((__le32 __force)__raw_readl(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ include/uapi/linux/byteorder/little_endian.h:35:51: note: expanded from macro '__le32_to_cpu' #define __le32_to_cpu(x) ((__force __u32)(__le32)(x)) ^ In file included from kernel/time/time.c:31: In file included from include/linux/timekeeper_internal.h:10: In file included from include/linux/clocksource.h:22: In file included from arch/um/include/asm/io.h:24: include/asm-generic/io.h:585:33: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writeb(value, PCI_IOBASE + addr); ~~~~~~~~~~ ^ include/asm-generic/io.h:595:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writew((u16 __force)cpu_to_le16(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ include/asm-generic/io.h:605:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writel((u32 __force)cpu_to_le32(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ include/asm-generic/io.h:693:20: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] readsb(PCI_IOBASE + addr, buffer, count); ~~~~~~~~~~ ^ include/asm-generic/io.h:701:20: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] readsw(PCI_IOBASE + addr, buffer, count); ~~~~~~~~~~ ^ include/asm-generic/io.h:709:20: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] readsl(PCI_IOBASE + addr, buffer, count); ~~~~~~~~~~ ^ include/asm-generic/io.h:718:21: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] writesb(PCI_IOBASE + addr, buffer, count); ~~~~~~~~~~ ^ include/asm-generic/io.h:727:21: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] writesw(PCI_IOBASE + addr, buffer, count); ~~~~~~~~~~ ^ include/asm-generic/io.h:736:21: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] writesl(PCI_IOBASE + addr, buffer, count); ~~~~~~~~~~ ^ >> include/asm-generic/io.h:1166:2: error: call to undeclared function '__memset_io'; ISO C99 and later do not support implicit function declarations [-Werror,-Wimplicit-function-declaration] __memset_io(__io_virt(addr), value, size); ^ include/asm-generic/io.h:1166:2: note: did you mean 'memset_io'? include/asm-generic/io.h:1163:20: note: 'memset_io' declared here static inline void memset_io(volatile void __iomem *addr, int value, ^ include/asm-generic/io.h:1154:19: note: expanded from macro 'memset_io' #define memset_io memset_io ^ >> include/asm-generic/io.h:1184:2: error: call to undeclared function '__memcpy_fromio'; ISO C99 and later do not support implicit function declarations [-Werror,-Wimplicit-function-declaration] __memcpy_fromio(buffer, __io_virt(addr), size); ^ include/asm-generic/io.h:1184:2: note: did you mean 'memcpy_fromio'? include/asm-generic/io.h:1180:20: note: 'memcpy_fromio' declared here static inline void memcpy_fromio(void *buffer, ^ include/asm-generic/io.h:1171:23: note: expanded from macro 'memcpy_fromio' #define memcpy_fromio memcpy_fromio ^ >> include/asm-generic/io.h:1201:2: error: call to undeclared function '__memcpy_toio'; ISO C99 and later do not support implicit function declarations [-Werror,-Wimplicit-function-declaration] __memcpy_toio(__io_virt(addr), buffer, size); ^ include/asm-generic/io.h:1201:2: note: did you mean 'memcpy_toio'? include/asm-generic/io.h:1198:20: note: 'memcpy_toio' declared here static inline void memcpy_toio(volatile void __iomem *addr, const void *buffer, ^ include/asm-generic/io.h:1189:21: note: expanded from macro 'memcpy_toio' #define memcpy_toio memcpy_toio ^ 12 warnings and 3 errors generated. -- In file included from kernel/time/hrtimer.c:30: In file included from include/linux/syscalls.h:93: In file included from include/trace/syscall.h:7: In file included from include/linux/trace_events.h:9: In file included from include/linux/hardirq.h:11: In file included from arch/um/include/asm/hardirq.h:5: In file included from include/asm-generic/hardirq.h:17: In file included from include/linux/irq.h:20: In file included from include/linux/io.h:14: In file included from arch/um/include/asm/io.h:24: include/asm-generic/io.h:548:31: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __raw_readb(PCI_IOBASE + addr); ~~~~~~~~~~ ^ include/asm-generic/io.h:561:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le16_to_cpu((__le16 __force)__raw_readw(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ include/uapi/linux/byteorder/little_endian.h:37:51: note: expanded from macro '__le16_to_cpu' #define __le16_to_cpu(x) ((__force __u16)(__le16)(x)) ^ In file included from kernel/time/hrtimer.c:30: In file included from include/linux/syscalls.h:93: In file included from include/trace/syscall.h:7: In file included from include/linux/trace_events.h:9: In file included from include/linux/hardirq.h:11: In file included from arch/um/include/asm/hardirq.h:5: In file included from include/asm-generic/hardirq.h:17: In file included from include/linux/irq.h:20: In file included from include/linux/io.h:14: In file included from arch/um/include/asm/io.h:24: include/asm-generic/io.h:574:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le32_to_cpu((__le32 __force)__raw_readl(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ include/uapi/linux/byteorder/little_endian.h:35:51: note: expanded from macro '__le32_to_cpu' #define __le32_to_cpu(x) ((__force __u32)(__le32)(x)) ^ In file included from kernel/time/hrtimer.c:30: In file included from include/linux/syscalls.h:93: In file included from include/trace/syscall.h:7: In file included from include/linux/trace_events.h:9: In file included from include/linux/hardirq.h:11: In file included from arch/um/include/asm/hardirq.h:5: In file included from include/asm-generic/hardirq.h:17: In file included from include/linux/irq.h:20: In file included from include/linux/io.h:14: In file included from arch/um/include/asm/io.h:24: include/asm-generic/io.h:585:33: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writeb(value, PCI_IOBASE + addr); ~~~~~~~~~~ ^ include/asm-generic/io.h:595:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writew((u16 __force)cpu_to_le16(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ include/asm-generic/io.h:605:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writel((u32 __force)cpu_to_le32(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ include/asm-generic/io.h:693:20: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] readsb(PCI_IOBASE + addr, buffer, count); ~~~~~~~~~~ ^ include/asm-generic/io.h:701:20: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] readsw(PCI_IOBASE + addr, buffer, count); ~~~~~~~~~~ ^ include/asm-generic/io.h:709:20: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] readsl(PCI_IOBASE + addr, buffer, count); ~~~~~~~~~~ ^ include/asm-generic/io.h:718:21: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] writesb(PCI_IOBASE + addr, buffer, count); ~~~~~~~~~~ ^ include/asm-generic/io.h:727:21: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] writesw(PCI_IOBASE + addr, buffer, count); ~~~~~~~~~~ ^ include/asm-generic/io.h:736:21: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] writesl(PCI_IOBASE + addr, buffer, count); ~~~~~~~~~~ ^ >> include/asm-generic/io.h:1166:2: error: call to undeclared function '__memset_io'; ISO C99 and later do not support implicit function declarations [-Werror,-Wimplicit-function-declaration] __memset_io(__io_virt(addr), value, size); ^ include/asm-generic/io.h:1166:2: note: did you mean 'memset_io'? include/asm-generic/io.h:1163:20: note: 'memset_io' declared here static inline void memset_io(volatile void __iomem *addr, int value, ^ include/asm-generic/io.h:1154:19: note: expanded from macro 'memset_io' #define memset_io memset_io ^ >> include/asm-generic/io.h:1184:2: error: call to undeclared function '__memcpy_fromio'; ISO C99 and later do not support implicit function declarations [-Werror,-Wimplicit-function-declaration] __memcpy_fromio(buffer, __io_virt(addr), size); ^ include/asm-generic/io.h:1184:2: note: did you mean 'memcpy_fromio'? include/asm-generic/io.h:1180:20: note: 'memcpy_fromio' declared here static inline void memcpy_fromio(void *buffer, ^ include/asm-generic/io.h:1171:23: note: expanded from macro 'memcpy_fromio' #define memcpy_fromio memcpy_fromio ^ >> include/asm-generic/io.h:1201:2: error: call to undeclared function '__memcpy_toio'; ISO C99 and later do not support implicit function declarations [-Werror,-Wimplicit-function-declaration] __memcpy_toio(__io_virt(addr), buffer, size); ^ include/asm-generic/io.h:1201:2: note: did you mean 'memcpy_toio'? include/asm-generic/io.h:1198:20: note: 'memcpy_toio' declared here static inline void memcpy_toio(volatile void __iomem *addr, const void *buffer, ^ include/asm-generic/io.h:1189:21: note: expanded from macro 'memcpy_toio' #define memcpy_toio memcpy_toio ^ kernel/time/hrtimer.c:121:21: warning: initializer overrides prior initialization of this subobject [-Winitializer-overrides] [CLOCK_REALTIME] = HRTIMER_BASE_REALTIME, ^~~~~~~~~~~~~~~~~~~~~ kernel/time/hrtimer.c:119:27: note: previous initialization is here [0 ... MAX_CLOCKS - 1] = HRTIMER_MAX_CLOCK_BASES, ^~~~~~~~~~~~~~~~~~~~~~~ kernel/time/hrtimer.c:122:22: warning: initializer overrides prior initialization of this subobject [-Winitializer-overrides] [CLOCK_MONOTONIC] = HRTIMER_BASE_MONOTONIC, ^~~~~~~~~~~~~~~~~~~~~~ kernel/time/hrtimer.c:119:27: note: previous initialization is here [0 ... MAX_CLOCKS - 1] = HRTIMER_MAX_CLOCK_BASES, ^~~~~~~~~~~~~~~~~~~~~~~ kernel/time/hrtimer.c:123:21: warning: initializer overrides prior initialization of this subobject [-Winitializer-overrides] [CLOCK_BOOTTIME] = HRTIMER_BASE_BOOTTIME, ^~~~~~~~~~~~~~~~~~~~~ kernel/time/hrtimer.c:119:27: note: previous initialization is here [0 ... MAX_CLOCKS - 1] = HRTIMER_MAX_CLOCK_BASES, ^~~~~~~~~~~~~~~~~~~~~~~ kernel/time/hrtimer.c:124:17: warning: initializer overrides prior initialization of this subobject [-Winitializer-overrides] [CLOCK_TAI] = HRTIMER_BASE_TAI, ^~~~~~~~~~~~~~~~ kernel/time/hrtimer.c:119:27: note: previous initialization is here [0 ... MAX_CLOCKS - 1] = HRTIMER_MAX_CLOCK_BASES, ^~~~~~~~~~~~~~~~~~~~~~~ 16 warnings and 3 errors generated. vim +/__memset_io +1166 include/asm-generic/io.h 1152 1153 #ifndef memset_io 1154 #define memset_io memset_io 1155 /** 1156 * memset_io Set a range of I/O memory to a constant value 1157 * @addr: The beginning of the I/O-memory range to set 1158 * @val: The value to set the memory to 1159 * @count: The number of bytes to set 1160 * 1161 * Set a range of I/O memory to a given value. 1162 */ 1163 static inline void memset_io(volatile void __iomem *addr, int value, 1164 size_t size) 1165 { > 1166 __memset_io(__io_virt(addr), value, size); 1167 } 1168 #endif 1169 1170 #ifndef memcpy_fromio 1171 #define memcpy_fromio memcpy_fromio 1172 /** 1173 * memcpy_fromio Copy a block of data from I/O memory 1174 * @dst: The (RAM) destination for the copy 1175 * @src: The (I/O memory) source for the data 1176 * @count: The number of bytes to copy 1177 * 1178 * Copy a block of data from I/O memory. 1179 */ 1180 static inline void memcpy_fromio(void *buffer, 1181 const volatile void __iomem *addr, 1182 size_t size) 1183 { > 1184 __memcpy_fromio(buffer, __io_virt(addr), size); 1185 } 1186 #endif 1187 1188 #ifndef memcpy_toio 1189 #define memcpy_toio memcpy_toio 1190 /** 1191 * memcpy_toio Copy a block of data into I/O memory 1192 * @dst: The (I/O memory) destination for the copy 1193 * @src: The (RAM) source for the data 1194 * @count: The number of bytes to copy 1195 * 1196 * Copy a block of data to I/O memory. 1197 */ 1198 static inline void memcpy_toio(volatile void __iomem *addr, const void *buffer, 1199 size_t size) 1200 { > 1201 __memcpy_toio(__io_virt(addr), buffer, size); 1202 } 1203 #endif 1204 -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki