Message ID | 20230802021542.13473-1-guozihua@huawei.com (mailing list archive) |
---|---|
State | New |
Headers | show |
Series | key: Make key_sysctls static | expand |
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
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!
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
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,
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(-)