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

* Re: [PATCH] key: Make key_sysctls static
  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
  0 siblings, 2 replies; 4+ messages in thread
From: Ben Boeckel @ 2023-08-02  2:35 UTC (permalink / raw)
  To: GUO Zihua; +Cc: dhowells, jarkko, keyrings

On Wed, Aug 02, 2023 at 10:15:42 +0800, GUO Zihua wrote:
> key_sysctls is not used outside the file. Make it static
> 
> Signed-off-by: GUO Zihua <guozihua@huawei.com>

Previously submitted:

    https://lore.kernel.org/keyrings/20230611113210.182652-1-trix@redhat.com/T/#u

--Ben

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

* Re: [PATCH] key: Make key_sysctls static
  2023-08-02  2:35 ` Ben Boeckel
@ 2023-08-02  3:14   ` Guozihua (Scott)
  2023-08-02  4:19   ` Jarkko Sakkinen
  1 sibling, 0 replies; 4+ messages in thread
From: Guozihua (Scott) @ 2023-08-02  3:14 UTC (permalink / raw)
  To: Ben Boeckel; +Cc: dhowells, jarkko, keyrings

Hi Ben,

On 2023/8/2 10:35, Ben Boeckel wrote:
> On Wed, Aug 02, 2023 at 10:15:42 +0800, GUO Zihua wrote:
>> key_sysctls is not used outside the file. Make it static
>>
>> Signed-off-by: GUO Zihua <guozihua@huawei.com>
> 
> Previously submitted:
> 
>     https://lore.kernel.org/keyrings/20230611113210.182652-1-trix@redhat.com/T/#u
> 
> --Ben
Thanks for the info!

-- 
Best
GUO Zihua


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

* Re: [PATCH] key: Make key_sysctls static
  2023-08-02  2:35 ` Ben Boeckel
  2023-08-02  3:14   ` Guozihua (Scott)
@ 2023-08-02  4:19   ` Jarkko Sakkinen
  1 sibling, 0 replies; 4+ messages in thread
From: Jarkko Sakkinen @ 2023-08-02  4:19 UTC (permalink / raw)
  To: Ben Boeckel, GUO Zihua; +Cc: dhowells, keyrings

On Wed Aug 2, 2023 at 5:35 AM EEST, Ben Boeckel wrote:
> On Wed, Aug 02, 2023 at 10:15:42 +0800, GUO Zihua wrote:
> > key_sysctls is not used outside the file. Make it static
> > 
> > Signed-off-by: GUO Zihua <guozihua@huawei.com>
>
> Previously submitted:
>
>     https://lore.kernel.org/keyrings/20230611113210.182652-1-trix@redhat.com/T/#u
>
> --Ben

Oops, sorry, applied:

https://git.kernel.org/pub/scm/linux/kernel/git/jarkko/linux-tpmdd.git/log/?h=next

BR, Jarkko


^ permalink raw reply	[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.