Received: by 2002:a05:6a10:6744:0:0:0:0 with SMTP id w4csp557022pxu; Fri, 23 Oct 2020 07:50:38 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxX0Kk/U76c54op7XfvB6k4HXdtSz24qWnhyfTjk1nse1e6blkmWM+t40pqHpxngy8CjcD9 X-Received: by 2002:a50:9b1d:: with SMTP id o29mr2618023edi.56.1603464638138; Fri, 23 Oct 2020 07:50:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1603464638; cv=none; d=google.com; s=arc-20160816; b=T9PqazB2eJCs++w/20PZmSt3zSeNNG5DdarRGN7NsrtYT60T+LDzO8kCGWt6DFIoQK 9T8gHUk6cTOTsB9E6MN7+Wx7uTiN1ju2m7CJpuC4Moft+JfRStaCyAhF4TJxvzeTKcRG 1HgxH8UNWPw1kS1Fhe8Rr9EnsVPhFQScxJ4QglZSa9WDuM2/lnuisosndE6kR7EGPuJF nySNyJV0Mz3KAD7r21dvcWTZ9p8p8okweAsVO24s/SnEDUuT4960+iIc/IYUF0cRjyka w2r2lZmK0yISpmKAY1MSnfC5/Psvq/oJAmdin8PG87IgeSRDT0+MrHn7AQIzvAJDJAQz EQOw== 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=0R3ZPLqU4JRSjUlqXpcT3u1WuDcy/55lEff8KV6ZcEI=; b=yu/4r8zuZaeXTO3QXQ2DK/efepyALc5+8BpO57T18hpcNxzTXVrzVK3fhIU8zorp7F Ko4J2hXBsaD+gA+YtWeDMb63UDVyGi8xwjOT4jwSicuei679iAY4druNG7BW3bcAxWok 7qyHHrCpC7ooRH4v0sjG/BiiuCIMkPiHQnI7QhtMKJt/fLQdR1421NHCrrPpY+Gfqr1+ eDkNZ8ySYyFPzFqte7wDKsncuF7iUHQlPXwMtrNdxKjnMlNSsILb0u4qLZqHV8H4eDNA iNp6BmFPzc7ncDLPqKGp73LsY4e33z+cdLGek9VEEI6+FN9nLQtbchI5wUpg9lTcJ+LJ RWZg== 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 g16si933733edm.68.2020.10.23.07.50.15; Fri, 23 Oct 2020 07:50:38 -0700 (PDT) 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 S460892AbgJWIxj (ORCPT + 99 others); Fri, 23 Oct 2020 04:53:39 -0400 Received: from szxga04-in.huawei.com ([45.249.212.190]:15766 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S460768AbgJWIxj (ORCPT ); Fri, 23 Oct 2020 04:53:39 -0400 Received: from DGGEMS413-HUB.china.huawei.com (unknown [172.30.72.60]) by Forcepoint Email with ESMTP id CF2FE3B578607A66884D; Fri, 23 Oct 2020 16:53:34 +0800 (CST) Received: from [127.0.0.1] (10.57.22.126) by DGGEMS413-HUB.china.huawei.com (10.3.19.213) with Microsoft SMTP Server id 14.3.487.0; Fri, 23 Oct 2020 16:53:26 +0800 Subject: Re: [PATCH v1 1/5] seq_file: Introduce DEFINE_STORE_ATTRIBUTE() helper macro To: Andy Shevchenko CC: , , , , , , , , , , , , , References: <1603355997-32350-1-git-send-email-luojiaxing@huawei.com> <1603355997-32350-2-git-send-email-luojiaxing@huawei.com> <20201022142213.GC4077@smile.fi.intel.com> From: luojiaxing Message-ID: <9e25f256-3381-ed0f-be79-69ae631170de@huawei.com> Date: Fri, 23 Oct 2020 16:53:25 +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: <20201022142213.GC4077@smile.fi.intel.com> Content-Type: text/plain; charset="utf-8"; format=flowed Content-Transfer-Encoding: 8bit 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/22 22:22, Andy Shevchenko wrote: > On Thu, Oct 22, 2020 at 04:39:53PM +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 want a helper marco for >> read-write file too. > I would expect that DEFINE_STORE maps to WO attribute... > For RW SHOW_STORE would be more appropriate. > > Otherwise I think it makes sense. Thanks for the review, it's true that the name is a bit inappropriate. I'll change the name if I get a v2 patch. But AI doesn't seem to like this macro  : ) Thanks Jiaxing >