Message ID | 20220323230536.11168C340E8@smtp.kernel.org (mailing list archive) |
---|---|
State | New |
Headers | show
Return-Path: <owner-linux-mm@kvack.org> X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by smtp.lore.kernel.org (Postfix) with ESMTP id 20468C433FE for <linux-mm@archiver.kernel.org>; Wed, 23 Mar 2022 23:05:38 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id A97526B0078; Wed, 23 Mar 2022 19:05:37 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id A450E6B007B; Wed, 23 Mar 2022 19:05:37 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 9342F8D0002; Wed, 23 Mar 2022 19:05:37 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (relay.hostedemail.com [64.99.140.27]) by kanga.kvack.org (Postfix) with ESMTP id 84E9B6B0078 for <linux-mm@kvack.org>; Wed, 23 Mar 2022 19:05:37 -0400 (EDT) Received: from smtpin09.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay13.hostedemail.com (Postfix) with ESMTP id 5514060808 for <linux-mm@kvack.org>; Wed, 23 Mar 2022 23:05:37 +0000 (UTC) X-FDA: 79277184714.09.8FA3F60 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by imf23.hostedemail.com (Postfix) with ESMTP id F1453140036 for <linux-mm@kvack.org>; Wed, 23 Mar 2022 23:05:36 +0000 (UTC) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 4DC63617EB; Wed, 23 Mar 2022 23:05:36 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 11168C340E8; Wed, 23 Mar 2022 23:05:36 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linux-foundation.org; s=korg; t=1648076736; bh=EWf/JA9q+bf+8thitxZGoc9ImQ460I+csfS/3/cvfmo=; h=Date:To:From:In-Reply-To:Subject:From; b=UpR9VH4x3Xa5I7MS72ar7Ds+QYlpwHiqUOO55H680R5V2SmT0sHO2WQV/Ec42PbEh 9S5wZLZxCsvO3OzBZIfAvvvFS1yf8PkfIobho7Kz3F7vuGULDb2lMGPAVe6vM0kq4b e/zVrGNrZwX8J+5bAjp2calItDZriJJcqTM4XCaE= Date: Wed, 23 Mar 2022 16:05:35 -0700 To: gregkh@linuxfoundation.org,linmiaohe@huawei.com,akpm@linux-foundation.org,patches@lists.linux.dev,linux-mm@kvack.org,mm-commits@vger.kernel.org,torvalds@linux-foundation.org,akpm@linux-foundation.org From: Andrew Morton <akpm@linux-foundation.org> In-Reply-To: <20220323160453.65922ced539cbf445b191555@linux-foundation.org> Subject: [patch 06/41] kernel/ksysfs.c: use helper macro __ATTR_RW Message-Id: <20220323230536.11168C340E8@smtp.kernel.org> X-Rspam-User: Authentication-Results: imf23.hostedemail.com; dkim=pass header.d=linux-foundation.org header.s=korg header.b=UpR9VH4x; spf=pass (imf23.hostedemail.com: domain of akpm@linux-foundation.org designates 139.178.84.217 as permitted sender) smtp.mailfrom=akpm@linux-foundation.org; dmarc=none X-Rspamd-Server: rspam03 X-Rspamd-Queue-Id: F1453140036 X-Stat-Signature: cmwxts6qejuyf3y91cda4icip7r3ndib X-HE-Tag: 1648076736-943288 X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: <linux-mm.kvack.org> |
Series |
[01/41] proc: alloc PATH_MAX bytes for /proc/${pid}/fd/ symlinks
|
expand
|
--- a/kernel/ksysfs.c~kernel-ksysfsc-use-helper-macro-__attr_rw +++ a/kernel/ksysfs.c @@ -24,8 +24,7 @@ static struct kobj_attribute _name##_attr = __ATTR_RO(_name) #define KERNEL_ATTR_RW(_name) \ -static struct kobj_attribute _name##_attr = \ - __ATTR(_name, 0644, _name##_show, _name##_store) +static struct kobj_attribute _name##_attr = __ATTR_RW(_name) /* current uevent sequence number */ static ssize_t uevent_seqnum_show(struct kobject *kobj,