1
0
Fork 0
mirror of synced 2025-03-06 20:59:54 +01:00
linux/drivers/net/wireless/ath/ath12k
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
..
acpi.c wifi: ath12k: ACPI band edge channel power support 2024-04-23 12:29:15 +03:00
acpi.h wifi: ath12k: ACPI band edge channel power support 2024-04-23 12:29:15 +03:00
ce.c wifi: ath12k: Fix spelling mistakes in warning messages and comments 2023-02-17 18:04:29 +02:00
ce.h wifi: ath12k: Remove unused declarations 2023-08-25 10:37:51 +03:00
core.c wifi: ath12k: ACPI TAS support 2024-04-23 12:29:14 +03:00
core.h wifi: ath12k: add support to handle beacon miss for WCN7850 2024-04-24 18:32:09 +03:00
dbring.c wifi: ath12k: Update Qualcomm Innovation Center, Inc. copyrights 2023-11-30 18:59:24 +02:00
dbring.h
debug.c wifi: ath12k: Update Qualcomm Innovation Center, Inc. copyrights 2023-11-30 18:59:24 +02:00
debug.h
debugfs.c wifi: ath12k: debugfs: radar simulation support 2024-04-04 13:07:06 +03:00
debugfs.h wifi: ath12k: initial debugfs support 2024-04-04 13:07:06 +03:00
dp.c wifi: ath12k: fix flush failure in recovery scenarios 2024-04-30 16:35:26 +03:00
dp.h wifi: ath12k: displace the Tx and Rx descriptor in cookie conversion table 2024-04-22 15:06:31 +03:00
dp_mon.c wifi: ath12k: don't use %pK in dmesg format strings 2024-04-18 18:24:08 +03:00
dp_mon.h wifi: ath12k: refactor DP Rxdma ring structure 2023-11-29 13:27:07 +02:00
dp_rx.c wifi: ath12k: no need to handle pktlog during suspend/resume 2024-04-23 12:27:15 +03:00
dp_rx.h wifi: ath12k: no need to handle pktlog during suspend/resume 2024-04-23 12:27:15 +03:00
dp_tx.c wifi: ath12k: fix desc address calculation in wbm tx completion 2024-03-20 12:06:10 +02:00
dp_tx.h
fw.c wifi: ath12k: Read board id to support split-PHY QCN9274 2024-02-02 14:32:52 +02:00
fw.h wifi: ath12k: Read board id to support split-PHY QCN9274 2024-02-02 14:32:52 +02:00
hal.c wifi: ath12k: add MAC id support in WBM error path 2024-02-02 14:32:51 +02:00
hal.h wifi: ath12k: fix hal_rx_buf_return_buf_manager documentation 2024-04-04 13:10:48 +03:00
hal_desc.h wifi: ath12k: add support for BA1024 2024-01-18 07:52:02 +02:00
hal_rx.c wifi: ath12k: add support for BA1024 2024-01-18 07:52:02 +02:00
hal_rx.h wifi: ath12k: add 320 MHz bandwidth enums 2023-12-01 18:04:05 +02:00
hal_tx.c
hal_tx.h
hif.h wifi: ath12k: support suspend/resume 2024-04-23 12:27:16 +03:00
htc.c wifi: ath12k: don't use %pK in dmesg format strings 2024-04-18 18:24:08 +03:00
htc.h
hw.c wifi: ath12k: ACPI TAS support 2024-04-23 12:29:14 +03:00
hw.h wifi: ath12k: ACPI TAS support 2024-04-23 12:29:14 +03:00
Kconfig wifi: ath12k: initial debugfs support 2024-04-04 13:07:06 +03:00
mac.c wifi: ath12k: fix the problem that down grade phy mode operation 2024-05-02 13:15:38 +03:00
mac.h wifi: ath12k: add support to handle beacon miss for WCN7850 2024-04-24 18:32:09 +03:00
Makefile wifi: ath12k: ACPI TAS support 2024-04-23 12:29:14 +03:00
mhi.c wifi: ath12k: set mlo_capable_flags based on QMI PHY capability 2024-04-24 18:34:11 +03:00
mhi.h wifi: ath12k: support suspend/resume 2024-04-23 12:27:16 +03:00
p2p.c wifi: ath12k: Add additional checks for vif and sta iterators 2024-04-10 17:12:15 +03:00
p2p.h wifi: ath12k: Add additional checks for vif and sta iterators 2024-04-10 17:12:15 +03:00
pci.c wifi: ath12k: support suspend/resume 2024-04-23 12:27:16 +03:00
pci.h wifi: ath12k: support suspend/resume 2024-04-23 12:27:16 +03:00
peer.c
peer.h wifi: ath12k: Update Qualcomm Innovation Center, Inc. copyrights 2023-11-30 18:59:24 +02:00
qmi.c wifi: ath12k: check M3 buffer size as well whey trying to reuse it 2024-04-30 16:34:00 +03:00
qmi.h wifi: ath12k: read single_chip_mlo_support parameter from QMI PHY capability 2024-04-24 18:34:10 +03:00
reg.c wifi: ath12k: modify regulatory support for single wiphy architecture 2024-04-10 17:12:15 +03:00
reg.h wifi: ath12k: avoid repeated hw access from ar 2023-12-01 18:04:45 +02:00
rx_desc.h wifi: ath12k: add MAC id support in WBM error path 2024-02-02 14:32:51 +02:00
trace.c
trace.h tracing/treewide: Remove second parameter of __assign_str() 2024-05-22 20:14:47 -04:00
wmi.c wifi: ath12k: add support to handle beacon miss for WCN7850 2024-04-24 18:32:09 +03:00
wmi.h wifi: ath12k: add support to handle beacon miss for WCN7850 2024-04-24 18:32:09 +03:00