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:tpm2_key-2 6/7] drivers/char/tpm/tpm2_key.c:50:3: error: expected expression
Date: Sun, 19 May 2024 23:51:29 +0800 [thread overview]
Message-ID: <202405192342.I54wU5nk-lkp@intel.com> (raw)
tree: git://git.kernel.org/pub/scm/linux/kernel/git/jarkko/linux-tpmdd.git tpm2_key-2
head: fd3739a598738d788459238040fdb80b4213239a
commit: 59fab73fe3f5c4b13ebee9ea98a64fbaf523a5fc [6/7] tpm: tpm2_key: Extend parser to TPM_LoadableKey
config: arm-defconfig (https://download.01.org/0day-ci/archive/20240519/202405192342.I54wU5nk-lkp@intel.com/config)
compiler: clang version 14.0.6 (https://github.com/llvm/llvm-project f28c006a5895fc0e329fe15fead81e37457cb1d1)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20240519/202405192342.I54wU5nk-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/202405192342.I54wU5nk-lkp@intel.com/
All errors (new ones prefixed by >>):
>> drivers/char/tpm/tpm2_key.c:50:3: error: expected expression
char buffer[50];
^
>> drivers/char/tpm/tpm2_key.c:51:42: error: use of undeclared identifier 'buffer'
sprint_oid(value, vlen, buffer, sizeof(buffer));
^
drivers/char/tpm/tpm2_key.c:51:27: error: use of undeclared identifier 'buffer'
sprint_oid(value, vlen, buffer, sizeof(buffer));
^
drivers/char/tpm/tpm2_key.c:52:36: error: use of undeclared identifier 'buffer'
pr_debug("Unknown OID \"%s\"\n", buffer);
^
4 errors generated.
vim +50 drivers/char/tpm/tpm2_key.c
8c36e89d6c31b4 Jarkko Sakkinen 2024-05-19 34
8c36e89d6c31b4 Jarkko Sakkinen 2024-05-19 35 int tpm2_key_type(void *context, size_t hdrlen,
8c36e89d6c31b4 Jarkko Sakkinen 2024-05-19 36 unsigned char tag,
8c36e89d6c31b4 Jarkko Sakkinen 2024-05-19 37 const void *value, size_t vlen)
8c36e89d6c31b4 Jarkko Sakkinen 2024-05-19 38 {
8c36e89d6c31b4 Jarkko Sakkinen 2024-05-19 39 enum OID oid = look_up_OID(value, vlen);
59fab73fe3f5c4 Jarkko Sakkinen 2024-05-19 40 struct tpm2_key *key = context;
59fab73fe3f5c4 Jarkko Sakkinen 2024-05-19 41
59fab73fe3f5c4 Jarkko Sakkinen 2024-05-19 42 switch (oid) {
59fab73fe3f5c4 Jarkko Sakkinen 2024-05-19 43 case OID_TPMSealedData:
59fab73fe3f5c4 Jarkko Sakkinen 2024-05-19 44 pr_info("TPMSealedData\n");
59fab73fe3f5c4 Jarkko Sakkinen 2024-05-19 45 break;
59fab73fe3f5c4 Jarkko Sakkinen 2024-05-19 46 case OID_TPMLoadableKey:
59fab73fe3f5c4 Jarkko Sakkinen 2024-05-19 47 pr_info("TPMSealedData\n");
59fab73fe3f5c4 Jarkko Sakkinen 2024-05-19 48 break;
59fab73fe3f5c4 Jarkko Sakkinen 2024-05-19 49 default:
8c36e89d6c31b4 Jarkko Sakkinen 2024-05-19 @50 char buffer[50];
8c36e89d6c31b4 Jarkko Sakkinen 2024-05-19 @51 sprint_oid(value, vlen, buffer, sizeof(buffer));
59fab73fe3f5c4 Jarkko Sakkinen 2024-05-19 52 pr_debug("Unknown OID \"%s\"\n", buffer);
8c36e89d6c31b4 Jarkko Sakkinen 2024-05-19 53 return -EINVAL;
8c36e89d6c31b4 Jarkko Sakkinen 2024-05-19 54 }
8c36e89d6c31b4 Jarkko Sakkinen 2024-05-19 55
59fab73fe3f5c4 Jarkko Sakkinen 2024-05-19 56 key->oid = oid;
8c36e89d6c31b4 Jarkko Sakkinen 2024-05-19 57 return 0;
8c36e89d6c31b4 Jarkko Sakkinen 2024-05-19 58 }
8c36e89d6c31b4 Jarkko Sakkinen 2024-05-19 59
:::::: The code at line 50 was first introduced by commit
:::::: 8c36e89d6c31b433e1f3e06541eed1f687eaac81 KEYS: trusted: Migrate tpm2_key_{encode,decode}() to TPM driver
:::::: TO: Jarkko Sakkinen <jarkko@kernel.org>
:::::: CC: Jarkko Sakkinen <jarkko@kernel.org>
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
reply other threads:[~2024-05-19 15:51 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=202405192342.I54wU5nk-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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox