[<prev] [next>] [day] [month] [year] [list]
Message-ID: <20131122141831.GD4208@osiris>
Date: Fri, 22 Nov 2013 15:18:31 +0100
From: Heiko Carstens <heiko.carstens@...ibm.com>
To: Mimi Zohar <zohar@...ibm.com>
Cc: linux-kernel@...r.kernel.org
Subject: [PATCH] ima: add missing "inline" to integrity_init_keyring()
Add missing "inline" statement to prevent couple of compiler warnings:
In file included from security/integrity/integrity_audit.c:16:0:
security/integrity/integrity.h:149:12: warning: 'integrity_init_keyring'
defined but not used [-Wunused-function]
Signed-off-by: Heiko Carstens <heiko.carstens@...ibm.com>
---
security/integrity/integrity.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/security/integrity/integrity.h b/security/integrity/integrity.h
index b9e7c133734a..c3d48dc4d6cf 100644
--- a/security/integrity/integrity.h
+++ b/security/integrity/integrity.h
@@ -146,7 +146,7 @@ static inline int asymmetric_verify(struct key *keyring, const char *sig,
return -EOPNOTSUPP;
}
-static int integrity_init_keyring(const unsigned int id)
+static inline int integrity_init_keyring(const unsigned int id)
{
return 0;
}
--
1.8.3.4
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists