linux/drivers/infiniband/ulp
Joe Perches 45808361d4 RDMA: Manual changes for sysfs_emit and neatening
Make changes to use sysfs_emit in the RDMA code as cocci scripts can not
be written to handle _all_ the possible variants of various sprintf family
uses in sysfs show functions.

While there, make the code more legible and update its style to be more
like the typical kernel styles.

Miscellanea:

o Use intermediate pointers for dereferences
o Add and use string lookup functions
o return early when any intermediate call fails so normal return is
  at the bottom of the function
o mlx4/mcg.c:sysfs_show_group: use scnprintf to format intermediate strings

Link: https://lore.kernel.org/r/f5c9e4c9d8dafca1b7b70bd597ee7f8f219c31c8.1602122880.git.joe@perches.com
Signed-off-by: Joe Perches <joe@perches.com>
Acked-by: Jack Wang <jinpu.wang@cloud.ionos.com>
Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
2020-10-30 21:03:52 -03:00
..
ipoib RDMA: Convert sysfs device * show functions to use sysfs_emit() 2020-10-26 19:53:21 -03:00
iser treewide: Use fallthrough pseudo-keyword 2020-08-23 17:36:59 -05:00
isert IB/isert: add module param to set sg_tablesize for IO cmd 2020-10-28 13:00:49 -03:00
opa_vnic treewide: Use fallthrough pseudo-keyword 2020-08-23 17:36:59 -05:00
rtrs RDMA/rtrs-clt: Remove 'addr' from rtrs_clt_add_path_to_arr 2020-10-28 13:17:41 -03:00
srp RDMA: Manual changes for sysfs_emit and neatening 2020-10-30 21:03:52 -03:00
srpt IB/srpt: use new shared CQ mechanism 2020-07-29 09:10:32 -03:00
Makefile