1
0
Fork 0
mirror of synced 2025-03-06 20:59:54 +01:00
linux/drivers/infiniband/hw/hfi1
Steven Rostedt (Google) 2c92ca849f tracing/treewide: Remove second parameter of __assign_str()
With the rework of how the __string() handles dynamic strings where it
saves off the source string in field in the helper structure[1], the
assignment of that value to the trace event field is stored in the helper
value and does not need to be passed in again.

This means that with:

  __string(field, mystring)

Which use to be assigned with __assign_str(field, mystring), no longer
needs the second parameter and it is unused. With this, __assign_str()
will now only get a single parameter.

There's over 700 users of __assign_str() and because coccinelle does not
handle the TRACE_EVENT() macro I ended up using the following sed script:

  git grep -l __assign_str | while read a ; do
      sed -e 's/\(__assign_str([^,]*[^ ,]\) *,[^;]*/\1)/' $a > /tmp/test-file;
      mv /tmp/test-file $a;
  done

I then searched for __assign_str() that did not end with ';' as those
were multi line assignments that the sed script above would fail to catch.

Note, the same updates will need to be done for:

  __assign_str_len()
  __assign_rel_str()
  __assign_rel_str_len()

I tested this with both an allmodconfig and an allyesconfig (build only for both).

[1] https://lore.kernel.org/linux-trace-kernel/20240222211442.634192653@goodmis.org/

Link: https://lore.kernel.org/linux-trace-kernel/20240516133454.681ba6a0@rorschach.local.home

Cc: Masami Hiramatsu <mhiramat@kernel.org>
Cc: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Julia Lawall <Julia.Lawall@inria.fr>
Signed-off-by: Steven Rostedt (Google) <rostedt@goodmis.org>
Acked-by: Jani Nikula <jani.nikula@intel.com>
Acked-by: Christian König <christian.koenig@amd.com> for the amdgpu parts.
Acked-by: Thomas Hellström <thomas.hellstrom@linux.intel.com> #for
Acked-by: Rafael J. Wysocki <rafael@kernel.org> # for thermal
Acked-by: Takashi Iwai <tiwai@suse.de>
Acked-by: Darrick J. Wong <djwong@kernel.org>	# xfs
Tested-by: Guenter Roeck <linux@roeck-us.net>
2024-05-22 20:14:47 -04:00
..
affinity.c IB: Use capital "OR" for multiple licenses in SPDX 2023-09-11 14:14:00 +03:00
affinity.h IB: Use capital "OR" for multiple licenses in SPDX 2023-09-11 14:14:00 +03:00
aspm.c IB/hfi1: Reduce excessive aspm inlines 2019-06-28 22:34:26 -03:00
aspm.h IB: Use capital "OR" for multiple licenses in SPDX 2023-09-11 14:14:00 +03:00
chip.c IB/hfi1: Fix potential deadlock on &irq_src_lock and &dd->uctxt_lock 2023-10-25 11:12:43 +03:00
chip.h IB: Use capital "OR" for multiple licenses in SPDX 2023-09-11 14:14:00 +03:00
chip_registers.h IB: Use capital "OR" for multiple licenses in SPDX 2023-09-11 14:14:00 +03:00
common.h IB: Use capital "OR" for multiple licenses in SPDX 2023-09-11 14:14:00 +03:00
debugfs.c IB: Use capital "OR" for multiple licenses in SPDX 2023-09-11 14:14:00 +03:00
debugfs.h IB: Use capital "OR" for multiple licenses in SPDX 2023-09-11 14:14:00 +03:00
device.c IB: Use capital "OR" for multiple licenses in SPDX 2023-09-11 14:14:00 +03:00
device.h IB: Use capital "OR" for multiple licenses in SPDX 2023-09-11 14:14:00 +03:00
driver.c IB: Use capital "OR" for multiple licenses in SPDX 2023-09-11 14:14:00 +03:00
efivar.c RDMA/hfi1: Workaround truncation compilation error 2023-10-25 11:13:57 +03:00
efivar.h IB: Use capital "OR" for multiple licenses in SPDX 2023-09-11 14:14:00 +03:00
eprom.c IB: Use capital "OR" for multiple licenses in SPDX 2023-09-11 14:14:00 +03:00
eprom.h IB: Use capital "OR" for multiple licenses in SPDX 2023-09-11 14:14:00 +03:00
exp_rcv.c IB: Use capital "OR" for multiple licenses in SPDX 2023-09-11 14:14:00 +03:00
exp_rcv.h IB: Use capital "OR" for multiple licenses in SPDX 2023-09-11 14:14:00 +03:00
fault.c IB: Use capital "OR" for multiple licenses in SPDX 2023-09-11 14:14:00 +03:00
fault.h IB: Use capital "OR" for multiple licenses in SPDX 2023-09-11 14:14:00 +03:00
file_ops.c RDMA for v6.7 2023-11-02 15:20:30 -10:00
firmware.c IB: Use capital "OR" for multiple licenses in SPDX 2023-09-11 14:14:00 +03:00
hfi.h tracing/treewide: Remove second parameter of __assign_str() 2024-05-22 20:14:47 -04:00
init.c RDMA/hfi1: Remove redundant assignment to pointer ppd 2023-10-24 17:33:25 +03:00
intr.c IB: Use capital "OR" for multiple licenses in SPDX 2023-09-11 14:14:00 +03:00
iowait.c RDMA/hw/hfi1/iowait: Demote half-completed kernel-doc and fix formatting issue in another 2021-01-28 15:42:26 -04:00
iowait.h IB: Use capital "OR" for multiple licenses in SPDX 2023-09-11 14:14:00 +03:00
ipoib.h IB/hfi1: Fix alloc failure with larger txqueuelen 2022-01-28 11:12:15 -04:00
ipoib_main.c IB/hfi1: Remove generic .ndo_get_stats64 2024-05-05 17:10:38 +03:00
ipoib_rx.c IB/hfi1: Use skb_put_data() instead of skb_put/memcpy pair 2022-09-27 10:43:10 -03:00
ipoib_tx.c IB/hfi1: Remove open coded reference to skb frag offset 2023-09-18 14:24:15 +03:00
Kconfig RDMA/hfi1: Depend on !UML 2022-07-18 13:40:38 +03:00
mad.c IB: Use capital "OR" for multiple licenses in SPDX 2023-09-11 14:14:00 +03:00
mad.h IB: Use capital "OR" for multiple licenses in SPDX 2023-09-11 14:14:00 +03:00
Makefile RDMA/hfi1: Move user SDMA system memory pinning code to its own file 2023-08-22 17:31:45 +03:00
mmu_rb.c IB: Use capital "OR" for multiple licenses in SPDX 2023-09-11 14:14:00 +03:00
mmu_rb.h IB: Use capital "OR" for multiple licenses in SPDX 2023-09-11 14:14:00 +03:00
msix.c RDMA/hfi1: Convert to SPDX identifier 2021-08-25 14:56:48 -03:00
msix.h RDMA/hfi1: Convert to SPDX identifier 2021-08-25 14:56:48 -03:00
netdev.h IB/hfi1: allocate dummy net_device dynamically 2024-05-02 18:20:17 -07:00
netdev_rx.c IB/hfi1: allocate dummy net_device dynamically 2024-05-02 18:20:17 -07:00
opa_compat.h IB: Use capital "OR" for multiple licenses in SPDX 2023-09-11 14:14:00 +03:00
opfn.c IB/hfi1: Add TID RDMA retry timer 2019-02-05 18:07:43 -05:00
opfn.h IB/hfi1: Make opfn.h self sufficient 2019-04-24 11:31:49 -03:00
pcie.c RDMA/hfi1: Use RMW accessors for changing LNKCTL2 2024-05-05 16:11:40 +03:00
pin_system.c RDMA/hfi1: Move user SDMA system memory pinning code to its own file 2023-08-22 17:31:45 +03:00
pinning.h RDMA/hfi1: Move user SDMA system memory pinning code to its own file 2023-08-22 17:31:45 +03:00
pio.c IB/hfi1: Fix a memleak in init_credit_return 2024-01-25 11:56:27 +02:00
pio.h IB: Use capital "OR" for multiple licenses in SPDX 2023-09-11 14:14:00 +03:00
pio_copy.c IB: Use capital "OR" for multiple licenses in SPDX 2023-09-11 14:14:00 +03:00
platform.c IB: Use capital "OR" for multiple licenses in SPDX 2023-09-11 14:14:00 +03:00
platform.h IB: Use capital "OR" for multiple licenses in SPDX 2023-09-11 14:14:00 +03:00
qp.c IB: Use capital "OR" for multiple licenses in SPDX 2023-09-11 14:14:00 +03:00
qp.h IB: Use capital "OR" for multiple licenses in SPDX 2023-09-11 14:14:00 +03:00
qsfp.c IB: Use capital "OR" for multiple licenses in SPDX 2023-09-11 14:14:00 +03:00
qsfp.h IB: Use capital "OR" for multiple licenses in SPDX 2023-09-11 14:14:00 +03:00
rc.c IB: Use capital "OR" for multiple licenses in SPDX 2023-09-11 14:14:00 +03:00
rc.h IB/hfi1: Delay the release of destination mr for TID RDMA WRITE DATA 2019-04-03 15:27:30 -03:00
ruc.c IB: Use capital "OR" for multiple licenses in SPDX 2023-09-11 14:14:00 +03:00
sdma.c IB/hfi1: Fix sdma.h tx->num_descs off-by-one error 2024-02-04 11:40:06 +02:00
sdma.h IB: Use capital "OR" for multiple licenses in SPDX 2023-09-11 14:14:00 +03:00
sdma_txreq.h IB: Use capital "OR" for multiple licenses in SPDX 2023-09-11 14:14:00 +03:00
sysfs.c IB: Use capital "OR" for multiple licenses in SPDX 2023-09-11 14:14:00 +03:00
tid_rdma.c IB/hfi1: fix spellos and kernel-doc 2024-01-25 11:48:50 +02:00
tid_rdma.h IB/hfi1: Calculate flow weight based on QP MTU for TID RDMA 2019-11-06 13:15:36 -04:00
trace.c IB: Use capital "OR" for multiple licenses in SPDX 2023-09-11 14:14:00 +03:00
trace.h IB: Use capital "OR" for multiple licenses in SPDX 2023-09-11 14:14:00 +03:00
trace_ctxts.h IB: Use capital "OR" for multiple licenses in SPDX 2023-09-11 14:14:00 +03:00
trace_dbg.h tracing/treewide: Remove second parameter of __assign_str() 2024-05-22 20:14:47 -04:00
trace_ibhdrs.h IB: Use capital "OR" for multiple licenses in SPDX 2023-09-11 14:14:00 +03:00
trace_iowait.h IB/hfi1: Add static trace for iowait 2018-09-30 19:21:12 -06:00
trace_misc.h IB: Use capital "OR" for multiple licenses in SPDX 2023-09-11 14:14:00 +03:00
trace_mmu.h IB: Use capital "OR" for multiple licenses in SPDX 2023-09-11 14:14:00 +03:00
trace_rc.h IB: Use capital "OR" for multiple licenses in SPDX 2023-09-11 14:14:00 +03:00
trace_rx.h tracing/treewide: Remove second parameter of __assign_str() 2024-05-22 20:14:47 -04:00
trace_tid.h tracing/treewide: Remove second parameter of __assign_str() 2024-05-22 20:14:47 -04:00
trace_tx.h tracing/treewide: Remove second parameter of __assign_str() 2024-05-22 20:14:47 -04:00
uc.c IB: Use capital "OR" for multiple licenses in SPDX 2023-09-11 14:14:00 +03:00
ud.c IB: Use capital "OR" for multiple licenses in SPDX 2023-09-11 14:14:00 +03:00
user_exp_rcv.c RDMA/hfi1: Copy userspace arrays safely 2023-11-13 10:21:33 +02:00
user_exp_rcv.h IB/hfi1: Annotate struct tid_rb_node with __counted_by 2023-10-02 14:44:54 +03:00
user_pages.c IB: Use capital "OR" for multiple licenses in SPDX 2023-09-11 14:14:00 +03:00
user_sdma.c RDMA/hfi1: Copy userspace arrays safely 2023-11-13 10:21:33 +02:00
user_sdma.h IB: Use capital "OR" for multiple licenses in SPDX 2023-09-11 14:14:00 +03:00
verbs.c IB: Use capital "OR" for multiple licenses in SPDX 2023-09-11 14:14:00 +03:00
verbs.h IB: Use capital "OR" for multiple licenses in SPDX 2023-09-11 14:14:00 +03:00
verbs_txreq.c IB: Use capital "OR" for multiple licenses in SPDX 2023-09-11 14:14:00 +03:00
verbs_txreq.h IB: Use capital "OR" for multiple licenses in SPDX 2023-09-11 14:14:00 +03:00
vnic.h IB: Use capital "OR" for multiple licenses in SPDX 2023-09-11 14:14:00 +03:00
vnic_main.c IB: Use capital "OR" for multiple licenses in SPDX 2023-09-11 14:14:00 +03:00
vnic_sdma.c IB: Use capital "OR" for multiple licenses in SPDX 2023-09-11 14:14:00 +03:00