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 <[email protected]>
---
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,
--
Thomas Weißschuh <[email protected]>
Hello:
This series was applied to netdev/net-next.git (master)
by Jakub Kicinski <[email protected]>:
On Tue, 14 Feb 2023 04:23:10 +0000 you wrote:
> 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 <[email protected]>
>
> [...]
Here is the summary with links:
- [net-next,v2,1/2] net: bridge: make kobj_type structure constant
https://git.kernel.org/netdev/net-next/c/e8c6cbd7656e
- [net-next,v2,2/2] net-sysfs: make kobj_type structures constant
https://git.kernel.org/netdev/net-next/c/b2793517052d
You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html