integrity: Make function integrity_add_key() static
authorWei Yongjun <weiyongjun1@huawei.com>
Wed, 10 Feb 2021 08:01:31 +0000 (08:01 +0000)
committerMimi Zohar <zohar@linux.ibm.com>
Fri, 12 Feb 2021 16:11:59 +0000 (11:11 -0500)
commitf6692213b5045dc461ce0858fb18cf46f328c202
treea141a793c6aa0947f1903f4b216e992abc366289
parentcccb0efdef01e8a9f44ac38e081c485f92fac3a4
integrity: Make function integrity_add_key() static

The sparse tool complains as follows:

security/integrity/digsig.c:146:12: warning:
 symbol 'integrity_add_key' was not declared. Should it be static?

This function is not used outside of digsig.c, so this
commit marks it static.

Reported-by: Hulk Robot <hulkci@huawei.com>
Fixes: 60740accf784 ("integrity: Load certs to the platform keyring")
Signed-off-by: Wei Yongjun <weiyongjun1@huawei.com>
Reviewed-by: Kees Cook <keescook@chromium.org>
Reviewed-by: Nayna Jain <nayna@linux.ibm.com>
Signed-off-by: Mimi Zohar <zohar@linux.ibm.com>
security/integrity/digsig.c