linux/drivers/net/ethernet
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
..
3com net: annotate data-races around dev->if_port 2024-05-08 18:51:30 -07:00
8390 net: annotate data-races around dev->if_port 2024-05-08 18:51:30 -07:00
actions
adaptec
adi net: ethernet: adi: adin1110: Replace linux/gpio.h by proper one 2024-05-10 18:51:34 -07:00
aeroflex
agere net: annotate writes on dev->mtu from ndo_change_mtu() 2024-05-07 16:19:14 -07:00
alacritech
allwinner
alteon net: annotate writes on dev->mtu from ndo_change_mtu() 2024-05-07 16:19:14 -07:00
altera net: annotate writes on dev->mtu from ndo_change_mtu() 2024-05-07 16:19:14 -07:00
amazon net: ena: Change initial rx_usec interval 2024-05-13 14:42:04 -07:00
amd pci-v6.10-changes 2024-05-21 10:09:28 -07:00
apm net: annotate writes on dev->mtu from ndo_change_mtu() 2024-05-07 16:19:14 -07:00
apple
aquantia pci-v6.10-changes 2024-05-21 10:09:28 -07:00
arc
asix
atheros pci-v6.10-changes 2024-05-21 10:09:28 -07:00
broadcom bnxt_en: silence clang build warning 2024-05-10 18:16:35 -07:00
brocade net: annotate writes on dev->mtu from ndo_change_mtu() 2024-05-07 16:19:14 -07:00
cadence net: annotate writes on dev->mtu from ndo_change_mtu() 2024-05-07 16:19:14 -07:00
calxeda net: annotate writes on dev->mtu from ndo_change_mtu() 2024-05-07 16:19:14 -07:00
cavium net: annotate writes on dev->mtu from ndo_change_mtu() 2024-05-07 16:19:14 -07:00
chelsio Kbuild updates for v6.10 2024-05-18 12:39:20 -07:00
cirrus
cisco net: annotate writes on dev->mtu from ndo_change_mtu() 2024-05-07 16:19:14 -07:00
cortina Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net 2024-05-14 10:53:19 -07:00
davicom
dec
dlink net: annotate writes on dev->mtu from ndo_change_mtu() 2024-05-07 16:19:14 -07:00
emulex
engleder xsk: use generic DMA sync shortcut instead of a custom one 2024-05-08 08:51:20 +02:00
ezchip
faraday net: annotate writes on dev->mtu from ndo_change_mtu() 2024-05-07 16:19:14 -07:00
freescale tracing/treewide: Remove second parameter of __assign_str() 2024-05-22 20:14:47 -04:00
fujitsu
fungible tracing/treewide: Remove second parameter of __assign_str() 2024-05-22 20:14:47 -04:00
google gve: Use ethtool_sprintf/puts() to fill stats strings 2024-05-10 18:40:49 -07:00
hisilicon tracing/treewide: Remove second parameter of __assign_str() 2024-05-22 20:14:47 -04:00
huawei net: annotate writes on dev->mtu from ndo_change_mtu() 2024-05-07 16:19:14 -07:00
i825xx
ibm net: annotate writes on dev->mtu from ndo_change_mtu() 2024-05-07 16:19:14 -07:00
intel tracing/treewide: Remove second parameter of __assign_str() 2024-05-22 20:14:47 -04:00
litex
marvell tracing/treewide: Remove second parameter of __assign_str() 2024-05-22 20:14:47 -04:00
mediatek Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net 2024-05-14 10:53:19 -07:00
mellanox tracing/treewide: Remove second parameter of __assign_str() 2024-05-22 20:14:47 -04:00
micrel Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net-next 2024-05-15 07:30:49 -07:00
microchip net: lan966x: remove debugfs directory in probe() error path 2024-05-16 09:46:07 +01:00
microsoft The usual shower of singleton fixes and minor series all over MM, 2024-05-19 09:21:03 -07:00
moxa
mscc net: mscc: ocelot: flower: validate control flags 2024-04-18 17:05:38 -07:00
myricom net: annotate writes on dev->mtu from ndo_change_mtu() 2024-05-07 16:19:14 -07:00
natsemi net: annotate writes on dev->mtu from ndo_change_mtu() 2024-05-07 16:19:14 -07:00
neterion net: annotate writes on dev->mtu from ndo_change_mtu() 2024-05-07 16:19:14 -07:00
netronome dma-mapping updates for Linux 6.10 2024-05-20 10:23:39 -07:00
ni net: annotate writes on dev->mtu from ndo_change_mtu() 2024-05-07 16:19:14 -07:00
nvidia net: annotate writes on dev->mtu from ndo_change_mtu() 2024-05-07 16:19:14 -07:00
nxp
oki-semi net: annotate writes on dev->mtu from ndo_change_mtu() 2024-05-07 16:19:14 -07:00
packetengines
pasemi net: annotate writes on dev->mtu from ndo_change_mtu() 2024-05-07 16:19:14 -07:00
pensando net: annotate writes on dev->mtu from ndo_change_mtu() 2024-05-07 16:19:14 -07:00
qlogic Networking changes for 6.10. 2024-05-14 19:42:24 -07:00
qualcomm net: annotate writes on dev->mtu from ndo_change_mtu() 2024-05-07 16:19:14 -07:00
rdc
realtek pci-v6.10-changes 2024-05-21 10:09:28 -07:00
renesas net: annotate writes on dev->mtu from ndo_change_mtu() 2024-05-07 16:19:14 -07:00
rocker net: annotate writes on dev->mtu from ndo_change_mtu() 2024-05-07 16:19:14 -07:00
samsung net: annotate writes on dev->mtu from ndo_change_mtu() 2024-05-07 16:19:14 -07:00
seeq
sfc net: annotate writes on dev->mtu from ndo_change_mtu() 2024-05-07 16:19:14 -07:00
sgi
silan
sis net: annotate data-races around dev->if_port 2024-05-08 18:51:30 -07:00
smsc Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net 2024-05-14 10:53:19 -07:00
socionext
stmicro dma-mapping updates for Linux 6.10 2024-05-20 10:23:39 -07:00
sun Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net 2024-05-14 10:53:19 -07:00
sunplus
synopsys net: annotate writes on dev->mtu from ndo_change_mtu() 2024-05-07 16:19:14 -07:00
tehuti net: annotate writes on dev->mtu from ndo_change_mtu() 2024-05-07 16:19:14 -07:00
ti net: ti: icssg_prueth: Add SW TX / RX Coalescing based on hrtimers 2024-05-01 18:38:47 -07:00
toshiba
tundra
vertexcom
via net: annotate writes on dev->mtu from ndo_change_mtu() 2024-05-07 16:19:14 -07:00
wangxun pci-v6.10-changes 2024-05-21 10:09:28 -07:00
wiznet
xilinx net: annotate writes on dev->mtu from ndo_change_mtu() 2024-05-07 16:19:14 -07:00
xircom net: annotate data-races around dev->if_port 2024-05-08 18:51:30 -07:00
xscale net: annotate writes on dev->mtu from ndo_change_mtu() 2024-05-07 16:19:14 -07:00
Kconfig
Makefile
dnet.c
dnet.h
ec_bhf.c
ethoc.c
fealnx.c
jme.c net: annotate writes on dev->mtu from ndo_change_mtu() 2024-05-07 16:19:14 -07:00
jme.h
korina.c
lantiq_etop.c net: annotate writes on dev->mtu from ndo_change_mtu() 2024-05-07 16:19:14 -07:00
lantiq_xrx200.c net: annotate writes on dev->mtu from ndo_change_mtu() 2024-05-07 16:19:14 -07:00