* [sashal-stable:pending-5.10 24/236] drivers/char/tpm/tpm_tis_core.c:722:6: warning: variable 'ret' set but not used
@ 2023-05-06 1:08 kernel test robot
0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2023-05-06 1:08 UTC (permalink / raw)
To: Sasha Levin; +Cc: oe-kbuild-all
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
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2023-05-06 1:08 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-05-06 1:08 [sashal-stable:pending-5.10 24/236] drivers/char/tpm/tpm_tis_core.c:722:6: warning: variable 'ret' set 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.