From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.19]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 474012701B3; Tue, 1 Jul 2025 12:06:31 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=192.198.163.19 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1751371593; cv=none; b=iYpezlODOmauNyYRnw3hiOlA7ysno31L/CQ6SGg6FmNPDZLS7fp3Wuwg3Uw69M/MfQRNrrkMdlIT6BU2Ha4C6N7ztPdQILaiHrzEPVusMgaNBk1Y8u7x0vUVj5MVqU41xzaT8F3LT1WNnzDJHkK4Bp9sa8DuTPDDUZYB8mdATJ8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1751371593; c=relaxed/simple; bh=ZFLRqw5MOpvnRmBIZQmDPKCy9JWfoM1TPzQcS1l0THI=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=bxrya/ozfv0hVUd9J1hBXTJdEE/5C0XGrcWYx+EalBWFw9JcfOvVE6w6lUshyr/Y5E02iDaTl8Y+3Ahp2QanEibMpZbtVjnIPpYWeMP73bXm4XKrYJox+j7b1y27fvJKi73j49bAiK8OjFTAkOG9vp8uzuBn3JQC/P5rAwH18YI= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=intel.com; spf=pass smtp.mailfrom=intel.com; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b=fJfbH7VM; arc=none smtp.client-ip=192.198.163.19 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=intel.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=intel.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="fJfbH7VM" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1751371591; x=1782907591; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=ZFLRqw5MOpvnRmBIZQmDPKCy9JWfoM1TPzQcS1l0THI=; b=fJfbH7VM9FFOqbX6u2zmum0CoFFcId0SsOHyMIps296C6dXsLhKuEP7G +akrnQRVuJ1PkPBvvHURoMbSU0knmr+k+dl678mSvJhS9/IjG4uvddqWM YqbqZkjakI3ebPcOa5u+HpQYnt+R+jnUYjgcvH1Lj3/sHbK0xu8BmZhJX 7XxRXHjcf4yKFCZ+mq3ga9R1tF5BeJcitTI94EvJaviQ5U7v0Z7trbj5X JP1NlMlbp9aSY/WBrOuhCI876JvVQPYygWISQU6rF2XS+t7jLntlL1kBM CxKRmf9Px+8u4/qOyciGPe1Pp66cEmDaRVPqoSWgDDb2mKxylnVmNQhs8 w==; X-CSE-ConnectionGUID: 60ujOHiERJmF0h4/RoE0Ow== X-CSE-MsgGUID: kQDMvOV8SDqO3GFiQ/5LQA== X-IronPort-AV: E=McAfee;i="6800,10657,11481"; a="52748466" X-IronPort-AV: E=Sophos;i="6.16,279,1744095600"; d="scan'208";a="52748466" Received: from orviesa003.jf.intel.com ([10.64.159.143]) by fmvoesa113.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 01 Jul 2025 05:06:30 -0700 X-CSE-ConnectionGUID: N1Us77y6SGaqPAwODbc00Q== X-CSE-MsgGUID: Y0hA0wQ8RgeU/4PPPa1m+Q== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.16,279,1744095600"; d="scan'208";a="158139137" Received: from lkp-server01.sh.intel.com (HELO e8142ee1dce2) ([10.239.97.150]) by orviesa003.jf.intel.com with ESMTP; 01 Jul 2025 05:06:25 -0700 Received: from kbuild by e8142ee1dce2 with local (Exim 4.96) (envelope-from ) id 1uWZkk-000a7C-2K; Tue, 01 Jul 2025 12:06:22 +0000 Date: Tue, 1 Jul 2025 20:05:36 +0800 From: kernel test robot To: Wander Lairson Costa , Ingo Molnar , Peter Zijlstra , Juri Lelli , Vincent Guittot , Dietmar Eggemann , Steven Rostedt , Ben Segall , Mel Gorman , Valentin Schneider , Masami Hiramatsu , Mathieu Desnoyers , Thomas Gleixner , Boqun Feng , David Woodhouse , linux-kernel@vger.kernel.org, linux-trace-kernel@vger.kernel.org Cc: llvm@lists.linux.dev, oe-kbuild-all@lists.linux.dev, Arnaldo Carvalho de Melo , Clark Williams , Gabriele Monaco Subject: Re: [PATCH v2 1/2] trace/preemptirq: reduce overhead of irq_enable/disable tracepoints Message-ID: <202507011949.4wad2fIh-lkp@intel.com> References: <20250630195243.701516-2-wander@redhat.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20250630195243.701516-2-wander@redhat.com> Hi Wander, kernel test robot noticed the following build errors: [auto build test ERROR on trace/for-next] [also build test ERROR on tip/sched/core linus/master v6.16-rc4 next-20250701] [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/Wander-Lairson-Costa/trace-preemptirq-reduce-overhead-of-irq_enable-disable-tracepoints/20250701-035446 base: https://git.kernel.org/pub/scm/linux/kernel/git/trace/linux-trace for-next patch link: https://lore.kernel.org/r/20250630195243.701516-2-wander%40redhat.com patch subject: [PATCH v2 1/2] trace/preemptirq: reduce overhead of irq_enable/disable tracepoints config: arm-randconfig-004-20250701 (https://download.01.org/0day-ci/archive/20250701/202507011949.4wad2fIh-lkp@intel.com/config) compiler: clang version 21.0.0git (https://github.com/llvm/llvm-project e04c938cc08a90ae60440ce22d072ebc69d67ee8) reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20250701/202507011949.4wad2fIh-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/202507011949.4wad2fIh-lkp@intel.com/ All errors (new ones prefixed by >>): In file included from kernel/bounds.c:13: In file included from include/linux/log2.h:12: In file included from include/linux/bitops.h:68: In file included from arch/arm/include/asm/bitops.h:28: In file included from include/linux/irqflags.h:20: In file included from include/linux/tracepoint-defs.h:11: In file included from include/linux/atomic.h:7: In file included from arch/arm/include/asm/atomic.h:16: In file included from arch/arm/include/asm/cmpxchg.h:124: include/asm-generic/cmpxchg-local.h:26:2: error: call to undeclared function 'raw_local_irq_save'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 26 | raw_local_irq_save(flags); | ^ include/asm-generic/cmpxchg-local.h:26:2: note: did you mean 'arch_local_irq_save'? arch/arm/include/asm/irqflags.h:72:29: note: 'arch_local_irq_save' declared here 72 | static inline unsigned long arch_local_irq_save(void) | ^ arch/arm/include/asm/irqflags.h:71:29: note: expanded from macro 'arch_local_irq_save' 71 | #define arch_local_irq_save arch_local_irq_save | ^ In file included from kernel/bounds.c:13: In file included from include/linux/log2.h:12: In file included from include/linux/bitops.h:68: In file included from arch/arm/include/asm/bitops.h:28: In file included from include/linux/irqflags.h:20: In file included from include/linux/tracepoint-defs.h:11: In file included from include/linux/atomic.h:7: In file included from arch/arm/include/asm/atomic.h:16: In file included from arch/arm/include/asm/cmpxchg.h:124: include/asm-generic/cmpxchg-local.h:47:2: error: call to undeclared function 'raw_local_irq_restore'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 47 | raw_local_irq_restore(flags); | ^ include/asm-generic/cmpxchg-local.h:47:2: note: did you mean 'arch_local_irq_restore'? arch/arm/include/asm/irqflags.h:169:20: note: 'arch_local_irq_restore' declared here 169 | static inline void arch_local_irq_restore(unsigned long flags) | ^ arch/arm/include/asm/irqflags.h:168:32: note: expanded from macro 'arch_local_irq_restore' 168 | #define arch_local_irq_restore arch_local_irq_restore | ^ In file included from kernel/bounds.c:13: In file included from include/linux/log2.h:12: In file included from include/linux/bitops.h:68: In file included from arch/arm/include/asm/bitops.h:28: In file included from include/linux/irqflags.h:20: In file included from include/linux/tracepoint-defs.h:11: In file included from include/linux/atomic.h:7: In file included from arch/arm/include/asm/atomic.h:16: In file included from arch/arm/include/asm/cmpxchg.h:124: include/asm-generic/cmpxchg-local.h:60:2: error: call to undeclared function 'raw_local_irq_save'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 60 | raw_local_irq_save(flags); | ^ include/asm-generic/cmpxchg-local.h:64:2: error: call to undeclared function 'raw_local_irq_restore'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 64 | raw_local_irq_restore(flags); | ^ In file included from kernel/bounds.c:13: In file included from include/linux/log2.h:12: In file included from include/linux/bitops.h:68: In file included from arch/arm/include/asm/bitops.h:28: In file included from include/linux/irqflags.h:20: In file included from include/linux/tracepoint-defs.h:11: In file included from include/linux/atomic.h:7: In file included from arch/arm/include/asm/atomic.h:16: In file included from arch/arm/include/asm/cmpxchg.h:148: >> include/asm-generic/cmpxchg.h:33:3: error: call to undeclared function 'local_irq_save'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 33 | local_irq_save(flags); | ^ >> include/asm-generic/cmpxchg.h:36:3: error: call to undeclared function 'local_irq_restore'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 36 | local_irq_restore(flags); | ^ In file included from kernel/bounds.c:13: In file included from include/linux/log2.h:12: In file included from include/linux/bitops.h:68: In file included from arch/arm/include/asm/bitops.h:28: In file included from include/linux/irqflags.h:20: In file included from include/linux/tracepoint-defs.h:11: In file included from include/linux/atomic.h:7: >> arch/arm/include/asm/atomic.h:215:2: error: call to undeclared function 'raw_local_irq_save'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 215 | raw_local_irq_save(flags); | ^ >> arch/arm/include/asm/atomic.h:219:2: error: call to undeclared function 'raw_local_irq_restore'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 219 | raw_local_irq_restore(flags); | ^ arch/arm/include/asm/atomic.h:232:1: error: call to undeclared function 'raw_local_irq_save'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 232 | ATOMIC_OPS(add, +=, add) | ^ arch/arm/include/asm/atomic.h:228:2: note: expanded from macro 'ATOMIC_OPS' 228 | ATOMIC_OP(op, c_op, asm_op) \ | ^ arch/arm/include/asm/atomic.h:167:2: note: expanded from macro 'ATOMIC_OP' 167 | raw_local_irq_save(flags); \ | ^ arch/arm/include/asm/atomic.h:232:1: error: call to undeclared function 'raw_local_irq_restore'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] arch/arm/include/asm/atomic.h:228:2: note: expanded from macro 'ATOMIC_OPS' 228 | ATOMIC_OP(op, c_op, asm_op) \ | ^ arch/arm/include/asm/atomic.h:169:2: note: expanded from macro 'ATOMIC_OP' 169 | raw_local_irq_restore(flags); \ | ^ arch/arm/include/asm/atomic.h:232:1: error: call to undeclared function 'raw_local_irq_save'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] arch/arm/include/asm/atomic.h:229:2: note: expanded from macro 'ATOMIC_OPS' 229 | ATOMIC_OP_RETURN(op, c_op, asm_op) \ | ^ arch/arm/include/asm/atomic.h:178:2: note: expanded from macro 'ATOMIC_OP_RETURN' 178 | raw_local_irq_save(flags); \ | ^ arch/arm/include/asm/atomic.h:232:1: error: call to undeclared function 'raw_local_irq_restore'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] arch/arm/include/asm/atomic.h:229:2: note: expanded from macro 'ATOMIC_OPS' 229 | ATOMIC_OP_RETURN(op, c_op, asm_op) \ | ^ arch/arm/include/asm/atomic.h:181:2: note: expanded from macro 'ATOMIC_OP_RETURN' 181 | raw_local_irq_restore(flags); \ | ^ arch/arm/include/asm/atomic.h:232:1: error: call to undeclared function 'raw_local_irq_save'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] arch/arm/include/asm/atomic.h:230:2: note: expanded from macro 'ATOMIC_OPS' 230 | ATOMIC_FETCH_OP(op, c_op, asm_op) | ^ arch/arm/include/asm/atomic.h:192:2: note: expanded from macro 'ATOMIC_FETCH_OP' 192 | raw_local_irq_save(flags); \ | ^ arch/arm/include/asm/atomic.h:232:1: error: call to undeclared function 'raw_local_irq_restore'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] arch/arm/include/asm/atomic.h:230:2: note: expanded from macro 'ATOMIC_OPS' 230 | ATOMIC_FETCH_OP(op, c_op, asm_op) | ^ arch/arm/include/asm/atomic.h:195:2: note: expanded from macro 'ATOMIC_FETCH_OP' 195 | raw_local_irq_restore(flags); \ | ^ arch/arm/include/asm/atomic.h:233:1: error: call to undeclared function 'raw_local_irq_save'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 233 | ATOMIC_OPS(sub, -=, sub) | ^ arch/arm/include/asm/atomic.h:228:2: note: expanded from macro 'ATOMIC_OPS' 228 | ATOMIC_OP(op, c_op, asm_op) \ | ^ arch/arm/include/asm/atomic.h:167:2: note: expanded from macro 'ATOMIC_OP' 167 | raw_local_irq_save(flags); \ | ^ arch/arm/include/asm/atomic.h:233:1: error: call to undeclared function 'raw_local_irq_restore'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] arch/arm/include/asm/atomic.h:228:2: note: expanded from macro 'ATOMIC_OPS' 228 | ATOMIC_OP(op, c_op, asm_op) \ | ^ arch/arm/include/asm/atomic.h:169:2: note: expanded from macro 'ATOMIC_OP' 169 | raw_local_irq_restore(flags); \ | ^ arch/arm/include/asm/atomic.h:233:1: error: call to undeclared function 'raw_local_irq_save'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] arch/arm/include/asm/atomic.h:229:2: note: expanded from macro 'ATOMIC_OPS' 229 | ATOMIC_OP_RETURN(op, c_op, asm_op) \ | ^ arch/arm/include/asm/atomic.h:178:2: note: expanded from macro 'ATOMIC_OP_RETURN' 178 | raw_local_irq_save(flags); \ | ^ arch/arm/include/asm/atomic.h:233:1: error: call to undeclared function 'raw_local_irq_restore'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] arch/arm/include/asm/atomic.h:229:2: note: expanded from macro 'ATOMIC_OPS' 229 | ATOMIC_OP_RETURN(op, c_op, asm_op) \ | ^ arch/arm/include/asm/atomic.h:181:2: note: expanded from macro 'ATOMIC_OP_RETURN' 181 | raw_local_irq_restore(flags); \ | ^ arch/arm/include/asm/atomic.h:233:1: error: call to undeclared function 'raw_local_irq_save'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] arch/arm/include/asm/atomic.h:230:2: note: expanded from macro 'ATOMIC_OPS' 230 | ATOMIC_FETCH_OP(op, c_op, asm_op) | ^ arch/arm/include/asm/atomic.h:192:2: note: expanded from macro 'ATOMIC_FETCH_OP' 192 | raw_local_irq_save(flags); \ | ^ fatal error: too many errors emitted, stopping now [-ferror-limit=] 20 errors generated. make[3]: *** [scripts/Makefile.build:98: kernel/bounds.s] Error 1 shuffle=3679043308 make[3]: Target 'prepare' not remade because of errors. make[2]: *** [Makefile:1274: prepare0] Error 2 shuffle=3679043308 make[2]: Target 'prepare' not remade because of errors. make[1]: *** [Makefile:248: __sub-make] Error 2 shuffle=3679043308 make[1]: Target 'prepare' not remade because of errors. make: *** [Makefile:248: __sub-make] Error 2 shuffle=3679043308 make: Target 'prepare' not remade because of errors. vim +/local_irq_save +33 include/asm-generic/cmpxchg.h b4816afa398670 David Howells 2012-03-28 22 b4816afa398670 David Howells 2012-03-28 23 static inline 82b993e8249ae3 Mark Rutland 2021-05-25 24 unsigned long __generic_xchg(unsigned long x, volatile void *ptr, int size) b4816afa398670 David Howells 2012-03-28 25 { b4816afa398670 David Howells 2012-03-28 26 unsigned long ret, flags; b4816afa398670 David Howells 2012-03-28 27 b4816afa398670 David Howells 2012-03-28 28 switch (size) { b4816afa398670 David Howells 2012-03-28 29 case 1: b4816afa398670 David Howells 2012-03-28 30 #ifdef __xchg_u8 b4816afa398670 David Howells 2012-03-28 31 return __xchg_u8(x, ptr); b4816afa398670 David Howells 2012-03-28 32 #else b4816afa398670 David Howells 2012-03-28 @33 local_irq_save(flags); b4816afa398670 David Howells 2012-03-28 34 ret = *(volatile u8 *)ptr; 656e9007ef5862 Arnd Bergmann 2023-03-02 35 *(volatile u8 *)ptr = (x & 0xffu); b4816afa398670 David Howells 2012-03-28 @36 local_irq_restore(flags); b4816afa398670 David Howells 2012-03-28 37 return ret; b4816afa398670 David Howells 2012-03-28 38 #endif /* __xchg_u8 */ b4816afa398670 David Howells 2012-03-28 39 b4816afa398670 David Howells 2012-03-28 40 case 2: b4816afa398670 David Howells 2012-03-28 41 #ifdef __xchg_u16 b4816afa398670 David Howells 2012-03-28 42 return __xchg_u16(x, ptr); b4816afa398670 David Howells 2012-03-28 43 #else b4816afa398670 David Howells 2012-03-28 44 local_irq_save(flags); b4816afa398670 David Howells 2012-03-28 45 ret = *(volatile u16 *)ptr; 656e9007ef5862 Arnd Bergmann 2023-03-02 46 *(volatile u16 *)ptr = (x & 0xffffu); b4816afa398670 David Howells 2012-03-28 47 local_irq_restore(flags); b4816afa398670 David Howells 2012-03-28 48 return ret; b4816afa398670 David Howells 2012-03-28 49 #endif /* __xchg_u16 */ b4816afa398670 David Howells 2012-03-28 50 b4816afa398670 David Howells 2012-03-28 51 case 4: b4816afa398670 David Howells 2012-03-28 52 #ifdef __xchg_u32 b4816afa398670 David Howells 2012-03-28 53 return __xchg_u32(x, ptr); b4816afa398670 David Howells 2012-03-28 54 #else b4816afa398670 David Howells 2012-03-28 55 local_irq_save(flags); b4816afa398670 David Howells 2012-03-28 56 ret = *(volatile u32 *)ptr; 656e9007ef5862 Arnd Bergmann 2023-03-02 57 *(volatile u32 *)ptr = (x & 0xffffffffu); b4816afa398670 David Howells 2012-03-28 58 local_irq_restore(flags); b4816afa398670 David Howells 2012-03-28 59 return ret; b4816afa398670 David Howells 2012-03-28 60 #endif /* __xchg_u32 */ b4816afa398670 David Howells 2012-03-28 61 -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki