lkml.org 
[lkml]   [2020]   [May]   [9]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
Subject[PATCH 0/3] seq_file: Introduce DEFINE_SEQ_ATTRIBUTE() helper macro
Date
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

\
 
 \ /
  Last update: 2020-05-09 08:38    [W:0.042 / U:0.008 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site