public inbox for llvm@lists.linux.dev
 help / color / mirror / Atom feed
* [jarkko-tpmdd:tpm2_key-2 6/7] drivers/char/tpm/tpm2_key.c:50:3: error: expected expression
@ 2024-05-19 15:51 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2024-05-19 15:51 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 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

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2024-05-19 15:51 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-05-19 15:51 [jarkko-tpmdd:tpm2_key-2 6/7] drivers/char/tpm/tpm2_key.c:50:3: error: expected expression kernel test robot

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox