linux-security-module.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] integrity: make integrity_add_key() static
@ 2020-04-03  6:15 Jason Yan
  0 siblings, 0 replies; only message in thread
From: Jason Yan @ 2020-04-03  6:15 UTC (permalink / raw)
  To: jmorris, serge, linux-security-module; +Cc: Jason Yan

Fix the following sparse warning:

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

Reported-by: Hulk Robot <hulkci@huawei.com>
Signed-off-by: Jason Yan <yanaijie@huawei.com>
---
 security/integrity/digsig.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/security/integrity/digsig.c b/security/integrity/digsig.c
index e9cbadade74b..8cdda97bd196 100644
--- a/security/integrity/digsig.c
+++ b/security/integrity/digsig.c
@@ -142,8 +142,8 @@ int __init integrity_init_keyring(const unsigned int id)
 	return __integrity_init_keyring(id, perm, restriction);
 }
 
-int __init integrity_add_key(const unsigned int id, const void *data,
-			     off_t size, key_perm_t perm)
+static int __init integrity_add_key(const unsigned int id, const void *data,
+				    off_t size, key_perm_t perm)
 {
 	key_ref_t key;
 	int rc = 0;
-- 
2.17.2


^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2020-04-03  6:19 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-04-03  6:15 [PATCH] integrity: make integrity_add_key() static Jason Yan

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).