Skip to content

Commit fe6bde7

Browse files
ChenXiaoSongcschaufler
authored andcommitted
Smack: fix doc warning
Fix gcc W=1 warning: security/smack/smack_access.c:342: warning: Function parameter or member 'ad' not described in 'smack_log' security/smack/smack_access.c:403: warning: Function parameter or member 'skp' not described in 'smk_insert_entry' security/smack/smack_access.c:487: warning: Function parameter or member 'level' not described in 'smk_netlbl_mls' security/smack/smack_access.c:487: warning: Function parameter or member 'len' not described in 'smk_netlbl_mls' Signed-off-by: ChenXiaoSong <[email protected]> Signed-off-by: Casey Schaufler <[email protected]>
1 parent 0169d8f commit fe6bde7

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

security/smack/smack_access.c

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -332,7 +332,7 @@ static void smack_log_callback(struct audit_buffer *ab, void *a)
332332
* @object_label : smack label of the object being accessed
333333
* @request: requested permissions
334334
* @result: result from smk_access
335-
* @a: auxiliary audit data
335+
* @ad: auxiliary audit data
336336
*
337337
* Audit the granting or denial of permissions in accordance
338338
* with the policy.
@@ -396,6 +396,7 @@ struct hlist_head smack_known_hash[SMACK_HASH_SLOTS];
396396

397397
/**
398398
* smk_insert_entry - insert a smack label into a hash map,
399+
* @skp: smack label
399400
*
400401
* this function must be called under smack_known_lock
401402
*/
@@ -476,8 +477,10 @@ char *smk_parse_smack(const char *string, int len)
476477

477478
/**
478479
* smk_netlbl_mls - convert a catset to netlabel mls categories
480+
* @level: MLS sensitivity level
479481
* @catset: the Smack categories
480482
* @sap: where to put the netlabel categories
483+
* @len: number of bytes for the levels in a CIPSO IP option
481484
*
482485
* Allocates and fills attr.mls
483486
* Returns 0 on success, error code on failure.

0 commit comments

Comments
 (0)