linux/drivers/net/dsa
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
..
b53 net: dsa: b53: provide own phylink MAC operations 2024-04-25 11:46:38 -07:00
hirschmann net: dsa: hellcreek: Convert to gettimex64() 2024-03-29 10:44:17 +00:00
microchip net: dsa: microchip: Correct initialization order for KSZ88x3 ports 2024-05-17 12:25:22 -07:00
mv88e6xxx tracing/treewide: Remove second parameter of __assign_str() 2024-05-22 20:14:47 -04:00
ocelot net: dsa: felix: flower: validate control flags 2024-04-18 17:08:30 -07:00
qca net: dsa: qca8k: provide own phylink MAC operations 2024-04-16 10:23:38 +02:00
realtek net: dsa: realtek: provide own phylink MAC operations 2024-04-30 13:50:01 +02:00
sja1105 net: dsa: sja1105: flower: validate control flags 2024-04-18 17:08:37 -07:00
xrs700x net: dsa: xrs700x: fix missing initialisation of ds->phylink_mac_ops 2024-04-19 12:11:17 +01:00
bcm_sf2_cfp.c
bcm_sf2_regs.h
bcm_sf2.c net: dsa: bcm_sf2: provide own phylink MAC operations 2024-04-17 18:27:42 -07:00
bcm_sf2.h
dsa_loop_bdinfo.c net: fill in MODULE_DESCRIPTION()s for dsa_loop_bdinfo 2024-02-09 14:12:02 -08:00
dsa_loop.c
dsa_loop.h
Kconfig
lan9303_i2c.c
lan9303_mdio.c
lan9303-core.c net: dsa: lan9303: use ethtool_puts() for lan9303_get_strings() 2024-04-26 12:37:02 -07:00
lan9303.h
lantiq_gswip.c net: dsa: lantiq_gswip: provide own phylink MAC operations 2024-04-16 10:23:51 +02:00
lantiq_pce.h
Makefile
mt7530-mdio.c net: dsa: mt7530-mdio: read PHY address of switch from device tree 2024-04-23 10:32:40 +02:00
mt7530-mmio.c
mt7530.c net: dsa: mt7530: detect PHY muxing when PHY is defined on switch MDIO bus 2024-05-07 11:34:36 +02:00
mt7530.h net: dsa: mt7530: get rid of mac_port_validate member of mt753x_info 2024-04-24 11:57:03 +01:00
mv88e6060.c
mv88e6060.h
rzn1_a5psw.c net: dsa: rzn1_a5psw: provide own phylink MAC operations 2024-04-17 18:29:30 -07:00
rzn1_a5psw.h
vitesse-vsc73xx-core.c net: dsa: vsc73xx: Add define for max num of ports 2024-04-22 14:21:32 -07:00
vitesse-vsc73xx-platform.c
vitesse-vsc73xx-spi.c
vitesse-vsc73xx.h net: dsa: vsc73xx: add structure descriptions 2024-04-22 14:21:32 -07:00