mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH 0/3] module: Constify 'struct module_attribute'
@ 2024-12-16 17:25 Thomas Weißschuh
  2024-12-16 17:25 ` [PATCH 1/3] params: Prepare for 'const struct module_attribute *' Thomas Weißschuh
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: Thomas Weißschuh @ 2024-12-16 17:25 UTC (permalink / raw)
  To: Luis Chamberlain, Petr Pavlu, Sami Tolvanen, Daniel Gomez
  Cc: linux-modules, linux-kernel, Thomas Weißschuh

These structs are never modified, move them to read-only memory.
This makes the API clearer and also prepares for the constification of
'struct attribute' itself.

Signed-off-by: Thomas Weißschuh <linux@weissschuh.net>
---
Thomas Weißschuh (3):
      params: Prepare for 'const struct module_attribute *'
      module: Handle 'struct module_version_attribute' as const
      module: Constify 'struct module_attribute'

 include/linux/module.h   | 10 +++++-----
 kernel/module/internal.h |  4 ++--
 kernel/module/main.c     | 40 ++++++++++++++++++++--------------------
 kernel/module/sysfs.c    |  4 ++--
 kernel/params.c          | 22 +++++++++++-----------
 5 files changed, 40 insertions(+), 40 deletions(-)
---
base-commit: 78d4f34e2115b517bcbfe7ec0d018bbbb6f9b0b8
change-id: 20241204-sysfs-const-attr-module-927afe76eda4

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


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

end of thread, other threads:[~2024-12-17 17:45 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-12-16 17:25 [PATCH 0/3] module: Constify 'struct module_attribute' Thomas Weißschuh
2024-12-16 17:25 ` [PATCH 1/3] params: Prepare for 'const struct module_attribute *' Thomas Weißschuh
2024-12-16 17:25 ` [PATCH 2/3] module: Handle 'struct module_version_attribute' as const Thomas Weißschuh
2024-12-16 17:25 ` [PATCH 3/3] module: Constify 'struct module_attribute' Thomas Weißschuh
2024-12-17 17:45 ` [PATCH 0/3] " Petr Pavlu

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®