All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] key: Make key_sysctls static
@ 2023-08-02  2:15 GUO Zihua
  2023-08-02  2:35 ` Ben Boeckel
  0 siblings, 1 reply; 4+ messages in thread
From: GUO Zihua @ 2023-08-02  2:15 UTC (permalink / raw)
  To: dhowells, jarkko; +Cc: keyrings

key_sysctls is not used outside the file. Make it static

Signed-off-by: GUO Zihua <guozihua@huawei.com>
---
 security/keys/sysctl.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/security/keys/sysctl.c b/security/keys/sysctl.c
index b72b82bb20c6..b348e1679d5d 100644
--- a/security/keys/sysctl.c
+++ b/security/keys/sysctl.c
@@ -9,7 +9,7 @@
 #include <linux/sysctl.h>
 #include "internal.h"
 
-struct ctl_table key_sysctls[] = {
+static struct ctl_table key_sysctls[] = {
 	{
 		.procname = "maxkeys",
 		.data = &key_quota_maxkeys,
-- 
2.17.1


^ permalink raw reply related	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2023-08-02  4:19 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-08-02  2:15 [PATCH] key: Make key_sysctls static GUO Zihua
2023-08-02  2:35 ` Ben Boeckel
2023-08-02  3:14   ` Guozihua (Scott)
2023-08-02  4:19   ` Jarkko Sakkinen

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.