From: kernel test robot <lkp@intel.com>
To: Jarkko Sakkinen <jarkko@kernel.org>
Cc: llvm@lists.linux.dev, oe-kbuild-all@lists.linux.dev
Subject: [jarkko-tpmdd:tpm1-s3-bug 32/32] drivers/char/tpm/tpm_tis_core.c:1238:2: error: use of undeclared identifier 'rc'
Date: Wed, 26 Apr 2023 20:55:51 +0800 [thread overview]
Message-ID: <202304262019.01pU4v2D-lkp@intel.com> (raw)
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
reply other threads:[~2023-04-26 12:56 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=202304262019.01pU4v2D-lkp@intel.com \
--to=lkp@intel.com \
--cc=jarkko@kernel.org \
--cc=llvm@lists.linux.dev \
--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.