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, Julia Lawall <julia.lawall@inria.fr>
Subject: [arm-integrator:b4/genexis-xg6846b-bcmbca-xrdp-reset 5/6] drivers/bus/bcmbca_pmc3_pmb.c:100:2-8: preceding lock on line 86
Date: Wed, 14 Oct 2026 23:16:59 +0200	[thread overview]
Message-ID: <202610142340.SKtimKtj-lkp@intel.com> (raw)

BCC: lkp@intel.com
CC: oe-kbuild-all@lists.linux.dev
TO: Linus Walleij <linusw@kernel.org>

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/linusw/linux-integrator.git b4/genexis-xg6846b-bcmbca-xrdp-reset
head:   f576cbf2d1f356edfa8a9a7774037a6f28209ac2
commit: f7d8e26a2c3719e61f34785d5049f1f68f4413cb [5/6] bus: Add a shared BCMBCA PMC3 PMB transport
:::::: branch date: 12 hours ago
:::::: commit date: 12 hours ago
config: parisc-randconfig-r2111-20261014 (https://download.01.org/0day-ci/archive/20261014/202610142340.SKtimKtj-lkp@intel.com/config)
compiler: hppa-linux-gcc (GCC) 8.5.0

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: Julia Lawall <julia.lawall@inria.fr>
| Closes: https://lore.kernel.org/r/202610142340.SKtimKtj-lkp@intel.com/

cocci warnings: (new ones prefixed by >>)
>> drivers/bus/bcmbca_pmc3_pmb.c:100:2-8: preceding lock on line 86

vim +100 drivers/bus/bcmbca_pmc3_pmb.c

f7d8e26a2c3719e Linus Walleij 2026-10-13   80  
f7d8e26a2c3719e Linus Walleij 2026-10-13   81  int bcmbca_pmb_lock(struct bcmbca_pmb *pmb)
f7d8e26a2c3719e Linus Walleij 2026-10-13   82  {
f7d8e26a2c3719e Linus Walleij 2026-10-13   83  	u32 value;
f7d8e26a2c3719e Linus Walleij 2026-10-13   84  	int ret;
f7d8e26a2c3719e Linus Walleij 2026-10-13   85  
f7d8e26a2c3719e Linus Walleij 2026-10-13  @86  	mutex_lock(&pmb->lock);
f7d8e26a2c3719e Linus Walleij 2026-10-13   87  	if (pmb->stopping) {
f7d8e26a2c3719e Linus Walleij 2026-10-13   88  		ret = -ENODEV;
f7d8e26a2c3719e Linus Walleij 2026-10-13   89  		goto unlock;
f7d8e26a2c3719e Linus Walleij 2026-10-13   90  	}
f7d8e26a2c3719e Linus Walleij 2026-10-13   91  	if (pmb->recovering) {
f7d8e26a2c3719e Linus Walleij 2026-10-13   92  		ret = -EBUSY;
f7d8e26a2c3719e Linus Walleij 2026-10-13   93  		goto unlock;
f7d8e26a2c3719e Linus Walleij 2026-10-13   94  	}
f7d8e26a2c3719e Linus Walleij 2026-10-13   95  
f7d8e26a2c3719e Linus Walleij 2026-10-13   96  	/* Reading bit 0 acquires the hardware lock; writing 1 releases it. */
f7d8e26a2c3719e Linus Walleij 2026-10-13   97  	ret = readl_poll_timeout(pmb->base + PMB_MUTEX, value,
f7d8e26a2c3719e Linus Walleij 2026-10-13   98  				 value & PMB_LOCKED, 1, 1000);
f7d8e26a2c3719e Linus Walleij 2026-10-13   99  	if (!ret)
f7d8e26a2c3719e Linus Walleij 2026-10-13 @100  		return 0;
f7d8e26a2c3719e Linus Walleij 2026-10-13  101  unlock:
f7d8e26a2c3719e Linus Walleij 2026-10-13  102  	mutex_unlock(&pmb->lock);
f7d8e26a2c3719e Linus Walleij 2026-10-13  103  	return ret;
f7d8e26a2c3719e Linus Walleij 2026-10-13  104  }
f7d8e26a2c3719e Linus Walleij 2026-10-13  105  EXPORT_SYMBOL_GPL(bcmbca_pmb_lock);
f7d8e26a2c3719e Linus Walleij 2026-10-13  106  

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

                 reply	other threads:[~2026-10-14 21:18 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=202610142340.SKtimKtj-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=julia.lawall@inria.fr \
    --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.