summaryrefslogtreecommitdiffstats
path: root/security/integrity/digsig.c
diff options
context:
space:
mode:
authorDmitry Kasatkin2014-10-01 20:43:07 +0200
committerMimi Zohar2014-10-07 20:32:53 +0200
commitd16a8585d3715ef161cc9858b50ea5d3c8b6079b (patch)
treed510fb8b2b781fc7aecc347cb229f2531ed9c752 /security/integrity/digsig.c
parentima: check ima_policy_flag in the ima_file_free() hook (diff)
downloadkernel-qcow2-linux-d16a8585d3715ef161cc9858b50ea5d3c8b6079b.tar.gz
kernel-qcow2-linux-d16a8585d3715ef161cc9858b50ea5d3c8b6079b.tar.xz
kernel-qcow2-linux-d16a8585d3715ef161cc9858b50ea5d3c8b6079b.zip
integrity: add missing '__init' keyword for integrity_init_keyring()
integrity_init_keyring() is used only from kernel '__init' functions. Add it there as well. Signed-off-by: Dmitry Kasatkin <d.kasatkin@samsung.com> Signed-off-by: Mimi Zohar <zohar@linux.vnet.ibm.com>
Diffstat (limited to 'security/integrity/digsig.c')
-rw-r--r--security/integrity/digsig.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/security/integrity/digsig.c b/security/integrity/digsig.c
index 8d4fbff8b87c..4f643d1b34dd 100644
--- a/security/integrity/digsig.c
+++ b/security/integrity/digsig.c
@@ -63,7 +63,7 @@ int integrity_digsig_verify(const unsigned int id, const char *sig, int siglen,
return -EOPNOTSUPP;
}
-int integrity_init_keyring(const unsigned int id)
+int __init integrity_init_keyring(const unsigned int id)
{
const struct cred *cred = current_cred();
int err = 0;