Received: by 2002:a05:6a10:6744:0:0:0:0 with SMTP id w4csp5740302pxu; Thu, 22 Oct 2020 09:50:56 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyjF9pgKD8fZ1uIGto2f04Q7qyieB3RkzSFl+xXgJyfyOXzA8LoRxw1xtdcMyuOwXYBDreT X-Received: by 2002:a05:6402:3191:: with SMTP id di17mr2991564edb.376.1603385455959; Thu, 22 Oct 2020 09:50:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1603385455; cv=none; d=google.com; s=arc-20160816; b=iN9aPu3U2k6opo9VC9Ww7AFaLAFVSBJw5r+93bZQhVsdhxK+1wEliFjmVrq7tVOZBk 2vt7TddtocvuLFJQRmLUNBqMaEgJvijyjdaM6rgsnApk65pcMMcn3Y8DoQ2zKHzrczZ3 79DCqZV76pT3yBjKo8rLAjdzkT40Lr4q1qMRQT6GxlACyB44McBQ1HCvSvFh6ld+k8nw I9EThvR7n4vcKf0zdoUuyFF58VMfDpU2P98F9QwLb9s+VAtFuw/mKYl3fnLoZUl5OZT7 QhPyS6atBBnXISR3/ACxO3skpa/84HtRZk7fDhVQZBVHZ9DWJc4cBJO+Q0HeTcrLxfBW eNrg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=gdYRcbVPG6EAOM+G8GVZXzZDbAnkh1G0Bx1pE2HYDYo=; b=aw7dAxtjlLHI/Rv8h2Q36bAzvsQHuQuktuRujRTi5NlEEGxkx8f010EPB4fhqOg0yC Eshdu9D5KzNRYt9cVdpEZiawGf40kF3+Bc6lMBng6k33HQE5iTfJKk7Kf+qTn8QKWVjc 218ml9XV38sllRJGTk4GEiJrQ4IDvW7IqvrgNluVGSLxStuN5PCVCG098NcCSCsNvJT/ Ztikpfw0Wx9CxYJkugWg1xfDmV2NEv+xnb1NkBqhFU5y57M5Sx3JjH2WVjs632tDGtSZ zHN6GiSvkmOLvuJvVfCbf3WuCuh61GwLSIZF7XN4Ehvdl26hMQp2DElA8XwSNtKsO2c9 SF7w== 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 q12si1310649edr.141.2020.10.22.09.50.33; Thu, 22 Oct 2020 09:50:55 -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 S2898177AbgJVM3Q (ORCPT + 99 others); Thu, 22 Oct 2020 08:29:16 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42894 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2507176AbgJVM3Q (ORCPT ); Thu, 22 Oct 2020 08:29:16 -0400 Received: from ZenIV.linux.org.uk (zeniv.linux.org.uk [IPv6:2002:c35c:fd02::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2A4CCC0613CE; Thu, 22 Oct 2020 05:29:16 -0700 (PDT) Received: from viro by ZenIV.linux.org.uk with local (Exim 4.92.3 #3 (Red Hat Linux)) id 1kVZiE-006Dx9-78; Thu, 22 Oct 2020 12:28:58 +0000 Date: Thu, 22 Oct 2020 13:28:58 +0100 From: Al Viro To: Luo Jiaxing Cc: akpm@linux-foundation.org, 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, gregkh@linuxfoundation.org, 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 v1 0/5] Introduce a new helper marco DEFINE_STORE_ATTRIBUTE at seq_file.c Message-ID: <20201022122858.GT3576660@ZenIV.linux.org.uk> References: <1603355997-32350-1-git-send-email-luojiaxing@huawei.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1603355997-32350-1-git-send-email-luojiaxing@huawei.com> Sender: Al Viro Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Oct 22, 2020 at 04:39:52PM +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. DEFINE_SHOW_ATTRIBUTE is a bloody bad idea; let's not replicate the garbage any further. If you want templates - C++ is over that way...