Skip to content

net: make kobj_type structures constant

Thomas Weißschuh bridge lkml netdev 2 versions – Applied

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

Get series with b4
b4 am [email protected] change-id 20230211-kobj_type-net-99f71346aed2

Versions newest first

  1. v2 Latest2 patches 1 replyApplied 2/2
  2. v13 patches 1 replySuperseded

Changes in v2 from the cover letter

- drop sunrpc patch from series
- use "net-next" patch prefix
- Link to v1: https://lore.kernel.org/r/[email protected]

Patches in v2 All 2 applied

#Subject and filesSizeRepliesApplied
1/2net: bridge: make kobj_type structure constantnet/bridge/br_if.c+1 -11 replyApplied
2/2net-sysfs: make kobj_type structures constantnet/core/net-sysfs.c+2 -20 repliesApplied

Reviews trailers per patch

1 of 2 patches has a Reviewed-by or Acked-by.

PatchNikolay Aleksandrov
1/2A-b
2/2

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v2 thread

Cover letter [PATCH net-next v2 0/2] net: make kobj_type structures constant

Since commit ee6d3dd4ed48 ("driver core: make kobj_type constant.") the driver core allows the usage of const struct kobj_type.

Take advantage of this to constify the structure definitions to prevent modification at runtime.

---
Changes in v2:
- drop sunrpc patch from series
- use "net-next" patch prefix
- Link to v1: https://lore.kernel.org/r/[email protected]

---
Thomas Weißschuh (2):
net: bridge: make kobj_type structure constant
net-sysfs: make kobj_type structures constant

 net/bridge/br_if.c   | 2 +-
 net/core/net-sysfs.c | 4 ++--
 2 files changed, 3 insertions(+), 3 deletions(-)

---
base-commit: f6feea56f66d34259c4222fa02e8171c4f2673d1
change-id: 20230211-kobj_type-net-99f71346aed2

Best regards,

Signature · 1 line
Thomas Weißschuh <[email protected]>