linux/drivers/soc/qcom
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
..
apr.c soc: qcom: apr: make aprbus const 2024-02-13 23:38:03 -06:00
cmd-db.c soc: qcom: cmd-db: replace deprecated strncpy with strtomem 2024-04-21 12:26:47 -05:00
icc-bwmon.c soc: qcom: icc-bwmon: Convert to use maple tree register cache 2024-03-16 13:01:03 -05:00
ice.c soc: qcom: Explicitly include correct DT includes 2023-07-14 14:05:06 -07:00
Kconfig soc: qcom: add QCOM PBS driver 2024-02-01 16:26:55 -06:00
kryo-l2-accessors.c soc: qcom: Switch to EXPORT_SYMBOL_GPL() 2023-09-27 16:08:38 -07:00
llcc-qcom.c soc: qcom: llcc: Check return value on Broadcast_OR reg read 2024-02-13 23:43:39 -06:00
Makefile Merge branch '20240201204421.16992-2-quic_amelende@quicinc.com' into drivers-for-6.9 2024-02-01 16:27:52 -06:00
mdt_loader.c soc: qcom: mdt_loader: Fix split image detection 2023-06-13 10:13:01 -07:00
ocmem.c soc: qcom: ocmem: Convert to platform remove callback returning void 2023-10-02 11:30:10 -07:00
pdr_interface.c soc: qcom: Switch to EXPORT_SYMBOL_GPL() 2023-09-27 16:08:38 -07:00
pdr_internal.h soc: qcom: pdr: Make QMI message rules const 2022-10-17 13:19:40 -05:00
pmic_glink_altmode.c soc: qcom: pmic_glink_altmode: fix drm bridge use-after-free 2024-02-23 17:03:46 +02:00
pmic_glink.c USB / Thunderbolt changes for 6.10-rc1 2024-05-22 11:40:09 -07:00
pmic_pdcharger_ulog.c soc: qcom: mention intentionally broken module autoloading 2024-04-21 11:22:11 -05:00
pmic_pdcharger_ulog.h tracing/treewide: Remove second parameter of __assign_str() 2024-05-22 20:14:47 -04:00
qcom_aoss.c soc: qcom: aoss: add missing kerneldoc for qmp members 2024-03-03 20:01:51 -08:00
qcom_gsbi.c soc: qcom: qcom_gsbi: Convert to platform remove callback returning void 2023-10-02 11:30:19 -07:00
qcom_stats.c soc: qcom: qcom_stats: Add DSPs and apss subsystem stats 2024-03-17 22:19:08 -05:00
qcom-geni-se.c soc: qcom: geni-se: drop unused kerneldoc struct geni_wrapper param 2024-03-03 20:01:51 -08:00
qcom-pbs.c soc: qcom: add QCOM PBS driver 2024-02-01 16:26:55 -06:00
qmi_encdec.c soc: qcom: Switch to EXPORT_SYMBOL_GPL() 2023-09-27 16:08:38 -07:00
qmi_interface.c soc: qcom: Switch to EXPORT_SYMBOL_GPL() 2023-09-27 16:08:38 -07:00
ramp_controller.c ARM: SoC drivers for 6.5 2023-06-29 15:22:19 -07:00
rmtfs_mem.c soc: qcom: rmtfs_mem: Convert to platform remove callback returning void 2023-10-02 11:30:26 -07:00
rpm_master_stats.c soc: qcom: mention intentionally broken module autoloading 2024-04-21 11:22:11 -05:00
rpm-proc.c soc: qcom: Add RPM processor/subsystem driver 2023-07-13 22:18:57 -07:00
rpmh-internal.h soc: qcom: rpmh-rsc: Avoid unnecessary checks on irq-done response 2022-12-05 15:12:17 -06:00
rpmh-rsc.c soc: qcom: rpmh-rsc: Enhance check for VRM in-flight request 2024-04-21 12:11:40 -05:00
rpmh.c soc: qcom: Switch to EXPORT_SYMBOL_GPL() 2023-09-27 16:08:38 -07:00
smd-rpm.c soc: qcom: Switch to EXPORT_SYMBOL_GPL() 2023-09-27 16:08:38 -07:00
smem_state.c soc: qcom: smem_state: Add refcounting for the 'state->of_node' 2022-08-18 14:13:46 -05:00
smem.c soc: qcom: smem: remove hwspinlock from item get routine 2024-01-27 21:01:51 -06:00
smp2p.c soc: qcom: smp2p: fix all kernel-doc warnings 2024-01-23 09:37:20 -06:00
smsm.c soc: qcom: smsm: Convert to platform remove callback returning void 2023-10-02 11:30:35 -07:00
socinfo.c soc: qcom: socinfo: Add SMB2360 PMIC 2024-03-16 13:07:49 -05:00
spm.c soc: qcom: spm: fix building with CONFIG_REGULATOR=n 2024-03-03 19:54:47 -08:00
trace-aoss.h tracing/treewide: Remove second parameter of __assign_str() 2024-05-22 20:14:47 -04:00
trace-rpmh.h tracing/treewide: Remove second parameter of __assign_str() 2024-05-22 20:14:47 -04:00
wcnss_ctrl.c soc: qcom: Switch to EXPORT_SYMBOL_GPL() 2023-09-27 16:08:38 -07:00