* drivers/soc/fsl/qbman/qman.c:2421:19-26: opportunity for str_plural(err_cnt) (fwd)
@ 2024-09-10 5:04 Julia Lawall
0 siblings, 0 replies; only message in thread
From: Julia Lawall @ 2024-09-10 5:04 UTC (permalink / raw)
To: Breno Leitao, Jakub Kicinski, Vladimir Oltean; +Cc: linux-kernel, oe-kbuild-all
---------- Forwarded message ----------
Date: Tue, 10 Sep 2024 11:39:04 +0800
From: kernel test robot <lkp@intel.com>
To: oe-kbuild@lists.linux.dev
Cc: lkp@intel.com, Julia Lawall <julia.lawall@inria.fr>
Subject: drivers/soc/fsl/qbman/qman.c:2421:19-26: opportunity for
str_plural(err_cnt)
BCC: lkp@intel.com
CC: oe-kbuild-all@lists.linux.dev
CC: linux-kernel@vger.kernel.org
TO: Breno Leitao <leitao@debian.org>
CC: Jakub Kicinski <kuba@kernel.org>
CC: Vladimir Oltean <vladimir.oltean@nxp.com>
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: bc83b4d1f08695e85e85d36f7b803da58010161d
commit: 782fe08e9861d00ce8aca370453dd9ceb9a23d50 soc: fsl: qbman: FSL_DPAA depends on COMPILE_TEST
date: 8 weeks ago
:::::: branch date: 11 hours ago
:::::: commit date: 8 weeks ago
config: sparc-randconfig-r062-20240910 (https://download.01.org/0day-ci/archive/20240910/202409101138.v3FBr5hk-lkp@intel.com/config)
compiler: sparc64-linux-gcc (GCC) 14.1.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/202409101138.v3FBr5hk-lkp@intel.com/
cocci warnings: (new ones prefixed by >>)
>> drivers/soc/fsl/qbman/qman.c:2421:19-26: opportunity for str_plural(err_cnt)
vim +2421 drivers/soc/fsl/qbman/qman.c
c535e923bb97a4 Claudiu Manoil 2016-09-22 2408
c535e923bb97a4 Claudiu Manoil 2016-09-22 2409 void qman_init_cgr_all(void)
c535e923bb97a4 Claudiu Manoil 2016-09-22 2410 {
c535e923bb97a4 Claudiu Manoil 2016-09-22 2411 struct qman_cgr cgr;
c535e923bb97a4 Claudiu Manoil 2016-09-22 2412 int err_cnt = 0;
c535e923bb97a4 Claudiu Manoil 2016-09-22 2413
c535e923bb97a4 Claudiu Manoil 2016-09-22 2414 for (cgr.cgrid = 0; cgr.cgrid < CGR_NUM; cgr.cgrid++) {
c535e923bb97a4 Claudiu Manoil 2016-09-22 2415 if (qm_modify_cgr(&cgr, QMAN_CGR_FLAG_USE_INIT, NULL))
c535e923bb97a4 Claudiu Manoil 2016-09-22 2416 err_cnt++;
c535e923bb97a4 Claudiu Manoil 2016-09-22 2417 }
c535e923bb97a4 Claudiu Manoil 2016-09-22 2418
c535e923bb97a4 Claudiu Manoil 2016-09-22 2419 if (err_cnt)
c535e923bb97a4 Claudiu Manoil 2016-09-22 2420 pr_err("Warning: %d error%s while initialising CGR h/w\n",
c535e923bb97a4 Claudiu Manoil 2016-09-22 @2421 err_cnt, (err_cnt > 1) ? "s" : "");
c535e923bb97a4 Claudiu Manoil 2016-09-22 2422 }
c535e923bb97a4 Claudiu Manoil 2016-09-22 2423
:::::: The code at line 2421 was first introduced by commit
:::::: c535e923bb97a4b361e89a6383693482057f8b0c soc/fsl: Introduce DPAA 1.x QMan device driver
:::::: TO: Claudiu Manoil <claudiu.manoil@nxp.com>
:::::: CC: Scott Wood <oss@buserror.net>
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2024-09-10 5:05 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-09-10 5:04 drivers/soc/fsl/qbman/qman.c:2421:19-26: opportunity for str_plural(err_cnt) (fwd) Julia Lawall
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®