From: kernel test robot <lkp@intel.com>
To: Otavio Salvador <otavio@ossystems.com.br>
Cc: oe-kbuild-all@lists.linux.dev
Subject: [freescale-fslc:pr/638 3816/12469] drivers/spi/spi-nxp-fspi.c:1295:12: warning: 'nxp_fspi_resume' defined but not used
Date: Sat, 26 Aug 2023 21:07:13 +0800 [thread overview]
Message-ID: <202308262118.4yy7jAlm-lkp@intel.com> (raw)
tree: https://github.com/Freescale/linux-fslc pr/638
head: 3f1f2ea7295505de340ba4089817ae1021920928
commit: e0b338dc8b0a33b70718899aa798738d157d0259 [3816/12469] spi: spi-nxp-fspi: enable runtime pm for fspi
config: i386-randconfig-r034-20230718 (https://download.01.org/0day-ci/archive/20230826/202308262118.4yy7jAlm-lkp@intel.com/config)
compiler: gcc-12 (Debian 12.2.0-14) 12.2.0
reproduce: (https://download.01.org/0day-ci/archive/20230826/202308262118.4yy7jAlm-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/202308262118.4yy7jAlm-lkp@intel.com/
All warnings (new ones prefixed by >>):
>> drivers/spi/spi-nxp-fspi.c:1295:12: warning: 'nxp_fspi_resume' defined but not used [-Wunused-function]
1295 | static int nxp_fspi_resume(struct device *dev)
| ^~~~~~~~~~~~~~~
>> drivers/spi/spi-nxp-fspi.c:1282:12: warning: 'nxp_fspi_suspend' defined but not used [-Wunused-function]
1282 | static int nxp_fspi_suspend(struct device *dev)
| ^~~~~~~~~~~~~~~~
vim +/nxp_fspi_resume +1295 drivers/spi/spi-nxp-fspi.c
1281
> 1282 static int nxp_fspi_suspend(struct device *dev)
1283 {
1284 int ret;
1285
1286 ret = pinctrl_pm_select_sleep_state(dev);
1287 if (ret) {
1288 dev_err(dev, "select flexspi sleep pinctrl failed!\n");
1289 return ret;
1290 }
1291
1292 return pm_runtime_force_suspend(dev);
1293 }
1294
> 1295 static int nxp_fspi_resume(struct device *dev)
1296 {
1297 int ret;
1298
1299 ret = pm_runtime_force_resume(dev);
1300 if (ret)
1301 return ret;
1302
1303 ret = pinctrl_pm_select_default_state(dev);
1304 if (ret)
1305 dev_err(dev, "select flexspi default pinctrl failed!\n");
1306
1307 return ret;
1308 }
1309
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
reply other threads:[~2023-08-26 13:07 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=202308262118.4yy7jAlm-lkp@intel.com \
--to=lkp@intel.com \
--cc=oe-kbuild-all@lists.linux.dev \
--cc=otavio@ossystems.com.br \
/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.