From: kernel test robot <lkp@intel.com>
To: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Cc: oe-kbuild-all@lists.linux.dev, Dave Jiang <dave.jiang@intel.com>,
Lukas Wunner <lukas@wunner.de>
Subject: [davejiang:cxl-ide 5/24] lib/spdm_requester.c:501: warning: Function parameter or member 'leaf_key' not described in 'spdm_state'
Date: Fri, 18 Aug 2023 15:16:05 +0800 [thread overview]
Message-ID: <202308181526.l7us0AP7-lkp@intel.com> (raw)
tree: https://github.com/davejiang/linux.git cxl-ide
head: c9d8239de44d5eec0e327a398ff46ffe078d3d4d
commit: 752393333819ccb7794d8021f03585203b6d6055 [5/24] PCI/CMA: Authenticate devices on enumeration
config: i386-allyesconfig (https://download.01.org/0day-ci/archive/20230818/202308181526.l7us0AP7-lkp@intel.com/config)
compiler: gcc-12 (Debian 12.2.0-14) 12.2.0
reproduce: (https://download.01.org/0day-ci/archive/20230818/202308181526.l7us0AP7-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/202308181526.l7us0AP7-lkp@intel.com/
All warnings (new ones prefixed by >>):
>> lib/spdm_requester.c:501: warning: Function parameter or member 'leaf_key' not described in 'spdm_state'
vim +501 lib/spdm_requester.c
12e29e750c4583 Jonathan Cameron 2022-09-06 436
12e29e750c4583 Jonathan Cameron 2022-09-06 437 /**
12e29e750c4583 Jonathan Cameron 2022-09-06 438 * struct spdm_state - SPDM session state
12e29e750c4583 Jonathan Cameron 2022-09-06 439 *
12e29e750c4583 Jonathan Cameron 2022-09-06 440 * @lock: Serializes multiple concurrent spdm_authenticate() calls.
12e29e750c4583 Jonathan Cameron 2022-09-06 441 * @dev: Transport device. Used for error reporting and passed to @transport.
12e29e750c4583 Jonathan Cameron 2022-09-06 442 * @transport: Transport function to perform one message exchange.
12e29e750c4583 Jonathan Cameron 2022-09-06 443 * @transport_priv: Transport private data.
12e29e750c4583 Jonathan Cameron 2022-09-06 444 * @transport_sz: Maximum message size the transport is capable of (in bytes).
12e29e750c4583 Jonathan Cameron 2022-09-06 445 * Used as DataTransferSize in GET_CAPABILITIES exchange.
12e29e750c4583 Jonathan Cameron 2022-09-06 446 * @version: Maximum common supported version of requester and responder.
12e29e750c4583 Jonathan Cameron 2022-09-06 447 * Negotiated during GET_VERSION exchange.
12e29e750c4583 Jonathan Cameron 2022-09-06 448 * @responder_caps: Cached capabilities of responder.
12e29e750c4583 Jonathan Cameron 2022-09-06 449 * Received during GET_CAPABILITIES exchange.
12e29e750c4583 Jonathan Cameron 2022-09-06 450 * @base_asym_alg: Asymmetric key algorithm for signature verification of
12e29e750c4583 Jonathan Cameron 2022-09-06 451 * CHALLENGE_AUTH messages.
12e29e750c4583 Jonathan Cameron 2022-09-06 452 * Selected by responder during NEGOTIATE_ALGORITHMS exchange.
12e29e750c4583 Jonathan Cameron 2022-09-06 453 * @base_hash_alg: Hash algorithm for signature verification of
12e29e750c4583 Jonathan Cameron 2022-09-06 454 * CHALLENGE_AUTH messages.
12e29e750c4583 Jonathan Cameron 2022-09-06 455 * Selected by responder during NEGOTIATE_ALGORITHMS exchange.
12e29e750c4583 Jonathan Cameron 2022-09-06 456 * @slot_mask: Bitmask of populated certificate slots in the responder.
12e29e750c4583 Jonathan Cameron 2022-09-06 457 * Received during GET_DIGESTS exchange.
12e29e750c4583 Jonathan Cameron 2022-09-06 458 * @base_asym_enc: Human-readable name of @base_asym_alg's signature encoding.
12e29e750c4583 Jonathan Cameron 2022-09-06 459 * Passed to crypto subsystem when calling verify_signature().
12e29e750c4583 Jonathan Cameron 2022-09-06 460 * @s: Signature length of @base_asym_alg (in bytes). S or SigLen in SPDM
12e29e750c4583 Jonathan Cameron 2022-09-06 461 * specification.
12e29e750c4583 Jonathan Cameron 2022-09-06 462 * @base_hash_alg_name: Human-readable name of @base_hash_alg.
12e29e750c4583 Jonathan Cameron 2022-09-06 463 * Passed to crypto subsystem when calling crypto_alloc_shash() and
12e29e750c4583 Jonathan Cameron 2022-09-06 464 * verify_signature().
12e29e750c4583 Jonathan Cameron 2022-09-06 465 * @shash: Synchronous hash handle for @base_hash_alg computation.
12e29e750c4583 Jonathan Cameron 2022-09-06 466 * @desc: Synchronous hash context for @base_hash_alg computation.
12e29e750c4583 Jonathan Cameron 2022-09-06 467 * @h: Hash length of @base_hash_alg (in bytes). H in SPDM specification.
12e29e750c4583 Jonathan Cameron 2022-09-06 468 * @leaf_key:
12e29e750c4583 Jonathan Cameron 2022-09-06 469 * @root_keyring: Keyring against which to check the root certificate of a
12e29e750c4583 Jonathan Cameron 2022-09-06 470 * certificate chain.
12e29e750c4583 Jonathan Cameron 2022-09-06 471 */
12e29e750c4583 Jonathan Cameron 2022-09-06 472 struct spdm_state {
12e29e750c4583 Jonathan Cameron 2022-09-06 473 struct mutex lock;
12e29e750c4583 Jonathan Cameron 2022-09-06 474
12e29e750c4583 Jonathan Cameron 2022-09-06 475 /* Transport */
12e29e750c4583 Jonathan Cameron 2022-09-06 476 struct device *dev;
12e29e750c4583 Jonathan Cameron 2022-09-06 477 spdm_transport *transport;
12e29e750c4583 Jonathan Cameron 2022-09-06 478 void *transport_priv;
12e29e750c4583 Jonathan Cameron 2022-09-06 479 u32 transport_sz;
12e29e750c4583 Jonathan Cameron 2022-09-06 480
12e29e750c4583 Jonathan Cameron 2022-09-06 481 /* Negotiated state */
12e29e750c4583 Jonathan Cameron 2022-09-06 482 u8 version;
12e29e750c4583 Jonathan Cameron 2022-09-06 483 u32 responder_caps;
12e29e750c4583 Jonathan Cameron 2022-09-06 484 u32 base_asym_alg;
12e29e750c4583 Jonathan Cameron 2022-09-06 485 u32 base_hash_alg;
12e29e750c4583 Jonathan Cameron 2022-09-06 486 unsigned long slot_mask;
12e29e750c4583 Jonathan Cameron 2022-09-06 487
12e29e750c4583 Jonathan Cameron 2022-09-06 488 /* Signature algorithm */
12e29e750c4583 Jonathan Cameron 2022-09-06 489 const char *base_asym_enc;
12e29e750c4583 Jonathan Cameron 2022-09-06 490 size_t s;
12e29e750c4583 Jonathan Cameron 2022-09-06 491
12e29e750c4583 Jonathan Cameron 2022-09-06 492 /* Hash algorithm */
12e29e750c4583 Jonathan Cameron 2022-09-06 493 const char *base_hash_alg_name;
12e29e750c4583 Jonathan Cameron 2022-09-06 494 struct crypto_shash *shash;
12e29e750c4583 Jonathan Cameron 2022-09-06 495 struct shash_desc *desc;
12e29e750c4583 Jonathan Cameron 2022-09-06 496 size_t h;
12e29e750c4583 Jonathan Cameron 2022-09-06 497
12e29e750c4583 Jonathan Cameron 2022-09-06 498 /* Certificates */
12e29e750c4583 Jonathan Cameron 2022-09-06 499 struct key *leaf_key;
12e29e750c4583 Jonathan Cameron 2022-09-06 500 struct key *root_keyring;
12e29e750c4583 Jonathan Cameron 2022-09-06 @501 };
12e29e750c4583 Jonathan Cameron 2022-09-06 502
:::::: The code at line 501 was first introduced by commit
:::::: 12e29e750c4583393be0d37dc3fcab85e17c5c0e spdm: Introduce library to authenticate devices
:::::: TO: Jonathan Cameron <Jonathan.Cameron@huawei.com>
:::::: CC: Dave Jiang <dave.jiang@intel.com>
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
next reply other threads:[~2023-08-18 7:17 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-08-18 7:16 kernel test robot [this message]
2023-08-18 13:00 ` [davejiang:cxl-ide 5/24] lib/spdm_requester.c:501: warning: Function parameter or member 'leaf_key' not described in 'spdm_state' Lukas Wunner
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=202308181526.l7us0AP7-lkp@intel.com \
--to=lkp@intel.com \
--cc=Jonathan.Cameron@huawei.com \
--cc=dave.jiang@intel.com \
--cc=lukas@wunner.de \
--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.