public inbox for llvm@lists.linux.dev
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: Dmitry Ilvokhin <d@ilvokhin.com>
Cc: llvm@lists.linux.dev, oe-kbuild-all@lists.linux.dev
Subject: Re: [RFC PATCH v3 4/4] locking: Add contended_release tracepoint to spinning locks
Date: Mon, 23 Mar 2026 00:01:03 +0800	[thread overview]
Message-ID: <202603222343.hjWp2FNy-lkp@intel.com> (raw)
In-Reply-To: <51aad0415b78c5a39f2029722118fa01eac77538.1773858853.git.d@ilvokhin.com>

Hi Dmitry,

[This is a private test report for your RFC patch.]
kernel test robot noticed the following build warnings:

[auto build test WARNING on tip/locking/core]
[also build test WARNING on trace/for-next arnd-asm-generic/master linus/master v7.0-rc4 next-20260320]
[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/Dmitry-Ilvokhin/tracing-lock-Remove-unnecessary-linux-sched-h-include/20260320-145758
base:   tip/locking/core
patch link:    https://lore.kernel.org/r/51aad0415b78c5a39f2029722118fa01eac77538.1773858853.git.d%40ilvokhin.com
patch subject: [RFC PATCH v3 4/4] locking: Add contended_release tracepoint to spinning locks
config: x86_64-rhel-9.4-rust (https://download.01.org/0day-ci/archive/20260322/202603222343.hjWp2FNy-lkp@intel.com/config)
compiler: clang version 20.1.8 (https://github.com/llvm/llvm-project 87f0227cb60147a26a1eeb4fb06e3b505e9c7261)
rustc: rustc 1.88.0 (6b00bc388 2025-06-23)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260322/202603222343.hjWp2FNy-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 <lkp@intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202603222343.hjWp2FNy-lkp@intel.com/

All warnings (new ones prefixed by >>):

   kernel/locking/qspinlock.c:111:2: error: call to undeclared function '__queued_spin_unlock'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
     111 |         __queued_spin_unlock(lock);
         |         ^
>> kernel/locking/qspinlock.c:107:17: warning: no previous prototype for function 'queued_spin_unlock_traced' [-Wmissing-prototypes]
     107 | void __lockfunc queued_spin_unlock_traced(struct qspinlock *lock)
         |                 ^
   kernel/locking/qspinlock.c:107:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
     107 | void __lockfunc queued_spin_unlock_traced(struct qspinlock *lock)
         | ^
         | static 
   In file included from kernel/locking/qspinlock.c:408:
   In file included from kernel/locking/qspinlock_paravirt.h:7:
   In file included from include/linux/memblock.h:12:
   In file included from include/linux/mm.h:37:
   In file included from include/linux/rcuwait.h:6:
   In file included from include/linux/sched/signal.h:6:
   include/linux/signal.h:98:11: warning: array index 3 is past the end of the array (that has type 'unsigned long[1]') [-Warray-bounds]
      98 |                 return (set->sig[3] | set->sig[2] |
         |                         ^        ~
   arch/x86/include/asm/signal.h:24:2: note: array 'sig' declared here
      24 |         unsigned long sig[_NSIG_WORDS];
         |         ^
   In file included from kernel/locking/qspinlock.c:408:
   In file included from kernel/locking/qspinlock_paravirt.h:7:
   In file included from include/linux/memblock.h:12:
   In file included from include/linux/mm.h:37:
   In file included from include/linux/rcuwait.h:6:
   In file included from include/linux/sched/signal.h:6:
   include/linux/signal.h:98:25: warning: array index 2 is past the end of the array (that has type 'unsigned long[1]') [-Warray-bounds]
      98 |                 return (set->sig[3] | set->sig[2] |
         |                                       ^        ~
   arch/x86/include/asm/signal.h:24:2: note: array 'sig' declared here
      24 |         unsigned long sig[_NSIG_WORDS];
         |         ^
   In file included from kernel/locking/qspinlock.c:408:
   In file included from kernel/locking/qspinlock_paravirt.h:7:
   In file included from include/linux/memblock.h:12:
   In file included from include/linux/mm.h:37:
   In file included from include/linux/rcuwait.h:6:
   In file included from include/linux/sched/signal.h:6:
   include/linux/signal.h:99:4: warning: array index 1 is past the end of the array (that has type 'unsigned long[1]') [-Warray-bounds]
      99 |                         set->sig[1] | set->sig[0]) == 0;
         |                         ^        ~
   arch/x86/include/asm/signal.h:24:2: note: array 'sig' declared here
      24 |         unsigned long sig[_NSIG_WORDS];
         |         ^
   In file included from kernel/locking/qspinlock.c:408:
   In file included from kernel/locking/qspinlock_paravirt.h:7:
   In file included from include/linux/memblock.h:12:
   In file included from include/linux/mm.h:37:
   In file included from include/linux/rcuwait.h:6:
   In file included from include/linux/sched/signal.h:6:
   include/linux/signal.h:101:11: warning: array index 1 is past the end of the array (that has type 'unsigned long[1]') [-Warray-bounds]
     101 |                 return (set->sig[1] | set->sig[0]) == 0;
         |                         ^        ~
   arch/x86/include/asm/signal.h:24:2: note: array 'sig' declared here
      24 |         unsigned long sig[_NSIG_WORDS];
         |         ^
   In file included from kernel/locking/qspinlock.c:408:
   In file included from kernel/locking/qspinlock_paravirt.h:7:
   In file included from include/linux/memblock.h:12:
   In file included from include/linux/mm.h:37:
   In file included from include/linux/rcuwait.h:6:
   In file included from include/linux/sched/signal.h:6:
   include/linux/signal.h:114:11: warning: array index 3 is past the end of the array (that has type 'const unsigned long[1]') [-Warray-bounds]
     114 |                 return  (set1->sig[3] == set2->sig[3]) &&
         |                          ^         ~
   arch/x86/include/asm/signal.h:24:2: note: array 'sig' declared here
      24 |         unsigned long sig[_NSIG_WORDS];
         |         ^
   In file included from kernel/locking/qspinlock.c:408:
   In file included from kernel/locking/qspinlock_paravirt.h:7:
   In file included from include/linux/memblock.h:12:
   In file included from include/linux/mm.h:37:
   In file included from include/linux/rcuwait.h:6:
   In file included from include/linux/sched/signal.h:6:
   include/linux/signal.h:114:27: warning: array index 3 is past the end of the array (that has type 'const unsigned long[1]') [-Warray-bounds]
     114 |                 return  (set1->sig[3] == set2->sig[3]) &&
         |                                          ^         ~
   arch/x86/include/asm/signal.h:24:2: note: array 'sig' declared here
      24 |         unsigned long sig[_NSIG_WORDS];
         |         ^
   In file included from kernel/locking/qspinlock.c:408:
   In file included from kernel/locking/qspinlock_paravirt.h:7:
   In file included from include/linux/memblock.h:12:
   In file included from include/linux/mm.h:37:
   In file included from include/linux/rcuwait.h:6:
   In file included from include/linux/sched/signal.h:6:
   include/linux/signal.h:115:5: warning: array index 2 is past the end of the array (that has type 'const unsigned long[1]') [-Warray-bounds]
     115 |                         (set1->sig[2] == set2->sig[2]) &&
         |                          ^         ~
   arch/x86/include/asm/signal.h:24:2: note: array 'sig' declared here
      24 |         unsigned long sig[_NSIG_WORDS];
         |         ^
   In file included from kernel/locking/qspinlock.c:408:
   In file included from kernel/locking/qspinlock_paravirt.h:7:
   In file included from include/linux/memblock.h:12:
   In file included from include/linux/mm.h:37:
   In file included from include/linux/rcuwait.h:6:
   In file included from include/linux/sched/signal.h:6:
   include/linux/signal.h:115:21: warning: array index 2 is past the end of the array (that has type 'const unsigned long[1]') [-Warray-bounds]
     115 |                         (set1->sig[2] == set2->sig[2]) &&
         |                                          ^         ~
   arch/x86/include/asm/signal.h:24:2: note: array 'sig' declared here


vim +/queued_spin_unlock_traced +107 kernel/locking/qspinlock.c

   106	
 > 107	void __lockfunc queued_spin_unlock_traced(struct qspinlock *lock)
   108	{
   109		if (queued_spin_is_contended(lock))
   110			trace_contended_release(lock);
   111		__queued_spin_unlock(lock);
   112	}
   113	EXPORT_SYMBOL(queued_spin_unlock_traced);
   114	

-- 
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki

           reply	other threads:[~2026-03-22 16:01 UTC|newest]

Thread overview: expand[flat|nested]  mbox.gz  Atom feed
 [parent not found: <51aad0415b78c5a39f2029722118fa01eac77538.1773858853.git.d@ilvokhin.com>]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=202603222343.hjWp2FNy-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=d@ilvokhin.com \
    --cc=llvm@lists.linux.dev \
    --cc=oe-kbuild-all@lists.linux.dev \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox