Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp5676324imu; Sun, 2 Dec 2018 00:38:12 -0800 (PST) X-Google-Smtp-Source: AFSGD/Uxx6wk63tF75BsRg16sEhpuf/O+diby7RxhwPZLplt6JsUYkDDs9kXZF1rUD9vg4gpTUeJ X-Received: by 2002:a17:902:64c1:: with SMTP id y1mr11601188pli.64.1543739891948; Sun, 02 Dec 2018 00:38:11 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1543739891; cv=none; d=google.com; s=arc-20160816; b=WYTvQzCSCUZtF4Hr4Maro1+Wxv6CaYOrUgBMtlCki62hDGUXA4R5QrKJt2uZDcCB+Z WLwkxu5xsvjpad5yvblrnn3PQQ2PK+/MAiYoRSqCHROm/6OF+bNTlX0zXzncHRNV3FFR I1wviY6KDCii/HssBk7HlwTBUGt9kh7GUw9Y052ScVZUfWTAlyRyA8CWaEqo/Vigfuut 7xXRPvrjGUVAfSGh9TpgaG9QNhX0uBKrhALEYFoX0oEji6w8ynNtHrc4Pgqc9JDjZOv6 a6zmHFXRsGj2hqFToX4K1x8+bQs6dY9sM/Gv2FC4kgHcojkYhAYP6AWQF6WrXVjkoX8T y77w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=3Uq69dIEkiIjTcqOHiKLHkPsY2FuJJIC6176FyVtaVA=; b=HzHkpf4awfN/l+zSICaQTVo60k+H/jQlvx8MZ6ogAyr8Y2OTskrTYnsNUP2sdf+7Ei +Qc/qKBewoINBq4LdWFkgFWmbKmUtEFn0mIbGwTN1nBLtZP06B4GGONE2YaP1bzH1Roy Lcr9BB/ORGbALBsOnYrR9inH1Ffpnk4Iepxopvei1J40OFIwx78J2WlwYyH9a+h8+7ql NuWZ4878lvmzxt5O2K8TM+X0GFcCTEG83amReoHi7BlnadxUaIBe96/xrKG3tXcu0FNn 3t1vsIfENkSaRoBMfKvQr2s83oFtzkPReJZLKfsJPhILQ+17j2je2bHuQXZ0OThuQsew VoxA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b="i7P/dJkp"; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id l6si9031687pgg.592.2018.12.02.00.37.56; Sun, 02 Dec 2018 00:38:11 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b="i7P/dJkp"; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1725795AbeLBIft (ORCPT + 99 others); Sun, 2 Dec 2018 03:35:49 -0500 Received: from mail-it1-f196.google.com ([209.85.166.196]:51259 "EHLO mail-it1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725763AbeLBIft (ORCPT ); Sun, 2 Dec 2018 03:35:49 -0500 Received: by mail-it1-f196.google.com with SMTP id x19so4824117itl.1 for ; Sun, 02 Dec 2018 00:35:48 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=3Uq69dIEkiIjTcqOHiKLHkPsY2FuJJIC6176FyVtaVA=; b=i7P/dJkp3BTfVnISsKTYx85nBVcf8kTbVIQnlVEquFFASE7BIrBKBEif27gKE+Y1dn i8sXuDuMChvAJXB6bExCCRJB+lvZrzLcXDib65utlG7UPDE6eYE66PH2Wjr01hlbOTX0 viZ3cmW6H06uX2U2ICZdeI50blTG6Lmh1MKb8uGsMJ19wFBblZTs+i4+pp54syjP8oeo Xbly5r7oujQmC5F1nIdiR0ScuwVRRrp03kFNbRjvHNj0xUtPYhsph6bWKOkSM6ofisHz V7X2C6M4UE2ZvrH4gvQEXFvZlHQCkCu04zjYW6diVydHhvBFCe6d4ekSw0jkc7PndRt4 7M2A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=3Uq69dIEkiIjTcqOHiKLHkPsY2FuJJIC6176FyVtaVA=; b=n7x3+iKhZjlgbudAvD56xiBB/fJm0deKWtTgphg++Ja1gsjwU6zxm1fJ5GcGRFDN4Z iCATIzyISy2l3zdjfFT1+4L9t7KqP4pCrd9lREXO6cDhTGgJnIxqGYEdNC6Y9qyE2whc 0EBEN38GjZaOS1CUPEpykvzmSUFuMj46v1xnCsHPYgacWLo5Qc+ZRYbGYbWJL1SqSTaS CFfEz2UL0ipH1m349Wau2aUH+G7ENOQE3Vg9kh0W0dMI8pwkUZM0GfcXaXWNG/VITtmO FfxGLtXfKl+UZVLXoKEhEJ68N6hgPsh0Afes9bdU5PF/JF4q6Yth93BaZpcuEC3Ciz9n NmJg== X-Gm-Message-State: AA+aEWbBEJEiJ2F4SafnSAlepdJD1dUG3wN7fD+aFbr199eyHHDd0qdW hCmzp2yMViGpdzUgJZbd/QOlol7udbKG9Q+3ST0= X-Received: by 2002:a02:6c90:: with SMTP id w138mr10651122jab.60.1543739742979; Sun, 02 Dec 2018 00:35:42 -0800 (PST) MIME-Version: 1.0 References: <20181202073202.10587-1-tiny.windzz@gmail.com> <20181202091543.73c74aea@bbrezillon> In-Reply-To: <20181202091543.73c74aea@bbrezillon> From: Frank Lee Date: Sun, 2 Dec 2018 16:35:20 +0800 Message-ID: Subject: Re: [PATCH v3] mtd: remove DEBUGFS_RO_ATTR() To: boris.brezillon@bootlin.com Cc: robert.jarzmik@free.fr, David Woodhouse , Brian Norris , =?UTF-8?B?TWFyZWsgVmHFoXV0?= , richard@nod.at, miquel.raynal@bootlin.com, Kees Cook , Shreeya Patel , linux-mtd@lists.infradead.org, linux-kernel@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sun, Dec 2, 2018 at 4:15 PM Boris Brezillon wrote: > > Looks like getting rid of DEBUGFS_RO_ATTR() is just one of the change > you do. I think you should change the subject line: > > "mtd: use DEFINE_SHOW_ATTRIBUTE() instead of open-coding it" > > This way it covers all of your changes. > > On Sun, 2 Dec 2018 02:32:02 -0500 > Yangtao Li wrote: > > > We already have the DEFINE_SHOW_ATTRIBUTE.There is no need to define > > ^ missing space > > > such a macro,so remove DEBUGFS_RO_ATTR.Also use DEFINE_SHOW_ATTRIBUTE > > ^ here as well > > > to simplify some code. > > If you go for the new subject line, you'll have to change this commit > message. How about the newer? MBR, Yangtao