Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp510998pxb; Tue, 3 Nov 2020 05:37:52 -0800 (PST) X-Google-Smtp-Source: ABdhPJw5/AZq3BTMpkCVucW6Kwi5ORXqtC6YGL2MC7cW5szvuo12VF/djZ7Vdf5lV/pq/o04Amoj X-Received: by 2002:a17:906:ca93:: with SMTP id js19mr7057405ejb.124.1604410672086; Tue, 03 Nov 2020 05:37:52 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1604410672; cv=none; d=google.com; s=arc-20160816; b=faXtwZ6121mKZappRrJYdj81AfDHgH0cLeiEWH4vdjmNLsqz4C4Ysws+Szf/IdTFFY PvKIBOlMaJLPVQFvZ+ZnYcGckr6GyOA7YnVeyJ+w7TLNUjmgwQmL4a5JBalqmDDM7qS6 1W6/WKF9pP2Hf5jQj8GRBEwjij+9CP0Rw8Uqh7ZAdAcnIXK8ta03/X/rcQ6D+88kbu5v VHU2FGzqopWzg2MDMtFEwMSByzGo7mWsc6c5Jv0aEGFTwJZV1mGVZplv3GTmHeAPl0o7 MxufpA7bkJWzzdgJ2Unmuh6IvQ2V8Dy+RMte2SzmHw2XfIx5JQccXMhiqLKtKbj0WuAL b5+A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=xfedLL+nYfJLmSHhMpavMrJSemOGv3HU4KLshhRP0i8=; b=SLtMjvBxYd3fmuEUjvbrawr26xPES0Y7bnS6DTfbeTixx/w8/8gaBvEDvnrSReJIw+ O73YRkAglG9wTj1a/Nm5e2anKIPNFBV7ZhWGf2ihAkBrwlQbadD8BEW4S58BIfaE9Ioe Ea1DJVty4fJjt6CHVaFxvvb59tX0a9LoWvph5NZIezQYBG9BSANFetUBVmsxMGd7EtKL /861msDpg0MpVciH2dYqSudw7UxHYklstQWk70YRtR/hehbg2rNtro1CnbGyX1Dg0SlJ nkTMJZTxSOoudG1qEACQacXw41t8dGsL8jpdd0/KzScDLGAxSeuzZtFS3mWy+Y9vIEmx DwVw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=lhCnHxg8; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id h11si13168355edq.428.2020.11.03.05.37.26; Tue, 03 Nov 2020 05:37:52 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=lhCnHxg8; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728144AbgKCNfw (ORCPT + 99 others); Tue, 3 Nov 2020 08:35:52 -0500 Received: from mail.kernel.org ([198.145.29.99]:59328 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726312AbgKCNfw (ORCPT ); Tue, 3 Nov 2020 08:35:52 -0500 Received: from localhost (83-86-74-64.cable.dynamic.v4.ziggo.nl [83.86.74.64]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id B7CED20870; Tue, 3 Nov 2020 13:35:50 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1604410551; bh=DRmFPUWjCfp3zN1gWNkKl/K4qOKyHQ0IjaPt1cmlPRk=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=lhCnHxg83jmBln9f27kSqXipTeJ/ou+ZzfQFAfbfu2GPuMce+JI5foxOO7Q7Fb+IE iXq9NlxTjUfP6peKfakQ6qPufulPWYmQmc6okWQZrqEChtUwOcHLSIEA4vzhXCoQGp bESwWvaaBl7x1NAtBUhbyMDsS0/zkiv8v5NDQ12s= Date: Tue, 3 Nov 2020 14:36:44 +0100 From: Greg KH To: Luo Jiaxing Cc: akpm@linux-foundation.org, viro@zeniv.linux.org.uk, andriy.shevchenko@linux.intel.com, linux-kernel@vger.kernel.org, martin.petersen@oracle.com, john.garry@huawei.com, himanshu.madhani@cavium.com, felipe.balbi@linux.intel.com, uma.shankar@intel.com, anshuman.gupta@intel.com, animesh.manna@intel.com, linux-usb@vger.kernel.org, linux-scsi@vger.kernel.org, linuxarm@huawei.com Subject: Re: [PATCH v3 0/5] Introduce a new helper marco DEFINE_SHOW_STORE_ATTRIBUTE at seq_file.c Message-ID: <20201103133644.GA2067567@kroah.com> References: <1604406584-53926-1-git-send-email-luojiaxing@huawei.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1604406584-53926-1-git-send-email-luojiaxing@huawei.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Nov 03, 2020 at 08:29:39PM +0800, Luo Jiaxing wrote: > We already own DEFINE_SHOW_ATTRIBUTE() helper macro for defining attribute > for read-only file, but we found many of drivers also want a helper macro > for read-write file too. > > So we add this macro to help decrease code duplication. > > --- > v1->v2: > 1.Rename DEFINE_STORE_ATTRIBUTE() to DEFINE_SHOW_STORE_ATTRIBUTE(). > v2->v3: > 1.Fixed some spelling mistakes in commit. > 2.Revised resumes are added for easy tracing. You forgot to address Al Viro's review comments :(