From: kernel test robot <lkp@intel.com>
To: Sasha Levin <sashal@kernel.org>
Cc: oe-kbuild-all@lists.linux.dev
Subject: [sashal-stable:pending-5.10 24/236] drivers/char/tpm/tpm_tis_core.c:722:6: warning: variable 'ret' set but not used
Date: Sat, 6 May 2023 09:08:28 +0800 [thread overview]
Message-ID: <202305060920.VZPElp57-lkp@intel.com> (raw)
tree: https://git.kernel.org/pub/scm/linux/kernel/git/sashal/linux-stable.git pending-5.10
head: a5a0f61c9bfcb47262ab9c603e977057330ea0f9
commit: 09e8337b145500a101e9f8a492a81c67dfef4bff [24/236] tpm, tpm_tis: Claim locality before writing interrupt registers
config: x86_64-randconfig-a011-20230501 (https://download.01.org/0day-ci/archive/20230506/202305060920.VZPElp57-lkp@intel.com/config)
compiler: clang version 14.0.6 (https://github.com/llvm/llvm-project f28c006a5895fc0e329fe15fead81e37457cb1d1)
reproduce (this is a W=1 build):
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# https://git.kernel.org/pub/scm/linux/kernel/git/sashal/linux-stable.git/commit/?id=09e8337b145500a101e9f8a492a81c67dfef4bff
git remote add sashal-stable https://git.kernel.org/pub/scm/linux/kernel/git/sashal/linux-stable.git
git fetch --no-tags sashal-stable pending-5.10
git checkout 09e8337b145500a101e9f8a492a81c67dfef4bff
# save the config file
mkdir build_dir && cp config build_dir/.config
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=x86_64 olddefconfig
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=x86_64 SHELL=/bin/bash drivers/char/tpm/
If you fix the issue, kindly add following tag where applicable
| Reported-by: kernel test robot <lkp@intel.com>
| Link: https://lore.kernel.org/oe-kbuild-all/202305060920.VZPElp57-lkp@intel.com/
All warnings (new ones prefixed by >>):
In file included from drivers/char/tpm/tpm_tis_core.c:27:
In file included from drivers/char/tpm/tpm.h:28:
include/linux/tpm_eventlog.h:167:6: warning: variable 'mapping_size' set but not used [-Wunused-but-set-variable]
int mapping_size;
^
>> drivers/char/tpm/tpm_tis_core.c:722:6: warning: variable 'ret' set but not used [-Wunused-but-set-variable]
int ret;
^
2 warnings generated.
vim +/ret +722 drivers/char/tpm/tpm_tis_core.c
41a5e1cf1fe151 Christophe Ricard 2016-05-19 716
58a522f89db8b7 Lino Sanfilippo 2022-11-24 717 static void tpm_tis_gen_interrupt(struct tpm_chip *chip)
eb5854e764b91a Jarkko Sakkinen 2016-06-12 718 {
eb5854e764b91a Jarkko Sakkinen 2016-06-12 719 const char *desc = "attempting to generate an interrupt";
eb5854e764b91a Jarkko Sakkinen 2016-06-12 720 u32 cap2;
eb5854e764b91a Jarkko Sakkinen 2016-06-12 721 cap_t cap;
bfa2e4ed1d399b Lukasz Majczak 2021-02-16 @722 int ret;
eb5854e764b91a Jarkko Sakkinen 2016-06-12 723
923866165610d8 Jarkko Sakkinen 2021-05-10 724 if (chip->flags & TPM_CHIP_FLAG_TPM2)
923866165610d8 Jarkko Sakkinen 2021-05-10 725 ret = tpm2_get_tpm_pt(chip, 0x100, &cap2, desc);
923866165610d8 Jarkko Sakkinen 2021-05-10 726 else
bfa2e4ed1d399b Lukasz Majczak 2021-02-16 727 ret = tpm1_getcap(chip, TPM_CAP_PROP_TIS_TIMEOUT, &cap, desc, 0);
eb5854e764b91a Jarkko Sakkinen 2016-06-12 728 }
eb5854e764b91a Jarkko Sakkinen 2016-06-12 729
:::::: The code at line 722 was first introduced by commit
:::::: bfa2e4ed1d399b2dde49307c127b2d1c48dcd72f tpm, tpm_tis: Decorate tpm_tis_gen_interrupt() with request_locality()
:::::: TO: Lukasz Majczak <lma@semihalf.com>
:::::: CC: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests
reply other threads:[~2023-05-06 1: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=202305060920.VZPElp57-lkp@intel.com \
--to=lkp@intel.com \
--cc=oe-kbuild-all@lists.linux.dev \
--cc=sashal@kernel.org \
/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.