|
From: Wei Y. <wei...@gm...> - 2016-09-25 15:36:32
|
From: Wei Yongjun <wei...@hu...>
Fixes the following sparse warnings:
security/integrity/ima/ima_kexec.c:122:23: warning:
symbol 'update_buffer_nb' was not declared. Should it be static?
security/integrity/ima/ima_kexec.c:130:6: warning:
symbol 'ima_add_kexec_buffer' was not declared. Should it be static?
Signed-off-by: Wei Yongjun <wei...@hu...>
---
security/integrity/ima/ima_kexec.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/security/integrity/ima/ima_kexec.c b/security/integrity/ima/ima_kexec.c
index 878c062..0a7ab39 100644
--- a/security/integrity/ima/ima_kexec.c
+++ b/security/integrity/ima/ima_kexec.c
@@ -119,7 +119,7 @@ static int ima_update_kexec_buffer(struct notifier_block *self,
return NOTIFY_OK;
}
-struct notifier_block update_buffer_nb = {
+static struct notifier_block update_buffer_nb = {
.notifier_call = ima_update_kexec_buffer,
};
@@ -127,7 +127,7 @@ struct notifier_block update_buffer_nb = {
* Called during kexec_file_load so that IMA can add a segment to the kexec
* image for the measurement list for the next kernel.
*/
-void ima_add_kexec_buffer(struct kimage *image)
+static void ima_add_kexec_buffer(struct kimage *image)
{
static int registered;
struct kexec_buf kbuf = { .image = image, .buf_align = PAGE_SIZE,
|