All of lore.kernel.org
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: Jarkko Sakkinen <jarkko@kernel.org>
Cc: oe-kbuild-all@lists.linux.dev
Subject: [jarkko-tpmdd:master 6/9] drivers/char/tpm/tpm_ibmvtpm.c:407:12: warning: 'tpm_ibmvtpm_suspend' defined but not used
Date: Wed, 23 Sep 2026 18:25:48 +0200	[thread overview]
Message-ID: <202609231819.JBymmKOF-lkp@intel.com> (raw)

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

                 reply	other threads:[~2026-09-23 16:26 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=202609231819.JBymmKOF-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=jarkko@kernel.org \
    --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.