mbox series

[00/12] net: constify struct device_type usage

Message ID 20240217-device_cleanup-net-v1-0-1eb31fb689f7@marliere.net (mailing list archive)
Headers show
Series net: constify struct device_type usage | expand

Message

Ricardo B. Marliere Feb. 17, 2024, 8:13 p.m. UTC
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/1305850262-9575-5-git-send-email-gregkh@suse.de/

Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Ricardo B. Marliere <ricardo@marliere.net>

---
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,

Comments

patchwork-bot+netdevbpf@kernel.org Feb. 21, 2024, 9:50 a.m. UTC | #1
Hello:

This series was applied to netdev/net-next.git (main)
by David S. Miller <davem@davemloft.net>:

On Sat, 17 Feb 2024 17:13:22 -0300 you wrote:
> 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.
> 
> [...]

Here is the summary with links:
  - [01/12] net: usbnet: constify the struct device_type usage
    https://git.kernel.org/netdev/net-next/c/3ce7caee3af0
  - [02/12] net: dsa: constify the struct device_type usage
    https://git.kernel.org/netdev/net-next/c/7e0acba3b49e
  - [03/12] net: bridge: constify the struct device_type usage
    https://git.kernel.org/netdev/net-next/c/bbc7e4cc21a4
  - [04/12] net: vxlan: constify the struct device_type usage
    https://git.kernel.org/netdev/net-next/c/c7170e7672e5
  - [05/12] net: ppp: constify the struct device_type usage
    https://git.kernel.org/netdev/net-next/c/908ada0da6d4
  - [06/12] net: geneve: constify the struct device_type usage
    https://git.kernel.org/netdev/net-next/c/e443f3acbc6d
  - [07/12] net: hsr: constify the struct device_type usage
    https://git.kernel.org/netdev/net-next/c/0072b2c1ffd0
  - [08/12] net: l2tp: constify the struct device_type usage
    https://git.kernel.org/netdev/net-next/c/43820fd1ddb5
  - [09/12] net: vlan: constify the struct device_type usage
    https://git.kernel.org/netdev/net-next/c/7ae9d3423f1d
  - [10/12] net: netdevsim: constify the struct device_type usage
    https://git.kernel.org/netdev/net-next/c/52042e092ba9
  - [11/12] net: wwan: core: constify the struct device_type usage
    https://git.kernel.org/netdev/net-next/c/7eccf41b3bac
  - [12/12] net: hso: constify the struct device_type usage
    https://git.kernel.org/netdev/net-next/c/55fad9c4a3c4

You are awesome, thank you!