]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
keys: sparse: Fix kdoc mismatches
authorDavid Howells <dhowells@redhat.com>
Wed, 22 May 2019 12:30:56 +0000 (13:30 +0100)
committerDavid Howells <dhowells@redhat.com>
Wed, 29 May 2019 21:32:25 +0000 (22:32 +0100)
Fix some kdoc argument description mismatches reported by sparse and give
keyring_restrict() a description.

Signed-off-by: David Howells <dhowells@redhat.com>
Reviewed-by: James Morris <jamorris@linux.microsoft.com>
cc: Mat Martineau <mathew.j.martineau@linux.intel.com>

security/keys/keyring.c
security/keys/request_key.c

index e14f09e3a4b027376bcf6f78f1464a4374cb4550..5b218b27059803943ce3fc32e931b34c17c99354 100644 (file)
@@ -520,7 +520,7 @@ EXPORT_SYMBOL(keyring_alloc);
  * @keyring: The keyring being added to.
  * @type: The type of key being added.
  * @payload: The payload of the key intended to be added.
- * @data: Additional data for evaluating restriction.
+ * @restriction_key: Keys providing additional data for evaluating restriction.
  *
  * Reject the addition of any links to a keyring.  It can be overridden by
  * passing KEY_ALLOC_BYPASS_RESTRICTION to key_instantiate_and_link() when
@@ -976,9 +976,13 @@ static bool keyring_detect_restriction_cycle(const struct key *dest_keyring,
 
 /**
  * keyring_restrict - Look up and apply a restriction to a keyring
- *
- * @keyring: The keyring to be restricted
+ * @keyring_ref: The keyring to be restricted
+ * @type: The key type that will provide the restriction checker.
  * @restriction: The restriction options to apply to the keyring
+ *
+ * Look up a keyring and apply a restriction to it.  The restriction is managed
+ * by the specific key type, but can be configured by the options specified in
+ * the restriction string.
  */
 int keyring_restrict(key_ref_t keyring_ref, const char *type,
                     const char *restriction)
index 75d87f9e0f498ce7fabb5b5c1ed3f609c762b5e3..1f234b019437ad39b5333156588d04db163e820f 100644 (file)
@@ -24,7 +24,7 @@
 
 /**
  * complete_request_key - Complete the construction of a key.
- * @auth_key: The authorisation key.
+ * @authkey: The authorisation key.
  * @error: The success or failute of the construction.
  *
  * Complete the attempt to construct a key.  The key will be negated