All of lore.kernel.org
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: oe-kbuild@lists.linux.dev
Cc: lkp@intel.com, Dan Carpenter <error27@gmail.com>
Subject: [linux-next:master 6617/16276] include/linux/spinlock.h:626 class_spinlock_irqsave_try_constructor() warn: passing zero to 'ERR_PTR'
Date: Tue, 13 Oct 2026 21:35:26 +0200	[thread overview]
Message-ID: <202610132133.2qxXMlYV-lkp@intel.com> (raw)

Unfiltered warning: this smatch report is sent as-is and has not been
reviewed for false positives, so please treat it with due skepticism.

BCC: lkp@intel.com
CC: oe-kbuild-all@lists.linux.dev
TO: Dmitry Torokhov <dmitry.torokhov@gmail.com>

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master
head:   4eb2586bd40db27d77cc5b724ca9386ed0c71d53
commit: 21f6c39938a10abfc98961000b04b55fa0e70d89 [6617/16276] Input: gscps2 - serialize concurrent interrupt handlers
:::::: branch date: 25 hours ago
:::::: commit date: 3 weeks ago
config: parisc-randconfig-r2202-20261012 (https://download.01.org/0day-ci/archive/20261013/202610132133.2qxXMlYV-lkp@intel.com/config)
compiler: hppa-linux-gcc (GCC) 10.5.0
smatch: v0.5.0-9187-g5189e3fb

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>
| Reported-by: Dan Carpenter <error27@gmail.com>
| Closes: https://lore.kernel.org/r/202610132133.2qxXMlYV-lkp@intel.com/

smatch warnings:
include/linux/spinlock.h:626 class_spinlock_irqsave_try_constructor() warn: passing zero to 'ERR_PTR'

vim +/ERR_PTR +626 include/linux/spinlock.h

54da6a0924311c Peter Zijlstra 2023-05-26  625  
e4ab322fbaaaf8 Peter Zijlstra 2023-09-17 @626  DEFINE_LOCK_GUARD_1_COND(spinlock_irqsave, _try,
e4ab322fbaaaf8 Peter Zijlstra 2023-09-17  627  			 spin_trylock_irqsave(_T->lock, _T->flags))
f16a802d402d73 Marco Elver    2025-12-19  628  DECLARE_LOCK_GUARD_1_ATTRS(spinlock_irqsave_try, __acquires(_T), __releases(*(spinlock_t **)_T))
f16a802d402d73 Marco Elver    2025-12-19  629  #define class_spinlock_irqsave_try_constructor(_T) WITH_LOCK_GUARD_1_ATTRS(spinlock_irqsave_try, _T)
e4ab322fbaaaf8 Peter Zijlstra 2023-09-17  630  

:::::: The code at line 626 was first introduced by commit
:::::: e4ab322fbaaaf84b23d6cb0e3317a7f68baf36dc cleanup: Add conditional guard support

:::::: TO: Peter Zijlstra <peterz@infradead.org>
:::::: CC: Peter Zijlstra <peterz@infradead.org>

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

                 reply	other threads:[~2026-10-13 19:35 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=202610132133.2qxXMlYV-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=error27@gmail.com \
    --cc=oe-kbuild@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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.