The patch titled Subject: kernel/sysctl.c: remove unused variable ten_thousand has been added to the -mm tree. Its filename is kernel-sysctlc-remove-unused-variable-ten_thousand.patch This patch should soon appear at https://ozlabs.org/~akpm/mmots/broken-out/kernel-sysctlc-remove-unused-variable-ten_thousand.patch and later at https://ozlabs.org/~akpm/mmotm/broken-out/kernel-sysctlc-remove-unused-variable-ten_thousand.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: Colin Ian King <colin.i.king@xxxxxxxxx> Subject: kernel/sysctl.c: remove unused variable ten_thousand The const variable ten_thousand is not used, it is redundant and can be removed. Cleans up clang warning: kernel/sysctl.c:99:18: warning: unused variable 'ten_thousand' [-Wunused-const-variable] static const int ten_thousand = 10000; Link: https://lkml.kernel.org/r/20211221184501.574670-1-colin.i.king@xxxxxxxxx Fixes: c26da54dc8ca ("printk: move printk sysctl to printk/sysctl.c") Signed-off-by: Colin Ian King <colin.i.king@xxxxxxxxx> Acked-by: Luis Chamberlain <mcgrof@xxxxxxxxxx> Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> --- kernel/sysctl.c | 3 --- 1 file changed, 3 deletions(-) --- a/kernel/sysctl.c~kernel-sysctlc-remove-unused-variable-ten_thousand +++ a/kernel/sysctl.c @@ -108,9 +108,6 @@ static const unsigned long zero_ul; static const unsigned long one_ul = 1; static const unsigned long long_max = LONG_MAX; -#ifdef CONFIG_PRINTK -static const int ten_thousand = 10000; -#endif #ifdef CONFIG_PERF_EVENTS static const int six_hundred_forty_kb = 640 * 1024; #endif _ Patches currently in -mm which might be from colin.i.king@xxxxxxxxx are mm-migrate-remove-redundant-variables-used-in-a-for-loop.patch kernel-sysctlc-remove-unused-variable-ten_thousand.patch