The patch titled Subject: tipc: remove two unused variables has been added to the -mm tree. Its filename is proc-sysctl-add-shared-variables-for-range-check-fix-2.patch This patch should soon appear at http://ozlabs.org/~akpm/mmots/broken-out/proc-sysctl-add-shared-variables-for-range-check-fix-2.patch and later at http://ozlabs.org/~akpm/mmotm/broken-out/proc-sysctl-add-shared-variables-for-range-check-fix-2.patch Before you just go and hit "reply", please: a) Consider who else should be cc'ed b) Prefer to cc a suitable mailing list as well c) Ideally: find the original patch on the mailing list and do a reply-to-all to that, adding suitable additional cc's *** Remember to use Documentation/process/submit-checklist.rst when testing your code *** The -mm tree is included into linux-next and is updated there every 3-4 working days ------------------------------------------------------ From: Matteo Croce <mcroce@xxxxxxxxxx> Subject: tipc: remove two unused variables Remove two variables which are unused after merging 6a33853c5773 and generate the following warnings: CC [M] net/tipc/sysctl.o net/tipc/sysctl.c:42:12: warning: `one' defined but not used [-Wunused-variable] 42 | static int one = 1; | ^~~ net/tipc/sysctl.c:41:12: warning: `zero' defined but not used [-Wunused-variable] 41 | static int zero; | ^~~~ Link: http://lkml.kernel.org/r/20190530091952.4108-1-mcroce@xxxxxxxxxx Fixes: 6a33853c5773 ("proc/sysctl: add shared variables for range check") Signed-off-by: Matteo Croce <mcroce@xxxxxxxxxx> Reported-by: Stephen Rothwell <sfr@xxxxxxxxxxxxxxxx> Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> --- net/tipc/sysctl.c | 2 -- 1 file changed, 2 deletions(-) --- a/net/tipc/sysctl.c~proc-sysctl-add-shared-variables-for-range-check-fix-2 +++ a/net/tipc/sysctl.c @@ -38,8 +38,6 @@ #include <linux/sysctl.h> -static int zero; -static int one = 1; static struct ctl_table_header *tipc_ctl_hdr; static struct ctl_table tipc_table[] = { _ Patches currently in -mm which might be from mcroce@xxxxxxxxxx are proc-sysctl-add-shared-variables-for-range-check.patch proc-sysctl-add-shared-variables-for-range-check-fix-2.patch checkpatchpl-warn-on-duplicate-sysctl-local-variable.patch