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 D074AC5AD49 for ; Fri, 6 Jun 2025 21:10:38 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id F15646B007B; Fri, 6 Jun 2025 17:10:37 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id EC66D6B0088; Fri, 6 Jun 2025 17:10:37 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id DDBE86B0089; Fri, 6 Jun 2025 17:10:37 -0400 (EDT) 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 C13286B007B for ; Fri, 6 Jun 2025 17:10:37 -0400 (EDT) Received: from smtpin10.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay03.hostedemail.com (Postfix) with ESMTP id 3E7DFB8487 for ; Fri, 6 Jun 2025 21:10:37 +0000 (UTC) X-FDA: 83526219714.10.5726B8A Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.13]) by imf27.hostedemail.com (Postfix) with ESMTP id 6B9E440006 for ; Fri, 6 Jun 2025 21:10:34 +0000 (UTC) Authentication-Results: imf27.hostedemail.com; dkim=pass header.d=intel.com header.s=Intel header.b=gd6BHK72; dmarc=pass (policy=none) header.from=intel.com; spf=pass (imf27.hostedemail.com: domain of lkp@intel.com designates 192.198.163.13 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=1749244235; 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=XPpBkxFv9XkhDPFlA76FwjCjFjBKog6STMtENYp9gcI=; b=c+WyeKTCVW1TSoI6qLtQxr63B8Gk9G8Sh5UA5WKDWaDLgY6ZgHGAwy7TJ85j1dFiYTxkCl DGs+1qOnJti6zhSaZEnYTRfpJ6lTchO1vNdaMf4UXn+ZkbH8VVtxWE5F8MRYwHfR5NrFct hbaDIhZYgzAA71zEDxxzAj6GdY6zWQU= ARC-Authentication-Results: i=1; imf27.hostedemail.com; dkim=pass header.d=intel.com header.s=Intel header.b=gd6BHK72; dmarc=pass (policy=none) header.from=intel.com; spf=pass (imf27.hostedemail.com: domain of lkp@intel.com designates 192.198.163.13 as permitted sender) smtp.mailfrom=lkp@intel.com ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1749244235; a=rsa-sha256; cv=none; b=Qy5xWprIrhKO3NrqPsMlPUVSqXxyC6Zuw2Apkmw66N8a+JWGbXlRjCsECf+os6lm9ehqkc BqFnXHKkQWbBctpgxi4GzvJNoczqOlUBXVsB/YxYhHxnRLcQSlt3bsdWttOiwWio7HFwSO 0VSElvqNFB5bC4NzWxMpGWMCxUrV/78= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1749244235; x=1780780235; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=y2vtspK8CJxI3MpPLgfdlVOZRYupmnSMVie6NjOCH5A=; b=gd6BHK72odBOyOAOfxKB1zqIqoUZguesf30b5mH+Wf4y0NxKTHanjD5L rpExBvI9pK6vpaOG6imvscW/bIVse9d8zntntPxPqSq/K/nr+ei+LZbg0 /kSwyAZXvZcnxFjGPUzXML2YcRNGiRJs+L2gBXnIfXzG9MZd+gQy7OAqQ dQqvwMJK6m1Av7rF5YvOB+ODlr1xbV8wlf2f8/osBrckR/x/tGi3f7l+7 X5s2zpxStGo54fPMlV1rGo7W9+RWC+WRtbxARcZv/88/w5Nal2snhUS2K FF/mJ1YXIze63UqaNSRTTOuU/5IYsypzMi0VIEJ4B68cZ+W/RIqAoM+yE Q==; X-CSE-ConnectionGUID: Q7haoGeZQE6DPf6d3m77hw== X-CSE-MsgGUID: PfVrQVOpS5S1dMyfQAO+Tg== X-IronPort-AV: E=McAfee;i="6800,10657,11456"; a="54033925" X-IronPort-AV: E=Sophos;i="6.16,216,1744095600"; d="scan'208";a="54033925" Received: from fmviesa007.fm.intel.com ([10.60.135.147]) by fmvoesa107.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 06 Jun 2025 14:10:33 -0700 X-CSE-ConnectionGUID: RutrD3OaR2ye8qmGShGcXQ== X-CSE-MsgGUID: nBgAzcy7TrSK6DM00i/rwQ== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.16,216,1744095600"; d="scan'208";a="145854439" Received: from lkp-server01.sh.intel.com (HELO e8142ee1dce2) ([10.239.97.150]) by fmviesa007.fm.intel.com with ESMTP; 06 Jun 2025 14:10:27 -0700 Received: from kbuild by e8142ee1dce2 with local (Exim 4.96) (envelope-from ) id 1uNeKX-0005HB-23; Fri, 06 Jun 2025 21:10:25 +0000 Date: Sat, 7 Jun 2025 05:09:53 +0800 From: kernel test robot To: Pavel Tikhomirov , Peter Zijlstra , Ingo Molnar , Will Deacon , Boqun Feng , Waiman Long , Kees Cook , Joel Granados , Andrew Morton Cc: llvm@lists.linux.dev, oe-kbuild-all@lists.linux.dev, Linux Memory Management List , Konstantin Khorenko , Denis Lunev , Aleksandr Mikhalitsyn , Pavel Tikhomirov , linux-kernel@vger.kernel.org, linux-fsdevel@vger.kernel.org, kernel@openvz.org Subject: Re: [PATCH] locking: detect spin_lock_irq() call with disabled interrupts Message-ID: <202506070405.MCweX7O0-lkp@intel.com> References: <20250606095741.46775-1-ptikhomirov@virtuozzo.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20250606095741.46775-1-ptikhomirov@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EeTvD62y0yOOMkzrYi0fuqPeAJMX9dM0 yAXrIiuc vt23mfBkbUnFxSg2q68438OXUNc7GGPUwD8DWEF8qc25MJJaP57fhSiLpVyd/ALATsg6bl8WKK5DSJLS3jSc6OvqwOnnUWbFum5afI4mNKfo5wETb513h5p4EP5dKjeICLdSmZjJNaCz/oKi5wfy4huX/MRUIEc2NgtU5C6+Q+IjPPdgXF0aix2iQqd1aaTKETb9hHgtLMXdmM1YAwYues/0Xjdcz7hf1mFXYFr6IWgIZwPGJ/mIXU4G9Ay3Xa8Wu20MnueXkKqmSEFcxu53qnFzMjTCL8ZpdLg8AjcmZuiKsLUjd0DY/itns0SnuKBMK+CKhIMjCYu/vc7PC8huPLc2CYGgZl4OXIBxVdO41mdxN3MKbQDJaG+U5zkCyj+MqCYHR3QSEzZuG2JjN/rGWAMCTyHKNwCRX/QQxEa27GOy23Wya6lcgmo7yJcIxkyDkasinRAuUJH0EzJsahe7r7Ou/W8MlQSr8sjvOM9jScH4SlJSzxhXdWFp0qLLZ2r/YHPQc0UmzR9GmmKJ6SJ0aOgT1+g== 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 Pavel, kernel test robot noticed the following build warnings: [auto build test WARNING on tip/locking/core] [also build test WARNING on sysctl/sysctl-next akpm-mm/mm-nonmm-unstable tip/master linus/master v6.15 next-20250606] [cannot apply to mcgrof/sysctl-next tip/auto-latest] [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/Pavel-Tikhomirov/locking-detect-spin_lock_irq-call-with-disabled-interrupts/20250606-175911 base: tip/locking/core patch link: https://lore.kernel.org/r/20250606095741.46775-1-ptikhomirov%40virtuozzo.com patch subject: [PATCH] locking: detect spin_lock_irq() call with disabled interrupts config: arm-randconfig-003-20250606 (https://download.01.org/0day-ci/archive/20250607/202506070405.MCweX7O0-lkp@intel.com/config) compiler: clang version 21.0.0git (https://github.com/llvm/llvm-project f819f46284f2a79790038e1f6649172789734ae8) reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20250607/202506070405.MCweX7O0-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/202506070405.MCweX7O0-lkp@intel.com/ All warnings (new ones prefixed by >>): In file included from arch/arm/plat-orion/irq.c:13: In file included from include/linux/irq.h:14: include/linux/spinlock.h:375:1: error: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] 375 | DECLARE_STATIC_KEY_MAYBE(CONFIG_DEBUG_SPINLOCK_IRQ_WITH_DISABLED_INTERRUPTS_BY_DEFAULT, | ^ | int include/linux/spinlock.h:375:26: error: a parameter list without types is only allowed in a function definition 375 | DECLARE_STATIC_KEY_MAYBE(CONFIG_DEBUG_SPINLOCK_IRQ_WITH_DISABLED_INTERRUPTS_BY_DEFAULT, | ^ include/linux/spinlock.h:382:6: error: call to undeclared function 'static_branch_unlikely'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 382 | if (static_branch_unlikely(&debug_spin_lock_irq_with_disabled_interrupts)) { | ^ include/linux/spinlock.h:382:30: error: use of undeclared identifier 'debug_spin_lock_irq_with_disabled_interrupts' 382 | if (static_branch_unlikely(&debug_spin_lock_irq_with_disabled_interrupts)) { | ^ include/linux/spinlock.h:384:4: error: call to undeclared function 'static_branch_disable'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 384 | static_branch_disable(&debug_spin_lock_irq_with_disabled_interrupts); | ^ include/linux/spinlock.h:384:27: error: use of undeclared identifier 'debug_spin_lock_irq_with_disabled_interrupts' 384 | static_branch_disable(&debug_spin_lock_irq_with_disabled_interrupts); | ^ include/linux/spinlock.h:415:6: error: call to undeclared function 'static_branch_unlikely'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 415 | if (static_branch_unlikely(&debug_spin_lock_irq_with_disabled_interrupts)) { | ^ include/linux/spinlock.h:415:30: error: use of undeclared identifier 'debug_spin_lock_irq_with_disabled_interrupts' 415 | if (static_branch_unlikely(&debug_spin_lock_irq_with_disabled_interrupts)) { | ^ include/linux/spinlock.h:417:4: error: call to undeclared function 'static_branch_disable'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 417 | static_branch_disable(&debug_spin_lock_irq_with_disabled_interrupts); | ^ include/linux/spinlock.h:417:27: error: use of undeclared identifier 'debug_spin_lock_irq_with_disabled_interrupts' 417 | static_branch_disable(&debug_spin_lock_irq_with_disabled_interrupts); | ^ >> arch/arm/plat-orion/irq.c:37:29: warning: shift count >= width of type [-Wshift-count-overflow] 37 | irq_setup_generic_chip(gc, IRQ_MSK(32), IRQ_GC_INIT_MASK_CACHE, | ^~~~~~~~~~~ include/linux/irq.h:1223:41: note: expanded from macro 'IRQ_MSK' 1223 | #define IRQ_MSK(n) (u32)((n) < 32 ? ((1 << (n)) - 1) : UINT_MAX) | ^ ~~~ 1 warning and 10 errors generated. vim +37 arch/arm/plat-orion/irq.c f28d7de6bd4d41 Sebastian Hesselbarth 2014-01-16 21 01eb569823792a Lennert Buytenhek 2008-03-27 22 void __init orion_irq_init(unsigned int irq_start, void __iomem *maskaddr) 01eb569823792a Lennert Buytenhek 2008-03-27 23 { e59347a1d15c0b Thomas Gleixner 2011-04-14 24 struct irq_chip_generic *gc; e59347a1d15c0b Thomas Gleixner 2011-04-14 25 struct irq_chip_type *ct; 01eb569823792a Lennert Buytenhek 2008-03-27 26 01eb569823792a Lennert Buytenhek 2008-03-27 27 /* 01eb569823792a Lennert Buytenhek 2008-03-27 28 * Mask all interrupts initially. 01eb569823792a Lennert Buytenhek 2008-03-27 29 */ 01eb569823792a Lennert Buytenhek 2008-03-27 30 writel(0, maskaddr); 01eb569823792a Lennert Buytenhek 2008-03-27 31 e59347a1d15c0b Thomas Gleixner 2011-04-14 32 gc = irq_alloc_generic_chip("orion_irq", 1, irq_start, maskaddr, f38c02f3b33865 Thomas Gleixner 2011-03-24 33 handle_level_irq); e59347a1d15c0b Thomas Gleixner 2011-04-14 34 ct = gc->chip_types; e59347a1d15c0b Thomas Gleixner 2011-04-14 35 ct->chip.irq_mask = irq_gc_mask_clr_bit; e59347a1d15c0b Thomas Gleixner 2011-04-14 36 ct->chip.irq_unmask = irq_gc_mask_set_bit; e59347a1d15c0b Thomas Gleixner 2011-04-14 @37 irq_setup_generic_chip(gc, IRQ_MSK(32), IRQ_GC_INIT_MASK_CACHE, -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki