* [jarkko-tpmdd:tpm2_key-2 6/7] drivers/char/tpm/tpm2_key.c:50:3: warning: label followed by a declaration is a C23 extension
@ 2024-05-19 15:40 kernel test robot
0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2024-05-19 15:40 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: x86_64-rhel-8.3-rust (https://download.01.org/0day-ci/archive/20240519/202405192308.79SMmvx5-lkp@intel.com/config)
compiler: clang version 18.1.5 (https://github.com/llvm/llvm-project 617a15a9eac96088ae5e9134248d8236e34b91b1)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20240519/202405192308.79SMmvx5-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/202405192308.79SMmvx5-lkp@intel.com/
All warnings (new ones prefixed by >>):
>> drivers/char/tpm/tpm2_key.c:50:3: warning: label followed by a declaration is a C23 extension [-Wc23-extensions]
50 | char buffer[50];
| ^
1 warning 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:41 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:40 [jarkko-tpmdd:tpm2_key-2 6/7] drivers/char/tpm/tpm2_key.c:50:3: warning: label followed by a declaration is a C23 extension 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