From: "Rafael J. Wysocki" <rjw@rjwysocki.net>
To: kernel-janitors@vger.kernel.org
Subject: Re: [PATCH v3 -next] ACPI: APEI: EINJ: Use DEFINE_DEBUGFS_ATTRIBUTE for debugfs files
Date: Tue, 15 Jan 2019 18:43:00 +0000 [thread overview]
Message-ID: <2143946.D49o9LbKFd@aspire.rjw.lan> (raw)
In-Reply-To: <1546435088-45448-1-git-send-email-yuehaibing@huawei.com>
On Monday, January 14, 2019 11:51:51 AM CET Borislav Petkov wrote:
> On Wed, Jan 02, 2019 at 01:18:08PM +0000, YueHaibing wrote:
> > Use DEFINE_DEBUGFS_ATTRIBUTE rather than DEFINE_SIMPLE_ATTRIBUTE
> > for debugfs files to make debugfs_simple_attr.cocci warnings go away.
> >
> > Semantic patch information:
> > Rationale: DEFINE_SIMPLE_ATTRIBUTE + debugfs_create_file()
> > imposes some significant overhead as compared to
> > DEFINE_DEBUGFS_ATTRIBUTE + debugfs_create_file_unsafe().
> >
> > Generated by: scripts/coccinelle/api/debugfs/debugfs_simple_attr.cocci
> >
> > Signed-off-by: YueHaibing <yuehaibing@huawei.com>
> > ---
> > v3: add semantic patch information
> > v2: fix patch title and log
> > ---
> > drivers/acpi/apei/einj.c | 17 +++++++++--------
> > 1 file changed, 9 insertions(+), 8 deletions(-)
>
> Acked-by: Borislav Petkov <bp@suse.de>
Patch applied, thanks!
prev parent reply other threads:[~2019-01-15 18:43 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-01-02 13:18 [PATCH v3 -next] ACPI: APEI: EINJ: Use DEFINE_DEBUGFS_ATTRIBUTE for debugfs files YueHaibing
2019-01-14 10:51 ` Borislav Petkov
2019-01-15 18:43 ` Rafael J. Wysocki [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=2143946.D49o9LbKFd@aspire.rjw.lan \
--to=rjw@rjwysocki.net \
--cc=kernel-janitors@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox