Skip to content

net: constify struct device_type usage

Ricardo B. Marliere bridge linux-ppp linux-usb lkml netdev 1 version Applied

Status from this message: This series was applied to netdev/net-next.git (main)

Get series with b4
b4 am [email protected] change-id 20240217-device_cleanup-net-878960951968

Versions newest first

  1. v1 Latest12 patches 14 repliesApplied 12/12

Patches in v1 All 12 applied

#Subject and filesSizeRepliesApplied
1/12net: usbnet: constify the struct device_type usagedrivers/net/usb/usbnet.c+2 -21 replyApplied
2/12net: dsa: constify the struct device_type usagenet/dsa/user.c+1 -11 replyApplied
3/12net: bridge: constify the struct device_type usagenet/bridge/br_device.c+1 -11 replyApplied
4/12net: vxlan: constify the struct device_type usagedrivers/net/vxlan/vxlan_core.c+1 -12 repliesApplied
5/12net: ppp: constify the struct device_type usagedrivers/net/ppp/ppp_generic.c+1 -11 replyApplied
6/12net: geneve: constify the struct device_type usagedrivers/net/geneve.c+1 -11 replyApplied
7/12net: hsr: constify the struct device_type usagenet/hsr/hsr_device.c+1 -11 replyApplied
8/12net: l2tp: constify the struct device_type usagenet/l2tp/l2tp_eth.c+1 -11 replyApplied
9/12net: vlan: constify the struct device_type usagenet/8021q/vlan_dev.c+1 -11 replyApplied
10/12net: netdevsim: constify the struct device_type usagedrivers/net/netdevsim/bus.c+1 -11 replyApplied
11/12net: wwan: core: constify the struct device_type usagedrivers/net/wwan/wwan_core.c+1 -12 repliesApplied
12/12net: hso: constify the struct device_type usagedrivers/net/usb/hso.c+1 -11 replyApplied

Reviews trailers per patch

All 12 patches have a Reviewed-by or Acked-by.

PatchFlorian FainelliGuillaume NaultSimon HormanSergey Ryazanov
1/12R-b
2/12R-b
3/12R-b
4/12R-b
5/12R-b
6/12R-b
7/12R-b
8/12R-b
9/12R-b
10/12R-b
11/12R-b R-b
12/12R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 4 reviewers.

Read the v1 thread

Cover letter [PATCH 00/12] net: constify struct device_type usage

This is a simple and straight forward cleanup series that makes all device types in the net subsystem constants. This has been possible since 2011 [1] but not all occurrences were cleaned. I have been sweeping the tree to fix them all.

I was not sure if I should send these squashed, but there are quite a few changes so I decided to send them separately. Please let me know if that is not desirable.

---
[1] https://lore.kernel.org/all/[email protected]/

---
Ricardo B. Marliere (12):
net: usbnet: constify the struct device_type usage
net: dsa: constify the struct device_type usage
net: bridge: constify the struct device_type usage
net: vxlan: constify the struct device_type usage
net: ppp: constify the struct device_type usage
net: geneve: constify the struct device_type usage
net: hsr: constify the struct device_type usage
net: l2tp: constify the struct device_type usage
net: vlan: constify the struct device_type usage
net: netdevsim: constify the struct device_type usage
net: wwan: core: constify the struct device_type usage
net: hso: constify the struct device_type usage

 drivers/net/geneve.c           | 2 +-
 drivers/net/netdevsim/bus.c    | 2 +-
 drivers/net/ppp/ppp_generic.c  | 2 +-
 drivers/net/usb/hso.c          | 2 +-
 drivers/net/usb/usbnet.c       | 4 ++--
 drivers/net/vxlan/vxlan_core.c | 2 +-
 drivers/net/wwan/wwan_core.c   | 2 +-
 net/8021q/vlan_dev.c           | 2 +-
 net/bridge/br_device.c         | 2 +-
 net/dsa/user.c                 | 2 +-
 net/hsr/hsr_device.c           | 2 +-
 net/l2tp/l2tp_eth.c            | 2 +-
 12 files changed, 13 insertions(+), 13 deletions(-)

---
base-commit: a6e0cb150c514efba4aaba4069927de43d80bb59
change-id: 20240217-device_cleanup-net-878960951968

Best regards,

Signature · 1 line
Ricardo B. Marliere <[email protected]>