printk-move-printk-sysctl-to-printk-sysctlc.patch removed from -mm tree
The patch titled
Subject: printk: move printk sysctl to printk/sysctl.c
has been removed from the -mm tree. Its filename was
printk-move-printk-sysctl-to-printk-sysctlc.patch
This patch was dropped because it was merged into mainline or a subsystem tree
------------------------------------------------------
From: Xiaoming Ni <[email protected]>
Subject: printk: move printk sysctl to printk/sysctl.c
kernel/sysctl.c is a kitchen sink where everyone leaves their dirty dishes, this makes it very difficult to maintain.
To help with this maintenance let's start by moving sysctls to places where they actually belong. The proc sysctl maintainers do not want to know what sysctl knobs you wish to add for your own piece of code, we just care about the core logic.
So move printk sysctl from kernel/sysctl.c to kernel/printk/sysctl.c. Use register_sysctl() to register the sysctl interface.
---
kernel/printk/Makefile | 5 +- kernel/printk/internal.h | 6 ++ kernel/printk/printk.c | 1 kernel/printk/sysctl.c | 85 +++++++++++++++++++++++++++++++++++++ kernel/sysctl.c | 68 ----------------------------- 5 files changed, 96 insertions(+), 69 deletions(-)
kernel/printk/internal.h renamed from kernel/printk/internal.h~printk-move-printk-sysctl-to-printk-sysctlc +6 -0
@@ -4,6 +4,12 @@*/ #include <linux/percpu.h> +#if defined(CONFIG_PRINTK ) && defined(CONFIG_SYSCTL ) +void __init printk_sysctl_init (void ); +#else +#define printk_sysctl_init () do { } while (0) +#endif +#ifdef CONFIG_PRINTK /* Flags for a single printk record. */
kernel/printk/Makefile renamed from kernel/printk/Makefile~printk-move-printk-sysctl-to-printk-sysctlc +4 -1
@@ -2,5 +2,8 @@ obj-y = printk.o obj-$(CONFIG_PRINTK) += printk_safe.o obj-$(CONFIG_A11Y_BRAILLE_CONSOLE) += braille.o -obj-$(CONFIG_PRINTK) += printk_ringbuffer.o obj-$(CONFIG_PRINTK_INDEX) += index.o + +obj-$(CONFIG_PRINTK) += printk_support.o +printk_support-y := printk_ringbuffer.o +printk_support-$(CONFIG_SYSCTL) += sysctl.o
kernel/printk/printk.c renamed from kernel/printk/printk.c~printk-move-printk-sysctl-to-printk-sysctlc +1 -0
@@ -3211,6 +3211,7 @@ static int __init printk_late_init(void) ret =cpuhp_setup_state_nocalls (CPUHP_AP_ONLINE_DYN ,"printk:online" , console_cpu_notify,NULL );WARN_ON (ret <0 ); +printk_sysctl_init ();return 0 ; }late_initcall (printk_late_init);
kernel/printk/sysctl.c new file +85 -0
85 lines not on this page · raw message
kernel/sysctl.c renamed from kernel/sysctl.c~printk-move-printk-sysctl-to-printk-sysctlc +0 -68
80 lines not on this page · raw message
_
Patches currently in -mm which might be from [email protected] are