linux/drivers/net/wireless/ath/ath11k
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
..
ahb.c ath.git patches for v6.10 2024-05-03 13:30:19 +03:00
ahb.h
ce.c
ce.h
core.c wifi: ath11k: support hibernation 2024-04-09 14:43:29 +03:00
core.h ath.git patches for v6.10 2024-05-03 13:30:19 +03:00
dbring.c
dbring.h
debug.c
debug.h
debugfs.c wifi: ath11k: fix soc_dp_stats debugfs file permission 2024-03-08 17:05:59 +02:00
debugfs.h wireless fixes for v6.8-rc2 2024-01-23 08:38:13 -08:00
debugfs_htt_stats.c
debugfs_htt_stats.h
debugfs_sta.c
debugfs_sta.h
dp.c
dp.h
dp_rx.c
dp_rx.h
dp_tx.c wifi: ath11k: replace ENOTSUPP with EOPNOTSUPP 2024-01-18 07:50:08 +02:00
dp_tx.h
fw.c
fw.h
hal.c
hal.h wifi: ath11k: fix hal_rx_buf_return_buf_manager documentation 2024-04-04 13:10:47 +03:00
hal_desc.h
hal_rx.c wifi: ath11k: replace ENOTSUPP with EOPNOTSUPP 2024-01-18 07:50:08 +02:00
hal_rx.h
hal_tx.c
hal_tx.h
hif.h wifi: ath11k: support hibernation 2024-04-09 14:43:29 +03:00
htc.c
htc.h
hw.c wifi: ath11k: support 2 station interfaces 2024-02-15 13:22:46 +02:00
hw.h wifi: ath11k: support 2 station interfaces 2024-02-15 13:22:46 +02:00
Kconfig
mac.c ath.git patches for v6.10 2024-05-03 13:30:19 +03:00
mac.h wifi: ath11k: fill parameters for vdev set tpc power WMI command 2024-01-14 16:59:10 +02:00
Makefile wifi: ath11k: implement handling of P2P NoA event 2024-03-14 18:41:24 +02:00
mhi.c wifi: ath11k: support hibernation 2024-04-09 14:43:29 +03:00
mhi.h wifi: ath11k: support hibernation 2024-04-09 14:43:29 +03:00
p2p.c wifi: ath11k: implement handling of P2P NoA event 2024-03-14 18:41:24 +02:00
p2p.h wifi: ath11k: implement handling of P2P NoA event 2024-03-14 18:41:24 +02:00
pci.c wifi: ath11k: support hibernation 2024-04-09 14:43:29 +03:00
pci.h wifi: ath11k: do not process consecutive RDDM event 2024-03-21 13:40:18 +02:00
pcic.c wifi: ath11k: allocate dummy net_device dynamically 2024-04-24 12:00:17 +01:00
pcic.h
peer.c
peer.h
qmi.c wifi: ath11k: support hibernation 2024-04-09 14:43:29 +03:00
qmi.h
reg.c wifi: ath11k: save power spectral density(PSD) of regulatory rule 2024-01-14 16:59:09 +02:00
reg.h wifi: ath11k: store cur_regulatory_info for each radio 2024-01-14 16:59:08 +02:00
rx_desc.h
spectral.c
spectral.h
testmode.c
testmode.h
testmode_i.h
thermal.c wifi: ath: Convert sprintf/snprintf to sysfs_emit 2024-03-25 12:49:27 +02:00
thermal.h
trace.c
trace.h tracing/treewide: Remove second parameter of __assign_str() 2024-05-22 20:14:47 -04:00
wmi.c ath.git patches for v6.10 2024-05-03 13:30:19 +03:00
wmi.h wifi: ath11k: remove duplicate definitions in wmi.h 2024-03-21 13:40:49 +02:00
wow.c
wow.h