Commit 2efa48fe authored by YueHaibing's avatar YueHaibing Committed by Paul Moore

audit: Make audit_log_cap and audit_copy_inode static

Fix sparse warning:

kernel/auditsc.c:1150:6: warning: symbol 'audit_log_cap' was not declared. Should it be static?
kernel/auditsc.c:1908:6: warning: symbol 'audit_copy_inode' was not declared. Should it be static?
Signed-off-by: default avatarYueHaibing <yuehaibing@huawei.com>
Acked-by: default avatarRichard Guy Briggs <rgb@redhat.com>
Signed-off-by: default avatarPaul Moore <paul@paul-moore.com>
parent 73e65b88
...@@ -1147,7 +1147,8 @@ static void audit_log_execve_info(struct audit_context *context, ...@@ -1147,7 +1147,8 @@ static void audit_log_execve_info(struct audit_context *context,
kfree(buf_head); kfree(buf_head);
} }
void audit_log_cap(struct audit_buffer *ab, char *prefix, kernel_cap_t *cap) static void audit_log_cap(struct audit_buffer *ab, char *prefix,
kernel_cap_t *cap)
{ {
int i; int i;
...@@ -1905,7 +1906,8 @@ static inline int audit_copy_fcaps(struct audit_names *name, ...@@ -1905,7 +1906,8 @@ static inline int audit_copy_fcaps(struct audit_names *name,
} }
/* Copy inode data into an audit_names. */ /* Copy inode data into an audit_names. */
void audit_copy_inode(struct audit_names *name, const struct dentry *dentry, static void audit_copy_inode(struct audit_names *name,
const struct dentry *dentry,
struct inode *inode, unsigned int flags) struct inode *inode, unsigned int flags)
{ {
name->ino = inode->i_ino; name->ino = inode->i_ino;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment