From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-3.8 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id BF9E9C28CBC for ; Sat, 9 May 2020 06:37:08 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id A040D24953 for ; Sat, 9 May 2020 06:37:08 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728986AbgEIGhD (ORCPT ); Sat, 9 May 2020 02:37:03 -0400 Received: from szxga04-in.huawei.com ([45.249.212.190]:4367 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1728898AbgEIGhB (ORCPT ); Sat, 9 May 2020 02:37:01 -0400 Received: from DGGEMS411-HUB.china.huawei.com (unknown [172.30.72.58]) by Forcepoint Email with ESMTP id 27FAF6B2CE454D2DEB60; Sat, 9 May 2020 14:36:58 +0800 (CST) Received: from localhost.localdomain.localdomain (10.175.113.25) by DGGEMS411-HUB.china.huawei.com (10.3.19.211) with Microsoft SMTP Server id 14.3.487.0; Sat, 9 May 2020 14:36:47 +0800 From: Kefeng Wang To: Greg KH , CC: Ingo Molnar , Andrew Morton , Kefeng Wang Subject: [PATCH 0/3] seq_file: Introduce DEFINE_SEQ_ATTRIBUTE() helper macro Date: Sat, 9 May 2020 14:40:28 +0800 Message-ID: <20200509064031.181091-1-wangkefeng.wang@huawei.com> X-Mailer: git-send-email 2.26.2 MIME-Version: 1.0 Content-Transfer-Encoding: 7BIT Content-Type: text/plain; charset=US-ASCII X-Originating-IP: [10.175.113.25] X-CFilter-Loop: Reflected Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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