[PATCH 0/3] seq_file: Introduce DEFINE_SEQ_ATTRIBUTE() helper macro

From: Kefeng Wang
Date: Sat May 09 2020 - 02:37:04 EST


As discussion in https://lore.kernel.org/lkml/20191129222310.GA3712618@xxxxxxxxx/,
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