From: Joe Perches <joe@perches.com>
To: Jason Gunthorpe <jgg@ziepe.ca>
Cc: Doug Ledford <dledford@redhat.com>,
Danil Kipnis <danil.kipnis@cloud.ionos.com>,
Jack Wang <jinpu.wang@cloud.ionos.com>,
linux-rdma@vger.kernel.org
Subject: Re: [PATCH 2/4] RDMA: Convert sysfs kobject * show functions to use sysfs_emit()
Date: Fri, 09 Oct 2020 09:25:31 -0700 [thread overview]
Message-ID: <16bbd7f0b23c8978f0c792739e7f77a7f7bd216a.camel@perches.com> (raw)
In-Reply-To: <20201009140938.GR5177@ziepe.ca>
On Fri, 2020-10-09 at 11:09 -0300, Jason Gunthorpe wrote:
> On Wed, Oct 07, 2020 at 07:36:25PM -0700, Joe Perches wrote:
> > Done with cocci script:
> >
> > @@
> > identifier k_show;
> > identifier arg1, arg2, arg3;
> > @@
> > ssize_t k_show(struct kobject *
> > - arg1
> > + kobj
> > , struct kobj_attribute *
> > - arg2
> > + attr
> > , char *
> > - arg3
> > + buf
> > )
> > {
> > ...
> > (
> > - arg1
> > + kobj
> > - arg2
> > + attr
> > - arg3
> > + buf
> > )
> > ...
> > }
>
> This is nice
The 1/4 patch for device * cannot do this as there are
conflicts with dev/device naming within the functions.
It'd be nice to do the conversions though.
Maybe rename
dev->ibdev
device->dev
so that all sysfs _show function are consistently
ssize_t <foo>_show(struct device *dev, struct device_attribute *attr, char *buf);
next prev parent reply other threads:[~2020-10-09 16:25 UTC|newest]
Thread overview: 33+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-10-08 2:36 [PATCH-next 0/4] RDMA: sprintf to sysfs_emit conversions Joe Perches
2020-10-08 2:36 ` Joe Perches
2020-10-08 2:36 ` [PATCH 1/4] RDMA: Convert sysfs device * show functions to use sysfs_emit() Joe Perches
2020-10-09 14:07 ` Jason Gunthorpe
2020-10-08 2:36 ` [PATCH 2/4] RDMA: Convert sysfs kobject " Joe Perches
2020-10-09 14:09 ` Jason Gunthorpe
2020-10-09 16:25 ` Joe Perches [this message]
2020-10-12 5:21 ` Jinpu Wang
2020-10-08 2:36 ` [PATCH 3/4] RDMA: manual changes for sysfs_emit and neatening Joe Perches
2020-10-09 15:20 ` Jason Gunthorpe
2020-10-12 5:30 ` Jinpu Wang
2020-10-28 17:25 ` Jason Gunthorpe
2020-10-28 17:54 ` Joe Perches
2020-10-28 18:23 ` Jason Gunthorpe
2020-10-29 17:16 ` Joe Perches
2020-10-31 0:04 ` Jason Gunthorpe
2020-10-08 2:36 ` [PATCH 4/4] RDMA: Convert various random sprintf sysfs _show uses to sysfs_emit Joe Perches
2020-10-09 15:27 ` Jason Gunthorpe
2020-10-12 5:25 ` Jinpu Wang
2020-10-28 18:12 ` Jason Gunthorpe
2020-10-28 18:22 ` Joe Perches
2020-10-08 5:41 ` [PATCH-next 0/4] RDMA: sprintf to sysfs_emit conversions Leon Romanovsky
2020-10-08 5:41 ` Leon Romanovsky
2020-10-08 5:52 ` Joe Perches
2020-10-08 5:52 ` Joe Perches
2020-10-08 7:02 ` Leon Romanovsky
2020-10-08 7:02 ` Leon Romanovsky
2020-10-15 5:29 ` Joe Perches
2020-10-15 5:29 ` Joe Perches
2020-10-26 22:54 ` Jason Gunthorpe
2020-10-26 22:54 ` Jason Gunthorpe
2020-10-28 18:27 ` Jason Gunthorpe
2020-10-28 18:27 ` Jason Gunthorpe
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=16bbd7f0b23c8978f0c792739e7f77a7f7bd216a.camel@perches.com \
--to=joe@perches.com \
--cc=danil.kipnis@cloud.ionos.com \
--cc=dledford@redhat.com \
--cc=jgg@ziepe.ca \
--cc=jinpu.wang@cloud.ionos.com \
--cc=linux-rdma@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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.