Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp335557pxb; Tue, 3 Nov 2020 00:21:18 -0800 (PST) X-Google-Smtp-Source: ABdhPJyuOW3MqushtGIhi2M2sQOyzm1JVexxefImU0N7A4y5pw6YckR77RBZ5ZjdWDnr2s7DClnZ X-Received: by 2002:a17:906:d1ce:: with SMTP id bs14mr18476408ejb.548.1604391678409; Tue, 03 Nov 2020 00:21:18 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1604391678; cv=none; d=google.com; s=arc-20160816; b=LO7sPWK5GhjcHURZnEjx/fyX2hzNxA0ZxuTGiVlp5c4s1ih6IaJ8AX/OR/Ak7BwAea /V2clk8ILygvJjSFo9t1V01s206hVtV+0e2S8loGe51hERjMngSeRC22XEXfUWSUpY1S Fb1RcPTRjrziCdItJ6sCqwvXf3N/WNTHsWtmC/4gT+VqKb+413qWrmkrTfJRlBwl8Ceo LQzFlSvK1fYeafmNuYznJo+HCnHJeN9TTn1YhLwczVkaW4CrpsObLQJ/JImvsTPC7Q0J kYYyF3MspjeMRBapc4wIUYRVw3+KaRDLIGtdjSVbJFyWGWjtYZx9pjoovpazY8bSETI8 9YBQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-language:content-transfer-encoding :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject; bh=95iXMpmRZpI96Tp+vNjxJm3qUUS8no5AO1xXCiKTASc=; b=gQeT2IUNEgRkG1K4OcnMxqUdbAWcvTnrdmVroaI2+UL0rZCWoyEILF6c+6fgpi6dxd 2yEvypKk4yPlu7jsgDSBqBk24jB6bT36ToodirrjvySb3bSwd2WtgtubyeWHh+eU47uN Jj5CbsofuxwL9CEMd1lv38snml94HGylxyhPS5lNpNEKCCrGFX8s/P5QIFCo7HLOuwjm EYr1yqA5j+g+Skl/dmtbmOQz2jdoIhQF2b9GQOFXthPeV8Tp4ieSLU2sShyA/3zwcVjd c079Sv9tO/+aowWcybeoyWSXjmaOHHndxfg8+jPPGLqHZFGM/jA0J5L69h2EHLwtjqFl FV1g== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id d4si12223747edr.173.2020.11.03.00.20.56; Tue, 03 Nov 2020 00:21:18 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727359AbgKCITV (ORCPT + 99 others); Tue, 3 Nov 2020 03:19:21 -0500 Received: from szxga05-in.huawei.com ([45.249.212.191]:7040 "EHLO szxga05-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725878AbgKCITV (ORCPT ); Tue, 3 Nov 2020 03:19:21 -0500 Received: from DGGEMS408-HUB.china.huawei.com (unknown [172.30.72.58]) by szxga05-in.huawei.com (SkyGuard) with ESMTP id 4CQN3n58KnzhXhX; Tue, 3 Nov 2020 16:19:17 +0800 (CST) Received: from [127.0.0.1] (10.57.22.126) by DGGEMS408-HUB.china.huawei.com (10.3.19.208) with Microsoft SMTP Server id 14.3.487.0; Tue, 3 Nov 2020 16:19:09 +0800 Subject: Re: [PATCH v2 0/5] Introduce a new helper marco DEFINE_SHOW_STORE_ATTRIBUTE at seq_file.c To: Greg KH CC: , , , , , , , , , , , , , References: <1604046722-15531-1-git-send-email-luojiaxing@huawei.com> <20201030084448.GA1625087@kroah.com> From: luojiaxing Message-ID: Date: Tue, 3 Nov 2020 16:19:09 +0800 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:60.0) Gecko/20100101 Thunderbird/60.2.1 MIME-Version: 1.0 In-Reply-To: <20201030084448.GA1625087@kroah.com> Content-Type: text/plain; charset="utf-8"; format=flowed Content-Transfer-Encoding: 7bit Content-Language: en-US X-Originating-IP: [10.57.22.126] X-CFilter-Loop: Reflected Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi On 2020/10/30 16:44, Greg KH wrote: > On Fri, Oct 30, 2020 at 04:31:57PM +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 marco for >> read-write file too. >> >> So we try to add this macro to help decrease code duplication. >> >> Luo Jiaxing (5): >> seq_file: Introduce DEFINE_SHOW_STORE_ATTRIBUTE() helper macro >> scsi: hisi_sas: Introduce DEFINE_SHOW_STORE_ATTRIBUTE for debugfs >> scsi: qla2xxx: Introduce DEFINE_SHOW_STORE_ATTRIBUTE for debugfs >> usb: dwc3: debugfs: Introduce DEFINE_SHOW_STORE_ATTRIBUTE >> drm/i915/display: Introduce DEFINE_SHOW_STORE_ATTRIBUTE for debugfs > What changed from v1? Sorry, I should add a commit for the change. In v1, Andy pointed out that the old name of DEFINE_STORE_ATTRIBUTE was easily misunderstood as a write-only file rather than a read-write file. Therefore, it is changed to DEFINE_SHOW_STORE_ATTRIBUTE according to his suggestion. Thanks Jiaxing > > thanks, > > greg k-h > > . >