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 56C77D32D8B for ; Tue, 12 Nov 2024 10:19:28 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id B295C6B00EC; Tue, 12 Nov 2024 05:19:27 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id AD8ED6B00ED; Tue, 12 Nov 2024 05:19:27 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 952826B00EE; Tue, 12 Nov 2024 05:19:27 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0017.hostedemail.com [216.40.44.17]) by kanga.kvack.org (Postfix) with ESMTP id 708D06B00EC for ; Tue, 12 Nov 2024 05:19:27 -0500 (EST) Received: from smtpin11.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay08.hostedemail.com (Postfix) with ESMTP id 135A214037E for ; Tue, 12 Nov 2024 10:19:27 +0000 (UTC) X-FDA: 82777045218.11.7216413 Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.18]) by imf18.hostedemail.com (Postfix) with ESMTP id A2CF01C0015 for ; Tue, 12 Nov 2024 10:19:05 +0000 (UTC) Authentication-Results: imf18.hostedemail.com; dkim=pass header.d=intel.com header.s=Intel header.b=WprDqI5i; spf=pass (imf18.hostedemail.com: domain of lkp@intel.com designates 198.175.65.18 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=1731406622; 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=J64LCzxNLs7w69PrUsytqAMFDsBD6wfJ0svbpFgKCXc=; b=4vviicrFsYgffUcWNG8nFoD/Z+lFjxeI+plOmNxvaBQJaZPJaDDpNjV2EUqDXNz5/8aKMl g4kcTUcYB1ygMle+77P7kzVQE8aZNmsiQJJDcYO6aKW+JQZk0Q/JK/XjXUaKL9jb7ajQWD uYqMk1HcauwwF1A8+wv71KlPPPotL4U= ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1731406622; a=rsa-sha256; cv=none; b=3gfXv/3I65DtFGM3WSOg/gZC0SSswhzkWbOOtjeUJQzJ/lrypIjFNxAWsnOY7/FFQGbYVH u1pwQHHZ4Iu095RzarlpLZtYhgGFGHbYQevUIiJDeqb+dwh5Hp+m3PnJf2zn/OyArK/m1O sfsZ17TEccEl9NCWHNuGnPczzrAlVag= ARC-Authentication-Results: i=1; imf18.hostedemail.com; dkim=pass header.d=intel.com header.s=Intel header.b=WprDqI5i; spf=pass (imf18.hostedemail.com: domain of lkp@intel.com designates 198.175.65.18 as permitted sender) smtp.mailfrom=lkp@intel.com; dmarc=pass (policy=none) header.from=intel.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1731406764; x=1762942764; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=hOV0Cyam6/MaGDK/wCOTgJNkoOmx/0lpY0GypN54K+s=; b=WprDqI5i81xoL3gvXCSZBwtvz9Fm9agR0j5aFAreaprDkQ9CTYV1w7vJ G4Bng8x4tDRQZ6S06ceQQyrzNbrcF1RjAwh4Wh4LDBt7RFBTA6NDlvQys 6Tiw95G/RVtv7X4oq4SgrAphtzaEiP7ZaUnGCI5tdBfrDMZAHVzuDc3WX niAPVLkDEAWYAv2IpO3ka+Yz/kl62wFnAPq0WyA/HgoqR7yTZcZtEPFgn CwHPKUZv2GvxCosHZeihL5gMZO5DwEwLMWIdh7uowH03roV69QxndBQyy 0/VvlVjp+EfMbLBw5bWPKvFo6HPkEOr1O+ZI6bLepzfCznKExLVWE+gA6 Q==; X-CSE-ConnectionGUID: QeQ8L4t5Rb2TlpTLUBEBSQ== X-CSE-MsgGUID: oeB8muTrQ2qriDg98JIWSA== X-IronPort-AV: E=McAfee;i="6700,10204,11222"; a="31405562" X-IronPort-AV: E=Sophos;i="6.11,199,1725346800"; d="scan'208";a="31405562" Received: from fmviesa009.fm.intel.com ([10.60.135.149]) by orvoesa110.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 12 Nov 2024 02:19:22 -0800 X-CSE-ConnectionGUID: OvNBB8TvQ8qCQI2O7h2cYQ== X-CSE-MsgGUID: GV6Wll5HRcGYT+8l9mpCVw== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.12,147,1728975600"; d="scan'208";a="87802267" Received: from lkp-server01.sh.intel.com (HELO bcfed0da017c) ([10.239.97.150]) by fmviesa009.fm.intel.com with ESMTP; 12 Nov 2024 02:19:14 -0800 Received: from kbuild by bcfed0da017c with local (Exim 4.96) (envelope-from ) id 1tAnzL-0000hp-20; Tue, 12 Nov 2024 10:19:11 +0000 Date: Tue, 12 Nov 2024 18:18:46 +0800 From: kernel test robot To: Suren Baghdasaryan , akpm@linux-foundation.org Cc: llvm@lists.linux.dev, oe-kbuild-all@lists.linux.dev, willy@infradead.org, liam.howlett@oracle.com, lorenzo.stoakes@oracle.com, mhocko@suse.com, vbabka@suse.cz, hannes@cmpxchg.org, mjguzik@gmail.com, oliver.sang@intel.com, mgorman@techsingularity.net, david@redhat.com, peterx@redhat.com, oleg@redhat.com, dave@stgolabs.net, paulmck@kernel.org, brauner@kernel.org, dhowells@redhat.com, hdanton@sina.com, hughd@google.com, minchan@google.com, jannh@google.com, shakeel.butt@linux.dev, souravpanda@google.com, pasha.tatashin@soleen.com, linux-mm@kvack.org, linux-kernel@vger.kernel.org, kernel-team@android.com, surenb@google.com Subject: Re: [PATCH 2/4] mm: move per-vma lock into vm_area_struct Message-ID: <202411121840.hE2wZKgE-lkp@intel.com> References: <20241111205506.3404479-3-surenb@google.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20241111205506.3404479-3-surenb@google.com> X-Rspam-User: X-Rspamd-Server: rspam12 X-Rspamd-Queue-Id: A2CF01C0015 X-Stat-Signature: j973hswu4ntaeddhtdfbebbigd478h1c X-HE-Tag: 1731406745-328374 X-HE-Meta: U2FsdGVkX1+cJut7/tQeyKXgAZUHf0HHY+3NGgqdQuGI+jZco0yaEJDQB1z7QbSdJZj5irmkatYYV0T0wYRwevKVYN8Xbz08KHVRb3bV03FxmvNgPetNd2dC6LmMMI/C9NhqLIAERnZyAwfiGbLdpIeX9E2PYvZITL40/SA7TwaXM/hXIPxKquph2sBlCzaumAfNBZSqwwi7f4hSteFjEnYgLU6ECcPPv/MgZdEvQlgWZ32cZ5BHWSHt8jrV/uAFGS+Ew7Dzo6r/h6zuN8vab006D2sLYgkgCT9zrC6A41GJRBfQa9kKaNcvny7j2f+gk7WQ1bciiTX0Sk09zS0ZshzQAyewp2iq97UuJ7K5Fah5iToERzCiJSYAj3PX+1JBzT/2JfndU9L5aL5JrvGLz7vUejTWqTwVakbXfhi4GYv2twpeBDDEO2zu8tdgIQmhbD9VsMT970SgOMrAhfOjT6ktjuDulQVusTN3/uxlp7iqY9l8baXmbrqTJo6guaSW8iWifrltd7y1cac1uWBaGHX0skG7N10CeLY634tuDAkQNxnOn3S/ogFb7sZLEHVmsv5Fh3MwPid01JpTc3hf3R4yM+1R2mvZLdqUNc5UarJRC2VOCBo/3VRmXHRUb1OO8iDUMeMSWOOOang1K0BtfPmqGrWRUEAsSMGlKNPP3sCxNkEagtX4bQVCykMZR4b8l2IGTNcAVfP0/4Y5Z+TkMhOCBdgbURaMCxMbqx66BlB6oAjgN2zyhiPwCPqhwbEpjJ1W4040jkrSSZUY1ZO5TSy2Ln+O304rH2z+Avm3m8VKcpGWR0J7G8uqzLD2GVXbxASCKiv3HxcF3nYbZXDdvypI8sqw5gSyxroqkig9s3tmdYO9KA/+iR1IQ3i8/0+K+Lg5reAHLT6SKCAZbONVrltomm0ob4ad1b9JUstD3VOjMOfDmM83GNNVJoT5kR/foqFufFsFwLJ0VZjq98F hhb/uJic uOF76F8qEzakTqJatMcu8PfeXnnd31LFB+kKj6nCHIn0UN7/d+PKyyETRPygv/1V+eAF7aoh0XVP7v/rDRewzfHS1EnJ6/YckGSBszCi6k0tLfa7CrgNN3kVQFLi5yekqdouIz4q6kKbyXQ7XKQYAVe4o1OejVpNNuyAF9NRBMZXMWVwefWP7Z09fVBUQsEME8ibLiABT6kcB1Lx6Jg1lCSMBSIrqjRekeyEVCCbCbDlY4iMcptTt6ImZsb+Pi3TVFyfcuCdSCemwSYznyVUQTioxT7ld7p6rwOtkUc/TAo6+OpalANZqc84bKyAWgKDPnn07qZlaU37pDuNMWsBXNrkTGyc6p1XuK9cSx33vfyHNFhdQwXRg826prLgvuWEb1kHmauWX7lDU9KBMLiPP5vHWWQ== 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 Suren, kernel test robot noticed the following build warnings: [auto build test WARNING on 931086f2a88086319afb57cd3925607e8cda0a9f] url: https://github.com/intel-lab-lkp/linux/commits/Suren-Baghdasaryan/mm-introduce-vma_start_read_locked-_nested-helpers/20241112-050531 base: 931086f2a88086319afb57cd3925607e8cda0a9f patch link: https://lore.kernel.org/r/20241111205506.3404479-3-surenb%40google.com patch subject: [PATCH 2/4] mm: move per-vma lock into vm_area_struct config: hexagon-randconfig-002-20241112 (https://download.01.org/0day-ci/archive/20241112/202411121840.hE2wZKgE-lkp@intel.com/config) compiler: clang version 20.0.0git (https://github.com/llvm/llvm-project 592c0fe55f6d9a811028b5f3507be91458ab2713) reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20241112/202411121840.hE2wZKgE-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/202411121840.hE2wZKgE-lkp@intel.com/ All warnings (new ones prefixed by >>): | ^ include/uapi/asm-generic/signal.h:62:2: note: array 'sig' declared here 62 | unsigned long sig[_NSIG_WORDS]; | ^ In file included from kernel/dma/direct.c:7: In file included from include/linux/memblock.h:12: In file included from include/linux/mm.h:1143: In file included from include/linux/huge_mm.h:7: In file included from include/linux/fs.h:33: In file included from include/linux/percpu-rwsem.h:7: In file included from include/linux/rcuwait.h:6: In file included from include/linux/sched/signal.h:6: include/linux/signal.h:187:1: warning: array index 3 is past the end of the array (that has type 'unsigned long[2]') [-Warray-bounds] 187 | _SIG_SET_OP(signotset, _sig_not) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ include/linux/signal.h:174:10: note: expanded from macro '_SIG_SET_OP' 174 | case 4: set->sig[3] = op(set->sig[3]); \ | ^ ~ include/uapi/asm-generic/signal.h:62:2: note: array 'sig' declared here 62 | unsigned long sig[_NSIG_WORDS]; | ^ In file included from kernel/dma/direct.c:7: In file included from include/linux/memblock.h:12: In file included from include/linux/mm.h:1143: In file included from include/linux/huge_mm.h:7: In file included from include/linux/fs.h:33: In file included from include/linux/percpu-rwsem.h:7: In file included from include/linux/rcuwait.h:6: In file included from include/linux/sched/signal.h:6: include/linux/signal.h:187:1: warning: array index 2 is past the end of the array (that has type 'unsigned long[2]') [-Warray-bounds] 187 | _SIG_SET_OP(signotset, _sig_not) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ include/linux/signal.h:175:20: note: expanded from macro '_SIG_SET_OP' 175 | set->sig[2] = op(set->sig[2]); \ | ^ ~ include/linux/signal.h:186:24: note: expanded from macro '_sig_not' 186 | #define _sig_not(x) (~(x)) | ^ include/uapi/asm-generic/signal.h:62:2: note: array 'sig' declared here 62 | unsigned long sig[_NSIG_WORDS]; | ^ In file included from kernel/dma/direct.c:7: In file included from include/linux/memblock.h:12: In file included from include/linux/mm.h:1143: In file included from include/linux/huge_mm.h:7: In file included from include/linux/fs.h:33: In file included from include/linux/percpu-rwsem.h:7: In file included from include/linux/rcuwait.h:6: In file included from include/linux/sched/signal.h:6: include/linux/signal.h:187:1: warning: array index 2 is past the end of the array (that has type 'unsigned long[2]') [-Warray-bounds] 187 | _SIG_SET_OP(signotset, _sig_not) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ include/linux/signal.h:175:3: note: expanded from macro '_SIG_SET_OP' 175 | set->sig[2] = op(set->sig[2]); \ | ^ ~ include/uapi/asm-generic/signal.h:62:2: note: array 'sig' declared here 62 | unsigned long sig[_NSIG_WORDS]; | ^ In file included from kernel/dma/direct.c:7: In file included from include/linux/memblock.h:12: In file included from include/linux/mm.h:2234: include/linux/vmstat.h:518:36: warning: arithmetic between different enumeration types ('enum node_stat_item' and 'enum lru_list') [-Wenum-enum-conversion] 518 | return node_stat_name(NR_LRU_BASE + lru) + 3; // skip "nr_" | ~~~~~~~~~~~ ^ ~~~ In file included from kernel/dma/direct.c:7: In file included from include/linux/memblock.h:13: In file included from arch/hexagon/include/asm/dma.h:9: In file included from arch/hexagon/include/asm/io.h:328: include/asm-generic/io.h:548:31: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] 548 | 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] 561 | 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' 37 | #define __le16_to_cpu(x) ((__force __u16)(__le16)(x)) | ^ In file included from kernel/dma/direct.c:7: In file included from include/linux/memblock.h:13: In file included from arch/hexagon/include/asm/dma.h:9: In file included from arch/hexagon/include/asm/io.h:328: include/asm-generic/io.h:574:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] 574 | 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' 35 | #define __le32_to_cpu(x) ((__force __u32)(__le32)(x)) | ^ In file included from kernel/dma/direct.c:7: In file included from include/linux/memblock.h:13: In file included from arch/hexagon/include/asm/dma.h:9: In file included from arch/hexagon/include/asm/io.h:328: include/asm-generic/io.h:585:33: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] 585 | __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] 595 | __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] 605 | __raw_writel((u32 __force)cpu_to_le32(value), PCI_IOBASE + addr); | ~~~~~~~~~~ ^ >> kernel/dma/direct.c:147:20: warning: shift count >= width of type [-Wshift-count-overflow] 146 | if (IS_ENABLED(CONFIG_ZONE_DMA32) && | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 147 | phys_limit < DMA_BIT_MASK(64) && | ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~ 148 | !(gfp & (GFP_DMA32 | GFP_DMA))) { | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ include/linux/dma-mapping.h:77:54: note: expanded from macro 'DMA_BIT_MASK' 77 | #define DMA_BIT_MASK(n) (((n) == 64) ? ~0ULL : ((1ULL<<(n))-1)) | ^ include/linux/compiler.h:55:47: note: expanded from macro 'if' 55 | #define if(cond, ...) if ( __trace_if_var( !!(cond , ## __VA_ARGS__) ) ) | ~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ include/linux/compiler.h:57:52: note: expanded from macro '__trace_if_var' 57 | #define __trace_if_var(cond) (__builtin_constant_p(cond) ? (cond) : __trace_if_value(cond)) | ^~~~ >> kernel/dma/direct.c:147:20: warning: shift count >= width of type [-Wshift-count-overflow] 146 | if (IS_ENABLED(CONFIG_ZONE_DMA32) && | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 147 | phys_limit < DMA_BIT_MASK(64) && | ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~ 148 | !(gfp & (GFP_DMA32 | GFP_DMA))) { | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ include/linux/dma-mapping.h:77:54: note: expanded from macro 'DMA_BIT_MASK' 77 | #define DMA_BIT_MASK(n) (((n) == 64) ? ~0ULL : ((1ULL<<(n))-1)) | ^ include/linux/compiler.h:55:47: note: expanded from macro 'if' 55 | #define if(cond, ...) if ( __trace_if_var( !!(cond , ## __VA_ARGS__) ) ) | ~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ include/linux/compiler.h:57:61: note: expanded from macro '__trace_if_var' 57 | #define __trace_if_var(cond) (__builtin_constant_p(cond) ? (cond) : __trace_if_value(cond)) | ^~~~ >> kernel/dma/direct.c:147:20: warning: shift count >= width of type [-Wshift-count-overflow] 146 | if (IS_ENABLED(CONFIG_ZONE_DMA32) && | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 147 | phys_limit < DMA_BIT_MASK(64) && | ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~ 148 | !(gfp & (GFP_DMA32 | GFP_DMA))) { | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ include/linux/dma-mapping.h:77:54: note: expanded from macro 'DMA_BIT_MASK' 77 | #define DMA_BIT_MASK(n) (((n) == 64) ? ~0ULL : ((1ULL<<(n))-1)) | ^ include/linux/compiler.h:55:47: note: expanded from macro 'if' 55 | #define if(cond, ...) if ( __trace_if_var( !!(cond , ## __VA_ARGS__) ) ) | ~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ include/linux/compiler.h:57:86: note: expanded from macro '__trace_if_var' 57 | #define __trace_if_var(cond) (__builtin_constant_p(cond) ? (cond) : __trace_if_value(cond)) | ~~~~~~~~~~~~~~~~~^~~~~ include/linux/compiler.h:68:3: note: expanded from macro '__trace_if_value' 68 | (cond) ? \ | ^~~~ 38 warnings and 3 errors generated. -- In file included from drivers/iio/adc/fsl-imx25-gcq.c:12: 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:14: In file included from arch/hexagon/include/asm/io.h:328: include/asm-generic/io.h:548:31: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] 548 | 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] 561 | 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' 37 | #define __le16_to_cpu(x) ((__force __u16)(__le16)(x)) | ^ In file included from drivers/iio/adc/fsl-imx25-gcq.c:12: 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:14: In file included from arch/hexagon/include/asm/io.h:328: include/asm-generic/io.h:574:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] 574 | 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' 35 | #define __le32_to_cpu(x) ((__force __u32)(__le32)(x)) | ^ In file included from drivers/iio/adc/fsl-imx25-gcq.c:12: 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:14: In file included from arch/hexagon/include/asm/io.h:328: include/asm-generic/io.h:585:33: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] 585 | __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] 595 | __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] 605 | __raw_writel((u32 __force)cpu_to_le32(value), PCI_IOBASE + addr); | ~~~~~~~~~~ ^ In file included from drivers/iio/adc/fsl-imx25-gcq.c: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:21: include/linux/mm.h:877:2: error: call to undeclared function 'vma_lock_init'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 877 | vma_lock_init(&vma->vm_lock); | ^ include/linux/mm.h:877:2: note: did you mean 'osq_lock_init'? include/linux/osq_lock.h:23:20: note: 'osq_lock_init' declared here 23 | static inline void osq_lock_init(struct optimistic_spin_queue *lock) | ^ In file included from drivers/iio/adc/fsl-imx25-gcq.c: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:21: include/linux/mm.h:877:22: error: no member named 'vm_lock' in 'struct vm_area_struct' 877 | vma_lock_init(&vma->vm_lock); | ~~~ ^ include/linux/mm.h:878:7: error: no member named 'vm_lock_seq' in 'struct vm_area_struct' 878 | vma->vm_lock_seq = UINT_MAX; | ~~~ ^ In file included from drivers/iio/adc/fsl-imx25-gcq.c: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:21: In file included from include/linux/mm.h:2234: include/linux/vmstat.h:518:36: warning: arithmetic between different enumeration types ('enum node_stat_item' and 'enum lru_list') [-Wenum-enum-conversion] 518 | return node_stat_name(NR_LRU_BASE + lru) + 3; // skip "nr_" | ~~~~~~~~~~~ ^ ~~~ >> drivers/iio/adc/fsl-imx25-gcq.c:116:8: warning: shift count is negative [-Wshift-count-negative] 116 | MX25_ADCQ_ITEM(0, chan->channel)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ include/linux/mfd/imx25-tsadc.h:54:3: note: expanded from macro 'MX25_ADCQ_ITEM' 54 | _MX25_ADCQ_ITEM((item) - 8, (x)) : _MX25_ADCQ_ITEM((item), (x))) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ include/linux/mfd/imx25-tsadc.h:52:39: note: expanded from macro '_MX25_ADCQ_ITEM' 52 | #define _MX25_ADCQ_ITEM(item, x) ((x) << ((item) * 4)) | ^ ~~~~~~~~~~~~ 8 warnings and 3 errors generated. vim +147 kernel/dma/direct.c aea7e2a86a94b25 kernel/dma/direct.c Christoph Hellwig 2021-10-21 117 26749b3201ab05e kernel/dma/direct.c Christoph Hellwig 2020-06-15 118 static struct page *__dma_direct_alloc_pages(struct device *dev, size_t size, 92826e967535db2 kernel/dma/direct.c Christoph Hellwig 2022-04-23 119 gfp_t gfp, bool allow_highmem) a8463d4b0e47d1f lib/dma-noop.c Christian Borntraeger 2016-02-02 120 { 90ae409f9eb3bca kernel/dma/direct.c Christoph Hellwig 2019-08-20 121 int node = dev_to_node(dev); 080321d3b3139b3 lib/dma-direct.c Christoph Hellwig 2017-12-22 122 struct page *page = NULL; a7ba70f1787f977 kernel/dma/direct.c Nicolas Saenz Julienne 2019-11-21 123 u64 phys_limit; a8463d4b0e47d1f lib/dma-noop.c Christian Borntraeger 2016-02-02 124 633d5fce78a61e8 kernel/dma/direct.c David Rientjes 2020-06-11 125 WARN_ON_ONCE(!PAGE_ALIGNED(size)); 633d5fce78a61e8 kernel/dma/direct.c David Rientjes 2020-06-11 126 aea7e2a86a94b25 kernel/dma/direct.c Christoph Hellwig 2021-10-21 127 if (is_swiotlb_for_alloc(dev)) aea7e2a86a94b25 kernel/dma/direct.c Christoph Hellwig 2021-10-21 128 return dma_direct_alloc_swiotlb(dev, size); aea7e2a86a94b25 kernel/dma/direct.c Christoph Hellwig 2021-10-21 129 25a4ce564921db0 kernel/dma/direct.c Petr Tesarik 2023-02-20 130 gfp |= dma_direct_optimal_gfp_mask(dev, &phys_limit); 633d5fce78a61e8 kernel/dma/direct.c David Rientjes 2020-06-11 131 page = dma_alloc_contiguous(dev, size, gfp); 92826e967535db2 kernel/dma/direct.c Christoph Hellwig 2022-04-23 132 if (page) { 92826e967535db2 kernel/dma/direct.c Christoph Hellwig 2022-04-23 133 if (!dma_coherent_ok(dev, page_to_phys(page), size) || 92826e967535db2 kernel/dma/direct.c Christoph Hellwig 2022-04-23 134 (!allow_highmem && PageHighMem(page))) { 633d5fce78a61e8 kernel/dma/direct.c David Rientjes 2020-06-11 135 dma_free_contiguous(dev, page, size); 90ae409f9eb3bca kernel/dma/direct.c Christoph Hellwig 2019-08-20 136 page = NULL; 90ae409f9eb3bca kernel/dma/direct.c Christoph Hellwig 2019-08-20 137 } 92826e967535db2 kernel/dma/direct.c Christoph Hellwig 2022-04-23 138 } 95f183916d4b0bc lib/dma-direct.c Christoph Hellwig 2018-01-09 139 again: 90ae409f9eb3bca kernel/dma/direct.c Christoph Hellwig 2019-08-20 140 if (!page) 633d5fce78a61e8 kernel/dma/direct.c David Rientjes 2020-06-11 141 page = alloc_pages_node(node, gfp, get_order(size)); 95f183916d4b0bc lib/dma-direct.c Christoph Hellwig 2018-01-09 142 if (page && !dma_coherent_ok(dev, page_to_phys(page), size)) { f689a3ab7b8ece9 kernel/dma/direct.c Chen Yu 2024-08-31 143 __free_pages(page, get_order(size)); 95f183916d4b0bc lib/dma-direct.c Christoph Hellwig 2018-01-09 144 page = NULL; 95f183916d4b0bc lib/dma-direct.c Christoph Hellwig 2018-01-09 145 de7eab301de7886 lib/dma-direct.c Takashi Iwai 2018-04-16 146 if (IS_ENABLED(CONFIG_ZONE_DMA32) && a7ba70f1787f977 kernel/dma/direct.c Nicolas Saenz Julienne 2019-11-21 @147 phys_limit < DMA_BIT_MASK(64) && de7eab301de7886 lib/dma-direct.c Takashi Iwai 2018-04-16 148 !(gfp & (GFP_DMA32 | GFP_DMA))) { de7eab301de7886 lib/dma-direct.c Takashi Iwai 2018-04-16 149 gfp |= GFP_DMA32; de7eab301de7886 lib/dma-direct.c Takashi Iwai 2018-04-16 150 goto again; de7eab301de7886 lib/dma-direct.c Takashi Iwai 2018-04-16 151 } de7eab301de7886 lib/dma-direct.c Takashi Iwai 2018-04-16 152 fbce251baa6e357 kernel/dma/direct.c Christoph Hellwig 2019-02-13 153 if (IS_ENABLED(CONFIG_ZONE_DMA) && !(gfp & GFP_DMA)) { 95f183916d4b0bc lib/dma-direct.c Christoph Hellwig 2018-01-09 154 gfp = (gfp & ~GFP_DMA32) | GFP_DMA; 95f183916d4b0bc lib/dma-direct.c Christoph Hellwig 2018-01-09 155 goto again; 95f183916d4b0bc lib/dma-direct.c Christoph Hellwig 2018-01-09 156 } 95f183916d4b0bc lib/dma-direct.c Christoph Hellwig 2018-01-09 157 } 95f183916d4b0bc lib/dma-direct.c Christoph Hellwig 2018-01-09 158 b18814e767a4455 kernel/dma/direct.c Christoph Hellwig 2018-11-04 159 return page; b18814e767a4455 kernel/dma/direct.c Christoph Hellwig 2018-11-04 160 } b18814e767a4455 kernel/dma/direct.c Christoph Hellwig 2018-11-04 161 -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki