linux-imx/drivers/net/wireless/ath/ath10k
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 wifi: ath10k: Refer to INTX instead of LEGACY 2024-04-25 12:53:32 -05:00
ahb.h
bmi.c wifi: ath10k: Update Qualcomm Innovation Center, Inc. copyrights 2023-11-30 18:59:24 +02:00
bmi.h
ce.c wifi: ath10k: Update Qualcomm Innovation Center, Inc. copyrights 2023-11-30 18:59:24 +02:00
ce.h wifi: ath10k: Annotate struct ath10k_ce_ring with __counted_by 2023-09-21 11:10:17 +03:00
core.c ath.git patches for v6.10 2024-05-03 13:30:19 +03:00
core.h ath.git patches for v6.10 2024-05-03 13:30:19 +03:00
coredump.c wifi: ath10k: Update Qualcomm Innovation Center, Inc. copyrights 2023-11-30 18:59:24 +02:00
coredump.h wifi: ath10k: Fix enum ath10k_fw_crash_dump_type kernel-doc 2024-01-19 19:43:11 +02:00
debug.c wifi: ath10k: Update Qualcomm Innovation Center, Inc. copyrights 2023-11-30 18:59:24 +02:00
debug.h
debugfs_sta.c wifi: ath10k: Fix an error code problem in ath10k_dbg_sta_write_peer_debug_trigger() 2024-04-24 18:40:09 +03:00
hif.h
htc.c wifi: ath10k: Update Qualcomm Innovation Center, Inc. copyrights 2023-11-30 18:59:24 +02:00
htc.h wifi: ath10k: Use DECLARE_FLEX_ARRAY() for ath10k_htc_record 2023-11-30 19:02:23 +02:00
htt_rx.c wifi: mac80211: rework RX timestamp flags 2023-12-21 20:35:15 +01:00
htt_tx.c wifi: ath10k: Update Qualcomm Innovation Center, Inc. copyrights 2023-11-30 18:59:24 +02:00
htt.c wifi: ath10k: replace ENOTSUPP with EOPNOTSUPP 2024-01-18 07:50:08 +02:00
htt.h wifi: ath10k: Fix htt_data_tx_completion kernel-doc warning 2024-01-19 19:43:11 +02:00
hw.c wifi: ath10k: Update Qualcomm Innovation Center, Inc. copyrights 2023-11-30 18:59:24 +02:00
hw.h wifi: ath10k: drop fw.eboard file name 2024-04-25 13:21:51 +03:00
Kconfig
mac.c wifi: mac80211: check beacon countdown is complete on per link basis 2024-02-21 15:19:03 +01:00
mac.h
Makefile
p2p.c
p2p.h
pci.c pci-v6.10-changes 2024-05-21 10:09:28 -07:00
pci.h wifi: ath10k: Refer to INTX instead of LEGACY 2024-04-25 12:53:32 -05:00
qmi_wlfw_v01.c wifi: ath10k: Update Qualcomm Innovation Center, Inc. copyrights 2023-11-30 18:59:24 +02:00
qmi_wlfw_v01.h wifi: ath10k: Update Qualcomm Innovation Center, Inc. copyrights 2023-11-30 18:59:24 +02:00
qmi.c wifi: ath10k: Update Qualcomm Innovation Center, Inc. copyrights 2023-11-30 18:59:24 +02:00
qmi.h
rx_desc.h wifi: ath10k: Update Qualcomm Innovation Center, Inc. copyrights 2023-11-30 18:59:24 +02:00
sdio.c MMC core: 2024-05-16 08:56:49 -07:00
sdio.h
snoc.c ath.git patches for v6.10 2024-05-03 13:30:19 +03:00
snoc.h
spectral.c wifi: ath10k: consistently use kstrtoX_from_user() functions 2023-10-02 19:54:51 +03:00
spectral.h
swap.c
swap.h
targaddrs.h wifi: ath10k: populate board data for WCN3990 2024-04-25 13:21:50 +03:00
testmode_i.h
testmode.c
testmode.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
txrx.c
txrx.h
usb.c wifi: ath10k: allocate dummy net_device dynamically 2024-04-24 12:00:17 +01:00
usb.h wifi: ath10k: Update Qualcomm Innovation Center, Inc. copyrights 2023-11-30 18:59:24 +02:00
wmi-ops.h
wmi-tlv.c wifi: ath10k: replace ENOTSUPP with EOPNOTSUPP 2024-01-18 07:50:08 +02:00
wmi-tlv.h wifi: ath10k: correctly document enum wmi_tlv_tx_pause_id 2024-01-19 19:43:11 +02:00
wmi.c wifi: ath10k: poll service ready message before failing 2024-03-08 17:06:43 +02:00
wmi.h wifi: ath10k: add missing wmi_10_4_feature_mask documentation 2024-01-19 19:43:11 +02:00
wow.c wifi: ath10k: Update Qualcomm Innovation Center, Inc. copyrights 2023-11-30 18:59:24 +02:00
wow.h