linux-stable/drivers/usb/musb
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
..
cppi_dma.h usb: musb: Remove unused function declarations 2023-08-08 10:36:43 +02:00
da8xx.c usb: musb: Add missing of.h include 2023-10-10 08:55:20 +02:00
jz4740.c usb: Explicitly include correct DT includes 2023-07-25 18:20:02 +02:00
Kconfig usb: musb: mpfs: convert SOC_MICROCHIP_POLARFIRE to ARCH_MICROCHIP_POLARFIRE 2023-03-16 12:14:33 +01:00
Makefile usb: musb: Drop old unused am35x glue layer 2022-11-29 08:56:09 +01:00
mediatek.c usb: Explicitly include correct DT includes 2023-07-25 18:20:02 +02:00
mpfs.c usb: Explicitly include correct DT includes 2023-07-25 18:20:02 +02:00
musb_core.c usb: musb: Fix deferred probing 2023-08-04 14:45:58 +02:00
musb_core.h ARM/musb: omap2: Remove global GPIO numbers from TUSB6010 2023-05-24 15:01:59 +02:00
musb_cppi41.c usb: musb: cppi41: Switch to use dev_err_probe() helper 2022-09-27 10:36:06 +02:00
musb_debug.h
musb_debugfs.c usb: musb: Modify the "HWVers" register address 2023-10-02 13:37:08 +02:00
musb_dma.h usb: musb: Remove unused function declarations 2023-08-08 10:36:43 +02:00
musb_dsps.c usb: musb: dsps: Fix vbus vs tps65217-charger irq conflict 2023-10-02 13:54:28 +02:00
musb_gadget.c usb: musc: Remove unused list 'buffers' 2024-05-10 10:36:02 +01:00
musb_gadget.h
musb_gadget_ep0.c usb: musb: gadget: Use fallthrough pseudo-keyword 2020-10-10 12:32:29 +02:00
musb_host.c usb: musb: Get the musb_qh poniter after musb_giveback 2023-10-02 13:37:57 +02:00
musb_host.h usb: musb: Remove duplicate declaration of functions 2021-05-10 16:20:41 +02:00
musb_io.h
musb_regs.h
musb_trace.c
musb_trace.h tracing/treewide: Remove second parameter of __assign_str() 2024-05-22 20:14:47 -04:00
musb_virthub.c usb: musb: Allow running without CONFIG_USB_PHY 2022-11-09 12:39:13 +01:00
musbhsdma.c usb: musb: dma: Remove unused variable 2021-02-05 10:27:18 +01:00
omap2430.c usb: musb: omap2430: Convert to platform remove callback returning void 2023-04-05 19:07:42 +02:00
omap2430.h
sunxi.c usb: Explicitly include correct DT includes 2023-07-25 18:20:02 +02:00
tusb6010.c usb: musb: Use read_poll_timeout() 2023-07-25 18:18:18 +02:00
tusb6010.h
tusb6010_omap.c
ux500.c usb: musb: ux500: Convert to platform remove callback returning void 2023-04-05 19:07:42 +02:00
ux500_dma.c