Skip to content

Commit

Permalink
integrity: add missing '__init' keyword for integrity_init_keyring()
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Dmitry Kasatkin authored and Mimi Zohar committed Oct 7, 2014
1 parent 0f34a00 commit d16a858
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion security/integrity/digsig.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion security/integrity/integrity.h
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ struct integrity_iint_cache *integrity_iint_find(struct inode *inode);
int integrity_digsig_verify(const unsigned int id, const char *sig, int siglen,
const char *digest, int digestlen);

int integrity_init_keyring(const unsigned int id);
int __init integrity_init_keyring(const unsigned int id);
#else

static inline int integrity_digsig_verify(const unsigned int id,
Expand Down

0 comments on commit d16a858

Please sign in to comment.