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 51181C636D6 for ; Wed, 8 Feb 2023 02:20:53 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id ADE876B0071; Tue, 7 Feb 2023 21:20:52 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id A8DC46B0072; Tue, 7 Feb 2023 21:20:52 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 954EA6B0073; Tue, 7 Feb 2023 21:20:52 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0012.hostedemail.com [216.40.44.12]) by kanga.kvack.org (Postfix) with ESMTP id 853336B0071 for ; Tue, 7 Feb 2023 21:20:52 -0500 (EST) Received: from smtpin22.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay05.hostedemail.com (Postfix) with ESMTP id 5B7454032D for ; Wed, 8 Feb 2023 02:20:52 +0000 (UTC) X-FDA: 80442521544.22.0AA4B02 Received: from mga03.intel.com (mga03.intel.com [134.134.136.65]) by imf09.hostedemail.com (Postfix) with ESMTP id E86FA140003 for ; Wed, 8 Feb 2023 02:20:49 +0000 (UTC) Authentication-Results: imf09.hostedemail.com; dkim=pass header.d=intel.com header.s=Intel header.b="nnTylRv/"; spf=pass (imf09.hostedemail.com: domain of lkp@intel.com designates 134.134.136.65 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=1675822850; 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=Z+IbDK/M/24q0iXfmBGLdGVyUU0GwFTns1o4NVyMwD8=; b=rgBOziSU96+3Szmey/oNod32Z3xxfXtcZvLfpMoaCDHx9M9/vSWiH1N2ffaob9mWq0+Tw/ LtOxotGxnVBrRTCgk4FNC5iHwj4k9EjV7dAohTTL19NGnpd9tAIzTufZYsEHbKaSjREme/ y2cUYPZxHlaRPHgqoXLBHmMqnL5J6KM= ARC-Authentication-Results: i=1; imf09.hostedemail.com; dkim=pass header.d=intel.com header.s=Intel header.b="nnTylRv/"; spf=pass (imf09.hostedemail.com: domain of lkp@intel.com designates 134.134.136.65 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=1675822850; a=rsa-sha256; cv=none; b=E2DiYZ41fls4htX3ZccwhaAkiCmQ0rO44a1TsapVMJ33fN+nnx3ThZbRT/eTdO6OxeLqTB jlahBwglqR52l2k4XjDoiOUFYD2OVq4Q+hxCQZqcUGnT9RccZRg9Xz2sYl5+s+H6jYoxl1 bgeohjYyCQ2bTP0mpeXHBuTg/Tedisg= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1675822850; x=1707358850; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=esaSMXF4pXRDiwQ2/0iK+iORNJUCKhVK8lewh8asERA=; b=nnTylRv/BYQfgVniFzcfE6dtWg1OtPUI72p1GWyHsnLLJiHXHRtIlKEz FYYK2XXt0PrlhLJyNZtj0zmqT/5IMKU+mOjtjJIazaArFL9ew/LsEVZJJ 3HIn1mhMHocyufqLEUpmzmZ2HcBYduAYYE7UYM4EgKEwbQ4ITC8lhyJ9N F4pPfQ9wn3r4s93rf0YhZZXOuBRLv10Sz11DEGnMzoX5rP9kZ3bz99MDn U2715B+3eVDJytFzUyxjisA0X7jEHBv0tPche5XBizD+2U3oRn+Ss/HYV huJ2xF0jw5JrdYkYAs5apSGdtKzc0/9bl8POlWErT/W3XDdsaABaRnVkH w==; X-IronPort-AV: E=McAfee;i="6500,9779,10614"; a="331819172" X-IronPort-AV: E=Sophos;i="5.97,279,1669104000"; d="scan'208";a="331819172" Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by orsmga103.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 07 Feb 2023 18:20:47 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6500,9779,10614"; a="809771975" X-IronPort-AV: E=Sophos;i="5.97,279,1669104000"; d="scan'208";a="809771975" Received: from lkp-server01.sh.intel.com (HELO 4455601a8d94) ([10.239.97.150]) by fmsmga001.fm.intel.com with ESMTP; 07 Feb 2023 18:20:45 -0800 Received: from kbuild by 4455601a8d94 with local (Exim 4.96) (envelope-from ) id 1pPa4i-00044k-2O; Wed, 08 Feb 2023 02:20:44 +0000 Date: Wed, 8 Feb 2023 10:20:09 +0800 From: kernel test robot To: "Matthew Wilcox (Oracle)" , Yin Fengwei , linux-mm@kvack.org Cc: llvm@lists.linux.dev, oe-kbuild-all@lists.linux.dev, "Matthew Wilcox (Oracle)" , david@redhat.com, dave.hansen@intel.com, tim.c.chen@intel.com, ying.huang@intel.com Subject: Re: [PATCH v5 2/5] mm: Add generic set_ptes() Message-ID: <202302080951.lhzrREyk-lkp@intel.com> References: <20230207194937.122543-3-willy@infradead.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230207194937.122543-3-willy@infradead.org> X-Rspam-User: X-Rspamd-Server: rspam03 X-Stat-Signature: 9rpmohdm9e8fbefhjuwzfn4adpay39fi X-Rspamd-Queue-Id: E86FA140003 X-HE-Tag: 1675822849-301133 X-HE-Meta: U2FsdGVkX19kVZX+bYpOpn4virKLnplZE3Sa9q789QNqbd31w1rEr95Cq26NZ91jMpIbv/2aS42B+0+C3NLOTVjIgCRfqJBs9vnDugLX4yI22ZRzVVca6tc/Hr8/Of1P//vlfuG+Jm5V9yTcecv+wOwAkObmX0UxFm9DE0JotBIhiijW1aPZ6XHFcLYfaf5Tz6cg+0PkQH1zDKX6+Anze/uz68FbYPXP4SODCvMrKikpStuveoKiqeiCK9s56psiWLjLuF5so8UwDPJ/ciJ0RNw1WqtGO273sC6oB/6DF8+4fr+WwQnOIU+f8+DISK0nSpEv9fO3OgurvtXtun6z95vfNKiuUGQP8mKtWBwSyiCslLSPsZzzS/mq6qMOcXw9nI5dv41ZOQfWxi1c/OPVfFL/CWifkxvZHb3a2+OrazIAKiLfwBefxWpM3pmPg/c8BvI0ZZEfpSP35N3TGs9CWO12JJWheH54h8L6sE/4riR70UmAneKsWNVGuNKinfOsTa6D1vEbKJUUji9ovsyyZWMbYyKpteYAxeo9iUpz+cUI7621Y0hgVMLUMZymK41EJbdJnRP/86XjuXfKFlMRULvUHKm9Op+HM1sV3Qi+6rFwdtPZ/iLS0gwV0egd4gO3MseOuiXtiWdsK2ilMD6InDH5q2aHKis4wI2ox98oGhYLtF1sqc0Bqx17/cfNoD6Lyv6qVdh2cuZr+Eg6B4h51M8RVKGlrTppBnAzCXsLFz+xXd4euR5uo7y0wdEdShfLMHyRrsOUq2xFEaFYqIoFitKM6zjvz2+UPv9Oggf+4qS4CY8ANjIKeM8t/b6jz/lNLJ0ogAHP+Si24TCf1Ll/X7M5ed4DKPai7IHnd5CKZFS7SCYe3Bgq0pq/egDoHx8FrJKxqosrauj+3IXSABkmVSaoRIzdbuGAz0wpFb+n4cM4D06dC3Kqt0AtW3t7VFMfGi9ybtXYfnJvbbPl6yp pcfLU/6B WhxnWcvMeU1j7OiNw5ekDYlc9y2dM5Ph0o0tVzFkz9gkvVOn4l7eIXluqIw9HLzS2PprY725jsNPBlUekFCqw9xdKdt/l1MiccmYmYZktCKGBq4aGzz1N2GYlBa4Podq+Q3rZKBgIItK0BaN9FwqYuL6KiYcyK3z+3TvegSC+jHQ/WOhutlHs2ok4irqAndwPAJ9qyoZfdCc3jX95xJZcu+o1YHsFuXZsLi96hVFHLu8Rsv258DI3Bn6SrRNZ5FB1hzthau51YdBXAWKrsW0xPLVi23R6i5/j9hrzRGZExg00fdWYnvGUqOetL7uGEZLixRcolqQJawY5ylaH6xsjgNoTCAqDi2SU26MBx4F5ldwMqfL5rLRxjStaqlqfvS5GBhXPrJ3yiEGvZYAlPpXQzlLCgzioasPN7YqOP7Ku6qlU5Wqkl+dKouhCc472worfuxBKKa4gS2F6psjFcCkJJ0U1Qb7r5j/+j543LBn2T+DHnXL8TP2ALbRYT8kl5T6FBR7nAqCuqo3BFgWxV8aN2KK2yocvnxX3IeKLG8qFpzH+CTg= 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: Hi Matthew, I love your patch! Perhaps something to improve: [auto build test WARNING on next-20230207] [cannot apply to linus/master v6.2-rc7 v6.2-rc6 v6.2-rc5] [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/Matthew-Wilcox-Oracle/filemap-Add-filemap_map_folio_range/20230208-041404 patch link: https://lore.kernel.org/r/20230207194937.122543-3-willy%40infradead.org patch subject: [PATCH v5 2/5] mm: Add generic set_ptes() config: hexagon-randconfig-r041-20230205 (https://download.01.org/0day-ci/archive/20230208/202302080951.lhzrREyk-lkp@intel.com/config) compiler: clang version 17.0.0 (https://github.com/llvm/llvm-project db0e6591612b53910a1b366863348bdb9d7d2fb1) 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/intel-lab-lkp/linux/commit/1549aed85e99407fbf2600da432b84c0660d2029 git remote add linux-review https://github.com/intel-lab-lkp/linux git fetch --no-tags linux-review Matthew-Wilcox-Oracle/filemap-Add-filemap_map_folio_range/20230208-041404 git checkout 1549aed85e99407fbf2600da432b84c0660d2029 # save the config file mkdir build_dir && cp config build_dir/.config COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=hexagon olddefconfig COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=hexagon SHELL=/bin/bash drivers/media/dvb-frontends/ If you fix the issue, kindly add following tag where applicable | Reported-by: kernel test robot All warnings (new ones prefixed by >>): In file included from drivers/media/dvb-frontends/a8293.c:8: In file included from drivers/media/dvb-frontends/a8293.h:11: In file included from include/media/dvb_frontend.h:38: In file included from include/linux/i2c.h:19: In file included from include/linux/regulator/consumer.h:35: In file included from include/linux/suspend.h:5: In file included from include/linux/swap.h:9: In file included from include/linux/memcontrol.h:13: In file included from include/linux/cgroup.h:26: In file included from include/linux/kernel_stat.h:9: In file included from include/linux/interrupt.h:11: In file included from include/linux/hardirq.h:11: In file included from ./arch/hexagon/include/generated/asm/hardirq.h:1: 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:13: In file included from arch/hexagon/include/asm/io.h:334: include/asm-generic/io.h:547: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:560: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 drivers/media/dvb-frontends/a8293.c:8: In file included from drivers/media/dvb-frontends/a8293.h:11: In file included from include/media/dvb_frontend.h:38: In file included from include/linux/i2c.h:19: In file included from include/linux/regulator/consumer.h:35: In file included from include/linux/suspend.h:5: In file included from include/linux/swap.h:9: In file included from include/linux/memcontrol.h:13: In file included from include/linux/cgroup.h:26: In file included from include/linux/kernel_stat.h:9: In file included from include/linux/interrupt.h:11: In file included from include/linux/hardirq.h:11: In file included from ./arch/hexagon/include/generated/asm/hardirq.h:1: 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:13: In file included from arch/hexagon/include/asm/io.h:334: include/asm-generic/io.h:573: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 drivers/media/dvb-frontends/a8293.c:8: In file included from drivers/media/dvb-frontends/a8293.h:11: In file included from include/media/dvb_frontend.h:38: In file included from include/linux/i2c.h:19: In file included from include/linux/regulator/consumer.h:35: In file included from include/linux/suspend.h:5: In file included from include/linux/swap.h:9: In file included from include/linux/memcontrol.h:13: In file included from include/linux/cgroup.h:26: In file included from include/linux/kernel_stat.h:9: In file included from include/linux/interrupt.h:11: In file included from include/linux/hardirq.h:11: In file included from ./arch/hexagon/include/generated/asm/hardirq.h:1: 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:13: In file included from arch/hexagon/include/asm/io.h:334: include/asm-generic/io.h:584: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:594: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:604: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); ~~~~~~~~~~ ^ In file included from drivers/media/dvb-frontends/a8293.c:8: In file included from drivers/media/dvb-frontends/a8293.h:11: In file included from include/media/dvb_frontend.h:38: In file included from include/linux/i2c.h:19: In file included from include/linux/regulator/consumer.h:35: In file included from include/linux/suspend.h:5: In file included from include/linux/swap.h:9: In file included from include/linux/memcontrol.h:20: In file included from include/linux/mm.h:29: >> include/linux/pgtable.h:1454:65: warning: parameter 'addr' set but not used [-Wunused-but-set-parameter] static inline void set_ptes(struct mm_struct *mm, unsigned long addr, ^ 7 warnings generated. -- In file included from drivers/media/dvb-frontends/mb86a20s.c:12: In file included from include/media/dvb_frontend.h:38: In file included from include/linux/i2c.h:19: In file included from include/linux/regulator/consumer.h:35: In file included from include/linux/suspend.h:5: In file included from include/linux/swap.h:9: In file included from include/linux/memcontrol.h:13: In file included from include/linux/cgroup.h:26: In file included from include/linux/kernel_stat.h:9: In file included from include/linux/interrupt.h:11: In file included from include/linux/hardirq.h:11: In file included from ./arch/hexagon/include/generated/asm/hardirq.h:1: 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:13: In file included from arch/hexagon/include/asm/io.h:334: include/asm-generic/io.h:547: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:560: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 drivers/media/dvb-frontends/mb86a20s.c:12: In file included from include/media/dvb_frontend.h:38: In file included from include/linux/i2c.h:19: In file included from include/linux/regulator/consumer.h:35: In file included from include/linux/suspend.h:5: In file included from include/linux/swap.h:9: In file included from include/linux/memcontrol.h:13: In file included from include/linux/cgroup.h:26: In file included from include/linux/kernel_stat.h:9: In file included from include/linux/interrupt.h:11: In file included from include/linux/hardirq.h:11: In file included from ./arch/hexagon/include/generated/asm/hardirq.h:1: 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:13: In file included from arch/hexagon/include/asm/io.h:334: include/asm-generic/io.h:573: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 drivers/media/dvb-frontends/mb86a20s.c:12: In file included from include/media/dvb_frontend.h:38: In file included from include/linux/i2c.h:19: In file included from include/linux/regulator/consumer.h:35: In file included from include/linux/suspend.h:5: In file included from include/linux/swap.h:9: In file included from include/linux/memcontrol.h:13: In file included from include/linux/cgroup.h:26: In file included from include/linux/kernel_stat.h:9: In file included from include/linux/interrupt.h:11: In file included from include/linux/hardirq.h:11: In file included from ./arch/hexagon/include/generated/asm/hardirq.h:1: 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:13: In file included from arch/hexagon/include/asm/io.h:334: include/asm-generic/io.h:584: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:594: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:604: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); ~~~~~~~~~~ ^ In file included from drivers/media/dvb-frontends/mb86a20s.c:12: In file included from include/media/dvb_frontend.h:38: In file included from include/linux/i2c.h:19: In file included from include/linux/regulator/consumer.h:35: In file included from include/linux/suspend.h:5: In file included from include/linux/swap.h:9: In file included from include/linux/memcontrol.h:20: In file included from include/linux/mm.h:29: >> include/linux/pgtable.h:1454:65: warning: parameter 'addr' set but not used [-Wunused-but-set-parameter] static inline void set_ptes(struct mm_struct *mm, unsigned long addr, ^ drivers/media/dvb-frontends/mb86a20s.c:1572:6: warning: variable 'active_layers' set but not used [-Wunused-but-set-variable] int active_layers = 0, pre_ber_layers = 0, post_ber_layers = 0; ^ 8 warnings generated. -- In file included from drivers/media/dvb-frontends/mn88443x.c:12: In file included from include/linux/regmap.h:20: In file included from include/linux/iopoll.h:14: In file included from include/linux/io.h:13: In file included from arch/hexagon/include/asm/io.h:334: include/asm-generic/io.h:547: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:560: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 drivers/media/dvb-frontends/mn88443x.c:12: In file included from include/linux/regmap.h:20: In file included from include/linux/iopoll.h:14: In file included from include/linux/io.h:13: In file included from arch/hexagon/include/asm/io.h:334: include/asm-generic/io.h:573: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 drivers/media/dvb-frontends/mn88443x.c:12: In file included from include/linux/regmap.h:20: In file included from include/linux/iopoll.h:14: In file included from include/linux/io.h:13: In file included from arch/hexagon/include/asm/io.h:334: include/asm-generic/io.h:584: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:594: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:604: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); ~~~~~~~~~~ ^ In file included from drivers/media/dvb-frontends/mn88443x.c:15: In file included from drivers/media/dvb-frontends/mn88443x.h:11: In file included from include/media/dvb_frontend.h:38: In file included from include/linux/i2c.h:19: In file included from include/linux/regulator/consumer.h:35: In file included from include/linux/suspend.h:5: In file included from include/linux/swap.h:9: In file included from include/linux/memcontrol.h:20: In file included from include/linux/mm.h:29: >> include/linux/pgtable.h:1454:65: warning: parameter 'addr' set but not used [-Wunused-but-set-parameter] static inline void set_ptes(struct mm_struct *mm, unsigned long addr, ^ drivers/media/dvb-frontends/mn88443x.c:782:34: warning: unused variable 'mn88443x_of_match' [-Wunused-const-variable] static const struct of_device_id mn88443x_of_match[] = { ^ 8 warnings generated. vim +/addr +1454 include/linux/pgtable.h 1441 1442 #ifndef set_ptes 1443 /** 1444 * set_ptes - Map consecutive pages to a contiguous range of addresses. 1445 * @mm: Address space to map the pages into. 1446 * @addr: Address to map the first page at. 1447 * @ptep: Page table pointer for the first entry. 1448 * @pte: Page table entry for the first page. 1449 * @nr: Number of pages to map. 1450 * 1451 * Context: The caller holds the page table lock. The PTEs all lie 1452 * within a single PMD (and VMA, and folio). 1453 */ > 1454 static inline void set_ptes(struct mm_struct *mm, unsigned long addr, 1455 pte_t *ptep, pte_t pte, unsigned int nr) 1456 { 1457 for (;;) { 1458 set_pte_at(mm, addr, ptep, pte); 1459 if (--nr == 0) 1460 break; 1461 ptep++; 1462 addr += PAGE_SIZE; 1463 /* This works for x86. Check how PTEs are encoded */ 1464 pte = __pte(pte_val(pte) + PAGE_SIZE); 1465 } 1466 } 1467 #endif 1468 -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests