All of lore.kernel.org
 help / color / mirror / Atom feed
* [Bridge] [PATCH 0/3] net: make kobj_type structures constant
@ 2023-02-11  3:32 ` Thomas Weißschuh
  0 siblings, 0 replies; 10+ messages in thread
From: Thomas Weißschuh @ 2023-02-11  3:32 UTC (permalink / raw)
  To: Roopa Prabhu, Nikolay Aleksandrov, David S. Miller, Eric Dumazet,
	Jakub Kicinski, Paolo Abeni, Trond Myklebust, Anna Schumaker,
	Chuck Lever, Jeff Layton
  Cc: netdev, linux-nfs, bridge, linux-kernel, Thomas Weißschuh

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.

Signed-off-by: Thomas Weißschuh <linux@weissschuh.net>
Signed-off-by: Thomas Weißschuh <linux@weissschuh.net>
---
Thomas Weißschuh (3):
      net: bridge: make kobj_type structure constant
      net-sysfs: make kobj_type structures constant
      SUNRPC: make kobj_type structures constant

 net/bridge/br_if.c   | 2 +-
 net/core/net-sysfs.c | 4 ++--
 net/sunrpc/sysfs.c   | 8 ++++----
 3 files changed, 7 insertions(+), 7 deletions(-)
---
base-commit: 420b2d431d18a2572c8e86579e78105cb5ed45b0
change-id: 20230211-kobj_type-net-99f71346aed2

Best regards,
-- 
Thomas Weißschuh <linux@weissschuh.net>


^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2023-02-14  4:11 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-02-11  3:32 [Bridge] [PATCH 0/3] net: make kobj_type structures constant Thomas Weißschuh
2023-02-11  3:32 ` Thomas Weißschuh
2023-02-11  3:32 ` [Bridge] [PATCH 1/3] net: bridge: make kobj_type structure constant Thomas Weißschuh
2023-02-11  3:32   ` Thomas Weißschuh
2023-02-11  3:32 ` [Bridge] [PATCH 2/3] net-sysfs: make kobj_type structures constant Thomas Weißschuh
2023-02-11  3:32   ` Thomas Weißschuh
2023-02-11  3:32 ` [Bridge] [PATCH 3/3] SUNRPC: " Thomas Weißschuh
2023-02-11  3:32   ` Thomas Weißschuh
2023-02-14  4:11 ` [Bridge] [PATCH 0/3] net: " Jakub Kicinski
2023-02-14  4:11   ` Jakub Kicinski

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.