From: kernel test robot <lkp@intel.com>
To: Samuel Holland <samuel.holland@sifive.com>
Cc: oe-kbuild-all@lists.linux.dev, Conor Dooley <conor.dooley@microchip.com>
Subject: [conor:riscv-soc-fixes 1/1] drivers/cache/sifive_ccache.c:293:23: warning: variable 'quirks' set but not used
Date: Sun, 31 Mar 2024 12:17:58 +0800 [thread overview]
Message-ID: <202403311253.Z4NvIBxI-lkp@intel.com> (raw)
tree: https://git.kernel.org/pub/scm/linux/kernel/git/conor/linux.git riscv-soc-fixes
head: c90847bcbfb65d0f1c48fcc73a2b3a2d4ceac6a1
commit: c90847bcbfb65d0f1c48fcc73a2b3a2d4ceac6a1 [1/1] cache: sifive_ccache: Partially convert to a platform driver
config: riscv-randconfig-001-20240331 (https://download.01.org/0day-ci/archive/20240331/202403311253.Z4NvIBxI-lkp@intel.com/config)
compiler: riscv64-linux-gcc (GCC) 13.2.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20240331/202403311253.Z4NvIBxI-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/202403311253.Z4NvIBxI-lkp@intel.com/
All warnings (new ones prefixed by >>):
drivers/cache/sifive_ccache.c: In function 'sifive_ccache_init':
>> drivers/cache/sifive_ccache.c:293:23: warning: variable 'quirks' set but not used [-Wunused-but-set-variable]
293 | unsigned long quirks;
| ^~~~~~
vim +/quirks +293 drivers/cache/sifive_ccache.c
c90847bcbfb65d drivers/cache/sifive_ccache.c Samuel Holland 2024-03-26 287
ca120a79cf5a33 drivers/soc/sifive/sifive_ccache.c Greentime Hu 2022-09-13 288 static int __init sifive_ccache_init(void)
ca120a79cf5a33 drivers/soc/sifive/sifive_ccache.c Greentime Hu 2022-09-13 289 {
ca120a79cf5a33 drivers/soc/sifive/sifive_ccache.c Greentime Hu 2022-09-13 290 struct device_node *np;
ca120a79cf5a33 drivers/soc/sifive/sifive_ccache.c Greentime Hu 2022-09-13 291 struct resource res;
0d5701dc9cd653 drivers/cache/sifive_ccache.c Emil Renner Berthing 2023-10-31 292 const struct of_device_id *match;
0d5701dc9cd653 drivers/cache/sifive_ccache.c Emil Renner Berthing 2023-10-31 @293 unsigned long quirks;
c90847bcbfb65d drivers/cache/sifive_ccache.c Samuel Holland 2024-03-26 294 int rc;
ca120a79cf5a33 drivers/soc/sifive/sifive_ccache.c Greentime Hu 2022-09-13 295
0d5701dc9cd653 drivers/cache/sifive_ccache.c Emil Renner Berthing 2023-10-31 296 np = of_find_matching_node_and_match(NULL, sifive_ccache_ids, &match);
ca120a79cf5a33 drivers/soc/sifive/sifive_ccache.c Greentime Hu 2022-09-13 297 if (!np)
ca120a79cf5a33 drivers/soc/sifive/sifive_ccache.c Greentime Hu 2022-09-13 298 return -ENODEV;
ca120a79cf5a33 drivers/soc/sifive/sifive_ccache.c Greentime Hu 2022-09-13 299
0d5701dc9cd653 drivers/cache/sifive_ccache.c Emil Renner Berthing 2023-10-31 300 quirks = (uintptr_t)match->data;
0d5701dc9cd653 drivers/cache/sifive_ccache.c Emil Renner Berthing 2023-10-31 301
8fbf94fea0b4e1 drivers/soc/sifive/sifive_ccache.c Yang Yingliang 2022-10-18 302 if (of_address_to_resource(np, 0, &res)) {
8fbf94fea0b4e1 drivers/soc/sifive/sifive_ccache.c Yang Yingliang 2022-10-18 303 rc = -ENODEV;
8fbf94fea0b4e1 drivers/soc/sifive/sifive_ccache.c Yang Yingliang 2022-10-18 304 goto err_node_put;
8fbf94fea0b4e1 drivers/soc/sifive/sifive_ccache.c Yang Yingliang 2022-10-18 305 }
ca120a79cf5a33 drivers/soc/sifive/sifive_ccache.c Greentime Hu 2022-09-13 306
ca120a79cf5a33 drivers/soc/sifive/sifive_ccache.c Greentime Hu 2022-09-13 307 ccache_base = ioremap(res.start, resource_size(&res));
8fbf94fea0b4e1 drivers/soc/sifive/sifive_ccache.c Yang Yingliang 2022-10-18 308 if (!ccache_base) {
8fbf94fea0b4e1 drivers/soc/sifive/sifive_ccache.c Yang Yingliang 2022-10-18 309 rc = -ENOMEM;
8fbf94fea0b4e1 drivers/soc/sifive/sifive_ccache.c Yang Yingliang 2022-10-18 310 goto err_node_put;
8fbf94fea0b4e1 drivers/soc/sifive/sifive_ccache.c Yang Yingliang 2022-10-18 311 }
ca120a79cf5a33 drivers/soc/sifive/sifive_ccache.c Greentime Hu 2022-09-13 312
73e770f085023d drivers/soc/sifive/sifive_ccache.c Yang Yingliang 2022-10-18 313 if (of_property_read_u32(np, "cache-level", &level)) {
73e770f085023d drivers/soc/sifive/sifive_ccache.c Yang Yingliang 2022-10-18 314 rc = -ENOENT;
73e770f085023d drivers/soc/sifive/sifive_ccache.c Yang Yingliang 2022-10-18 315 goto err_unmap;
73e770f085023d drivers/soc/sifive/sifive_ccache.c Yang Yingliang 2022-10-18 316 }
95f196f3212bbc drivers/soc/sifive/sifive_ccache.c Zong Li 2022-09-13 317
:::::: The code at line 293 was first introduced by commit
:::::: 0d5701dc9cd653ae757cc06e39b3a39272863395 soc: sifive: ccache: Add StarFive JH7100 support
:::::: TO: Emil Renner Berthing <kernel@esmil.dk>
:::::: CC: Conor Dooley <conor.dooley@microchip.com>
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
reply other threads:[~2024-03-31 4: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=202403311253.Z4NvIBxI-lkp@intel.com \
--to=lkp@intel.com \
--cc=conor.dooley@microchip.com \
--cc=oe-kbuild-all@lists.linux.dev \
--cc=samuel.holland@sifive.com \
/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.