Messages in this thread | | | From | Kefeng Wang <> | Subject | [PATCH 0/3] seq_file: Introduce DEFINE_SEQ_ATTRIBUTE() helper macro | Date | Sat, 9 May 2020 14:40:28 +0800 |
| |
As discussion in https://lore.kernel.org/lkml/20191129222310.GA3712618@kroah.com/, we could introduce a new helper macro to reduce losts of boilerplate code, vmstat and kprobes is the example which covert to use it, if this is accepted, I will send out more clean ups.
Kefeng Wang (3): seq_file: Introduce DEFINE_SEQ_ATTRIBUTE() helper macro mm: vmstat: Convert to use DEFINE_SEQ_ATTRIBUTE macro kernel: kprobes: Convert to use DEFINE_SEQ_ATTRIBUTE macro
include/linux/seq_file.h | 19 +++++++++++++++++++ kernel/kprobes.c | 33 ++++++--------------------------- mm/vmstat.c | 32 ++++++-------------------------- 3 files changed, 31 insertions(+), 53 deletions(-)
-- 2.26.2
| |