* [jarkko-tpmdd:master 6/9] drivers/char/tpm/tpm_ibmvtpm.c:407:12: warning: 'tpm_ibmvtpm_suspend' defined but not used
@ 2026-09-23 16:25 kernel test robot
0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2026-09-23 16:25 UTC (permalink / raw)
To: Jarkko Sakkinen; +Cc: oe-kbuild-all
tree: https://git.kernel.org/pub/scm/linux/kernel/git/jarkko/linux-tpmdd.git master
head: ab411db3c3b1fd0c70a36fb32c96b2c60175210b
commit: 137fb82b9c1b8b281307a7163ef719af752ee0bc [6/9] char: tpm: Use SIMPLE_DEV_PM_OPS for ibmvtpm power management
config: powerpc64-randconfig-r2105-20260923 (https://download.01.org/0day-ci/archive/20260923/202609231819.JBymmKOF-lkp@intel.com/config)
compiler: powerpc64-linux-gcc (GCC) 15.2.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260923/202609231819.JBymmKOF-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/202609231819.JBymmKOF-lkp@intel.com/
All warnings (new ones prefixed by >>):
>> drivers/char/tpm/tpm_ibmvtpm.c:407:12: warning: 'tpm_ibmvtpm_suspend' defined but not used [-Wunused-function]
407 | static int tpm_ibmvtpm_suspend(struct device *dev)
| ^~~~~~~~~~~~~~~~~~~
vim +/tpm_ibmvtpm_suspend +407 drivers/char/tpm/tpm_ibmvtpm.c
132f7629474424 Ashley Lai 2012-08-22 400
132f7629474424 Ashley Lai 2012-08-22 401 /**
132f7629474424 Ashley Lai 2012-08-22 402 * tpm_ibmvtpm_suspend - Suspend
132f7629474424 Ashley Lai 2012-08-22 403 * @dev: device struct
132f7629474424 Ashley Lai 2012-08-22 404 *
93c12f293f8798 Winkler, Tomas 2016-11-23 405 * Return: Always 0.
132f7629474424 Ashley Lai 2012-08-22 406 */
132f7629474424 Ashley Lai 2012-08-22 @407 static int tpm_ibmvtpm_suspend(struct device *dev)
132f7629474424 Ashley Lai 2012-08-22 408 {
9e0d39d8a6a0a8 Christophe Ricard 2016-03-31 409 struct tpm_chip *chip = dev_get_drvdata(dev);
9e0d39d8a6a0a8 Christophe Ricard 2016-03-31 410 struct ibmvtpm_dev *ibmvtpm = dev_get_drvdata(&chip->dev);
132f7629474424 Ashley Lai 2012-08-22 411 int rc = 0;
132f7629474424 Ashley Lai 2012-08-22 412
fb154e0e0a9524 Michal Suchanek 2017-02-24 413 rc = ibmvtpm_send_crq(ibmvtpm->vdev,
fb154e0e0a9524 Michal Suchanek 2017-02-24 414 IBMVTPM_VALID_CMD, VTPM_PREPARE_TO_SUSPEND, 0, 0);
132f7629474424 Ashley Lai 2012-08-22 415 if (rc != H_SUCCESS)
132f7629474424 Ashley Lai 2012-08-22 416 dev_err(ibmvtpm->dev,
132f7629474424 Ashley Lai 2012-08-22 417 "tpm_ibmvtpm_suspend failed rc=%d\n", rc);
132f7629474424 Ashley Lai 2012-08-22 418
132f7629474424 Ashley Lai 2012-08-22 419 return rc;
132f7629474424 Ashley Lai 2012-08-22 420 }
132f7629474424 Ashley Lai 2012-08-22 421
:::::: The code at line 407 was first introduced by commit
:::::: 132f7629474424418a5cdd666796ad3cfa4dc0c5 drivers/char/tpm: Add new device driver to support IBM vTPM
:::::: TO: Ashley Lai <adlai@linux.vnet.ibm.com>
:::::: CC: Kent Yoder <key@linux.vnet.ibm.com>
--
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:[~2026-09-23 16:26 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-09-23 16:25 [jarkko-tpmdd:master 6/9] drivers/char/tpm/tpm_ibmvtpm.c:407:12: warning: 'tpm_ibmvtpm_suspend' defined but not used kernel test robot
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.