2
0
mirror of git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git synced 2025-09-04 20:19:47 +08:00
linux/drivers/net/dsa/mv88e6xxx
Christophe JAILLET a63b5a0bb7 net: dsa: mv88e6xxx: Use kcalloc()
Use kcalloc() instead of hand writing it. This is less verbose.

Also move the initialization of 'count' to save some LoC.

On a x86_64, with allmodconfig, as an example:
Before:
======
   text	   data	    bss	    dec	    hex	filename
  18652	   5920	     64	  24636	   603c	drivers/net/dsa/mv88e6xxx/devlink.o

After:
=====
   text	   data	    bss	    dec	    hex	filename
  18498	   5920	     64	  24482	   5fa2	drivers/net/dsa/mv88e6xxx/devlink.o

Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Link: https://patch.msgid.link/2f4fca4ff84950da71e007c9169f18a0272476f3.1751200453.git.christophe.jaillet@wanadoo.fr
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
2025-07-01 19:31:38 -07:00
..
chip.c A set of cleanups for the generic interrupt subsystem: 2025-05-27 08:07:32 -07:00
chip.h net: dsa: convert to ndo_hwtstamp_get() and ndo_hwtstamp_set() 2025-05-09 16:34:09 -07:00
devlink.c net: dsa: mv88e6xxx: Use kcalloc() 2025-07-01 19:31:38 -07:00
devlink.h
global1_atu.c net: dsa: mv88e6xxx: Fix out-of-bound access 2024-08-20 16:53:21 -07:00
global1_vtu.c net: dsa: mv88e6xxx: Add FID map cache 2024-10-08 15:30:55 -07:00
global1.c net: dsa: mv88e6xxx: Avoid EEPROM timeout without EEPROM on 88E6250-family switches 2024-04-25 11:24:07 +01:00
global1.h net: dsa: mv88e6xxx: Avoid EEPROM timeout without EEPROM on 88E6250-family switches 2024-04-25 11:24:07 +01:00
global2_avb.c
global2_scratch.c net: dsa: mv88e6xxx: Remove stale comment 2024-08-28 17:54:58 -07:00
global2.c net: Use dev_fwnode() 2025-06-12 18:46:37 -07:00
global2.h net: dsa: mv88e6xxx: add Amethyst specific SMI GPIO function 2024-02-29 10:16:39 +01:00
hwtstamp.c net: dsa: convert to ndo_hwtstamp_get() and ndo_hwtstamp_set() 2025-05-09 16:34:09 -07:00
hwtstamp.h net: dsa: convert to ndo_hwtstamp_get() and ndo_hwtstamp_set() 2025-05-09 16:34:09 -07:00
Kconfig net: dsa: mv88e6xxx: Support LED control 2024-10-04 15:31:28 -07:00
leds.c net: dsa: mv88e6xxx: Support LED control 2024-10-04 15:31:28 -07:00
Makefile net: dsa: mv88e6xxx: Support LED control 2024-10-04 15:31:28 -07:00
pcs-639x.c net: remove phylink_pcs .neg_mode boolean 2025-02-14 17:09:50 -08:00
pcs-6185.c net: remove phylink_pcs .neg_mode boolean 2025-02-14 17:09:50 -08:00
pcs-6352.c net: remove phylink_pcs .neg_mode boolean 2025-02-14 17:09:50 -08:00
phy.c treewide, timers: Rename from_timer() to timer_container_of() 2025-06-08 09:07:37 +02:00
phy.h net: dsa: mv88e6xxx: Separate C22 and C45 transactions 2023-01-10 15:53:37 -08:00
port_hidden.c
port.c dsa: Use str_enable_disable-like helpers 2025-01-20 09:23:25 +00:00
port.h net: dsa: mv88e6xxx: Support LED control 2024-10-04 15:31:28 -07:00
ptp.c net: ptp: introduce .supported_extts_flags to ptp_clock_info 2025-04-15 20:20:57 -07:00
ptp.h net: dsa: mv88e6xxx: Enable PTP receive for mv88e6390 2023-01-16 13:36:57 +00:00
serdes.c net: dsa: use ethtool string helpers 2024-11-03 10:36:34 -08:00
serdes.h net: dsa: use ethtool string helpers 2024-11-03 10:36:34 -08:00
smi.c
smi.h
switchdev.c net: dsa: mv88e6xxx: mac-auth/MAB implementation 2023-01-10 11:58:39 +01:00
switchdev.h net: dsa: mv88e6xxx: mac-auth/MAB implementation 2023-01-10 11:58:39 +01:00
trace.c net: dsa: mv88e6xxx: replace ATU violation prints with trace points 2022-12-12 15:01:18 -08:00
trace.h tracing/treewide: Remove second parameter of __assign_str() 2024-05-22 20:14:47 -04:00