From: kernel test robot <lkp@intel.com>
To: Li Jun <lijun01@kylinos.cn>
Cc: oe-kbuild-all@lists.linux.dev, Mark Brown <broonie@kernel.org>
Subject: [broonie-ci:spi-7.3 78/79] drivers/spi/spi-loongson-core.c:252:12: warning: 'loongson_spi_resume' defined but not used
Date: Thu, 20 Aug 2026 15:07:15 +0800 [thread overview]
Message-ID: <202608201500.sPIW7fK0-lkp@intel.com> (raw)
tree: https://git.kernel.org/pub/scm/linux/kernel/git/broonie/ci.git spi-7.3
head: 273f66b33a1760c1a87ab083d0d745161d1fd8eb
commit: b4b52cc0bc1c941f9cdf8f746f45575eba5aad1f [78/79] spi: loongson: pm: add .freeze .poweroff .thaw .restore
config: alpha-allmodconfig (https://download.01.org/0day-ci/archive/20260820/202608201500.sPIW7fK0-lkp@intel.com/config)
compiler: alpha-linux-gcc (GCC) 16.1.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260820/202608201500.sPIW7fK0-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/202608201500.sPIW7fK0-lkp@intel.com/
All warnings (new ones prefixed by >>):
>> drivers/spi/spi-loongson-core.c:252:12: warning: 'loongson_spi_resume' defined but not used [-Wunused-function]
252 | static int loongson_spi_resume(struct device *dev)
| ^~~~~~~~~~~~~~~~~~~
>> drivers/spi/spi-loongson-core.c:232:12: warning: 'loongson_spi_suspend' defined but not used [-Wunused-function]
232 | static int loongson_spi_suspend(struct device *dev)
| ^~~~~~~~~~~~~~~~~~~~
vim +/loongson_spi_resume +252 drivers/spi/spi-loongson-core.c
6c7a864007b66e Yinbo Zhu 2023-06-13 231
8de18aced458db Jisheng Zhang 2026-08-03 @232 static int loongson_spi_suspend(struct device *dev)
6c7a864007b66e Yinbo Zhu 2023-06-13 233 {
6c7a864007b66e Yinbo Zhu 2023-06-13 234 struct loongson_spi *loongson_spi;
6c7a864007b66e Yinbo Zhu 2023-06-13 235 struct spi_controller *controller;
6c7a864007b66e Yinbo Zhu 2023-06-13 236
6c7a864007b66e Yinbo Zhu 2023-06-13 237 controller = dev_get_drvdata(dev);
6c7a864007b66e Yinbo Zhu 2023-06-13 238 spi_controller_suspend(controller);
6c7a864007b66e Yinbo Zhu 2023-06-13 239
6c7a864007b66e Yinbo Zhu 2023-06-13 240 loongson_spi = spi_controller_get_devdata(controller);
6c7a864007b66e Yinbo Zhu 2023-06-13 241
6c7a864007b66e Yinbo Zhu 2023-06-13 242 loongson_spi->spcr = loongson_spi_read_reg(loongson_spi, LOONGSON_SPI_SPCR_REG);
6c7a864007b66e Yinbo Zhu 2023-06-13 243 loongson_spi->sper = loongson_spi_read_reg(loongson_spi, LOONGSON_SPI_SPER_REG);
6c7a864007b66e Yinbo Zhu 2023-06-13 244 loongson_spi->spsr = loongson_spi_read_reg(loongson_spi, LOONGSON_SPI_SPSR_REG);
6c7a864007b66e Yinbo Zhu 2023-06-13 245 loongson_spi->para = loongson_spi_read_reg(loongson_spi, LOONGSON_SPI_PARA_REG);
6c7a864007b66e Yinbo Zhu 2023-06-13 246 loongson_spi->sfcs = loongson_spi_read_reg(loongson_spi, LOONGSON_SPI_SFCS_REG);
6c7a864007b66e Yinbo Zhu 2023-06-13 247 loongson_spi->timi = loongson_spi_read_reg(loongson_spi, LOONGSON_SPI_TIMI_REG);
6c7a864007b66e Yinbo Zhu 2023-06-13 248
6c7a864007b66e Yinbo Zhu 2023-06-13 249 return 0;
6c7a864007b66e Yinbo Zhu 2023-06-13 250 }
6c7a864007b66e Yinbo Zhu 2023-06-13 251
8de18aced458db Jisheng Zhang 2026-08-03 @252 static int loongson_spi_resume(struct device *dev)
6c7a864007b66e Yinbo Zhu 2023-06-13 253 {
6c7a864007b66e Yinbo Zhu 2023-06-13 254 struct loongson_spi *loongson_spi;
6c7a864007b66e Yinbo Zhu 2023-06-13 255 struct spi_controller *controller;
6c7a864007b66e Yinbo Zhu 2023-06-13 256
6c7a864007b66e Yinbo Zhu 2023-06-13 257 controller = dev_get_drvdata(dev);
6c7a864007b66e Yinbo Zhu 2023-06-13 258 loongson_spi = spi_controller_get_devdata(controller);
6c7a864007b66e Yinbo Zhu 2023-06-13 259
6c7a864007b66e Yinbo Zhu 2023-06-13 260 loongson_spi_write_reg(loongson_spi, LOONGSON_SPI_SPCR_REG, loongson_spi->spcr);
6c7a864007b66e Yinbo Zhu 2023-06-13 261 loongson_spi_write_reg(loongson_spi, LOONGSON_SPI_SPER_REG, loongson_spi->sper);
6c7a864007b66e Yinbo Zhu 2023-06-13 262 loongson_spi_write_reg(loongson_spi, LOONGSON_SPI_SPSR_REG, loongson_spi->spsr);
6c7a864007b66e Yinbo Zhu 2023-06-13 263 loongson_spi_write_reg(loongson_spi, LOONGSON_SPI_PARA_REG, loongson_spi->para);
6c7a864007b66e Yinbo Zhu 2023-06-13 264 loongson_spi_write_reg(loongson_spi, LOONGSON_SPI_SFCS_REG, loongson_spi->sfcs);
6c7a864007b66e Yinbo Zhu 2023-06-13 265 loongson_spi_write_reg(loongson_spi, LOONGSON_SPI_TIMI_REG, loongson_spi->timi);
6c7a864007b66e Yinbo Zhu 2023-06-13 266
6c7a864007b66e Yinbo Zhu 2023-06-13 267 spi_controller_resume(controller);
6c7a864007b66e Yinbo Zhu 2023-06-13 268
6c7a864007b66e Yinbo Zhu 2023-06-13 269 return 0;
6c7a864007b66e Yinbo Zhu 2023-06-13 270 }
6c7a864007b66e Yinbo Zhu 2023-06-13 271
:::::: The code at line 252 was first introduced by commit
:::::: 8de18aced458db42f847d0da2ae08e654ba2f6c1 spi: loongson: use modern PM macros
:::::: TO: Jisheng Zhang <jszhang@kernel.org>
:::::: CC: Mark Brown <broonie@kernel.org>
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
reply other threads:[~2026-08-20 7:08 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=202608201500.sPIW7fK0-lkp@intel.com \
--to=lkp@intel.com \
--cc=broonie@kernel.org \
--cc=lijun01@kylinos.cn \
--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 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.