linux/drivers/misc/mei
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
..
gsc_proxy mei: gsc_proxy: match component when GSC is on different bus 2024-03-05 14:30:09 +00:00
hdcp mei: hdcp: add dependency on Xe driver 2024-01-30 16:19:59 -08:00
pxp mei: pxp: match against PCI_CLASS_DISPLAY_OTHER 2024-04-23 21:44:13 -07:00
bus-fixup.c mei: obtain firmware version only on gsc. 2023-07-30 14:17:27 +02:00
bus.c mei: bus: constify the struct mei_cl_bus_type usage 2024-04-23 21:33:16 -07:00
client.c misc: mei: client.c: fix problem of return '-EOVERFLOW' in mei_cl_write 2023-11-27 13:38:29 +00:00
client.h mei: add timeout to send 2022-11-23 19:43:33 +01:00
debugfs.c mei: debugfs: add pxp mode to devstate in debugfs 2022-09-12 15:23:11 +03:00
dma-ring.c misc: mei: dma-ring.c: fix kernel-doc warnings 2023-10-18 10:01:33 +02:00
gsc-me.c mei: gsc: remove unnecessary NULL pointer checks 2024-03-05 14:28:02 +00:00
hbm.c misc: mei: hbm.c: fix kernel-doc warnings 2023-10-18 10:01:33 +02:00
hbm.h
hw-me-regs.h mei: me: add lunar lake point M DID 2024-04-23 21:44:16 -07:00
hw-me.c mei: me: emit error only if reset was unexpected 2023-10-18 10:01:34 +02:00
hw-me.h mei: docs: add missing entries to kdoc in struct mei_cfg_idx 2023-10-18 10:01:33 +02:00
hw-txe-regs.h
hw-txe.c Char/Misc and other driver changes for 6.1-rc1 2022-10-08 08:56:37 -07:00
hw-txe.h
hw.h mei: Avoid a bunch of -Wflex-array-member-not-at-end warnings 2024-04-11 15:13:30 +02:00
init.c mei: me: emit error only if reset was unexpected 2023-10-18 10:01:34 +02:00
interrupt.c misc: mei: interrupt.c: fix kernel-doc warnings 2023-10-18 10:01:34 +02:00
Kconfig mei: rework Kconfig dependencies 2023-12-15 17:02:15 +01:00
main.c misc: mei: main.c: fix kernel-doc warnings 2023-10-18 10:01:34 +02:00
Makefile mei: Add MEI hardware support for IVSC device 2023-12-07 11:41:40 +09:00
mei-trace.c
mei-trace.h tracing/treewide: Remove second parameter of __assign_str() 2024-05-22 20:14:47 -04:00
mei_dev.h mei: me: emit error only if reset was unexpected 2023-10-18 10:01:34 +02:00
mkhi.h mei: mkhi: add memory ready command 2022-09-12 15:23:11 +03:00
pci-me.c mei: me: add lunar lake point M DID 2024-04-23 21:44:16 -07:00
pci-txe.c mei: txe: remove unnecessary NULL pointer checks 2024-03-05 14:28:02 +00:00
platform-vsc.c mei: vsc: Unregister interrupt handler for system suspend 2024-04-11 15:15:53 +02:00
vsc-fw-loader.c mei: vsc: Rework firmware image names 2023-12-15 17:01:37 +01:00
vsc-tp.c mei: vsc: Unregister interrupt handler for system suspend 2024-04-11 15:15:53 +02:00
vsc-tp.h mei: vsc: Unregister interrupt handler for system suspend 2024-04-11 15:15:53 +02:00