* [jarkko-tpmdd:tpm1-s3-bug 32/32] drivers/char/tpm/tpm_tis_core.c:1238:2: error: use of undeclared identifier 'rc'
@ 2023-04-26 12:55 kernel test robot
0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2023-04-26 12:55 UTC (permalink / raw)
To: Jarkko Sakkinen; +Cc: llvm, oe-kbuild-all
tree: git://git.kernel.org/pub/scm/linux/kernel/git/jarkko/linux-tpmdd.git tpm1-s3-bug
head: f6075147019ca730925d4059a6256ab06fbd5d4c
commit: f6075147019ca730925d4059a6256ab06fbd5d4c [32/32] tpm, tpm_tis: Use tpm_chip_{start,stop}() in tpm_tis_resume()
config: i386-randconfig-a011 (https://download.01.org/0day-ci/archive/20230426/202304262019.01pU4v2D-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/jarkko/linux-tpmdd.git/commit/?id=f6075147019ca730925d4059a6256ab06fbd5d4c
git remote add jarkko-tpmdd git://git.kernel.org/pub/scm/linux/kernel/git/jarkko/linux-tpmdd.git
git fetch --no-tags jarkko-tpmdd tpm1-s3-bug
git checkout f6075147019ca730925d4059a6256ab06fbd5d4c
# 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=i386 olddefconfig
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=i386 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/202304262019.01pU4v2D-lkp@intel.com/
All errors (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:1238:2: error: use of undeclared identifier 'rc'
rc = tpm_chip_start(chip);
^
drivers/char/tpm/tpm_tis_core.c:1239:6: error: use of undeclared identifier 'rc'
if (rc)
^
drivers/char/tpm/tpm_tis_core.c:1239:6: error: use of undeclared identifier 'rc'
drivers/char/tpm/tpm_tis_core.c:1239:6: error: use of undeclared identifier 'rc'
1 warning and 4 errors generated.
vim +/rc +1238 drivers/char/tpm/tpm_tis_core.c
1232
1233 int tpm_tis_resume(struct device *dev)
1234 {
1235 struct tpm_chip *chip = dev_get_drvdata(dev);
1236 int ret;
1237
> 1238 rc = tpm_chip_start(chip);
1239 if (rc)
1240 return ret;
1241
1242 if (chip->flags & TPM_CHIP_FLAG_IRQ)
1243 tpm_tis_reenable_interrupts(chip);
1244
1245 ret = tpm_pm_resume(dev);
1246 if (ret)
1247 goto out;
1248
1249 /*
1250 * TPM 1.2 requires self-test on resume. This function actually returns
1251 * an error code but for unknown reason it isn't handled.
1252 */
1253 if (!(chip->flags & TPM_CHIP_FLAG_TPM2))
1254 tpm1_do_selftest(chip);
1255
1256 out:
1257 tpm_chip_stop(chip);
1258
1259 return ret;
1260 }
1261 EXPORT_SYMBOL_GPL(tpm_tis_resume);
1262 #endif
1263
--
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-04-26 12:56 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-04-26 12:55 [jarkko-tpmdd:tpm1-s3-bug 32/32] drivers/char/tpm/tpm_tis_core.c:1238:2: error: use of undeclared identifier 'rc' 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.