The Linux Kernel Mailing List
 help / color / mirror / Atom feed
* [PATCH v2 0/4] kobject: Allow the constification of kobject attributes
@ 2026-07-07 16:56 Thomas Weißschuh
  2026-07-07 16:56 ` [PATCH v2 1/4] kobject: Provide macros to initialize 'struct kobj_attribute' Thomas Weißschuh
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: Thomas Weißschuh @ 2026-07-07 16:56 UTC (permalink / raw)
  To: Greg Kroah-Hartman, Rafael J. Wysocki, Danilo Krummrich,
	Andrew Morton
  Cc: Thomas Weißschuh, driver-core, linux-kernel

Allow kobject attribute to reside in read-only memory.
Both const and non-const attributes are handled by the utility macros
and attributes can be migrated one-by-one.

Signed-off-by: Thomas Weißschuh <linux@weissschuh.net>
---
Changes in v2:
- Fix the definition of __KOBJ_ATTR_RO_MODE()
- Rebase on v7.2-rc1
- Link to v1: https://patch.msgid.link/20260529-sysfs-const-attr-kobj-attr-prep-v1-0-7e667ba3bb85@weissschuh.net

To: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
To: "Rafael J. Wysocki" <rafael@kernel.org>
To: Danilo Krummrich <dakr@kernel.org>
To: Andrew Morton <akpm@linux-foundation.org>
Cc: driver-core@lists.linux.dev
Cc: linux-kernel@vger.kernel.org

---
Thomas Weißschuh (4):
      kobject: Provide macros to initialize 'struct kobj_attribute'
      samples/kobject: Switch to the new __KOBJ_ATTR() macro
      kobject: Allow the constification of kobject attributes
      samples/kobject: Constify kobject attributes

 include/linux/kobject.h           | 75 ++++++++++++++++++++++++++++++++++++---
 lib/kobject.c                     |  8 +++--
 samples/kobject/kobject-example.c | 24 ++++++-------
 3 files changed, 89 insertions(+), 18 deletions(-)
---
base-commit: dc59e4fea9d83f03bad6bddf3fa2e52491777482
change-id: 20260525-sysfs-const-attr-kobj-attr-prep-9a5d72913fee

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


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

end of thread, other threads:[~2026-07-11 18:47 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-07-07 16:56 [PATCH v2 0/4] kobject: Allow the constification of kobject attributes Thomas Weißschuh
2026-07-07 16:56 ` [PATCH v2 1/4] kobject: Provide macros to initialize 'struct kobj_attribute' Thomas Weißschuh
2026-07-07 16:56 ` [PATCH v2 2/4] samples/kobject: Switch to the new __KOBJ_ATTR() macro Thomas Weißschuh
2026-07-07 16:56 ` [PATCH v2 3/4] kobject: Allow the constification of kobject attributes Thomas Weißschuh
2026-07-07 16:56 ` [PATCH v2 4/4] samples/kobject: Constify " Thomas Weißschuh
2026-07-11 18:47 ` [PATCH v2 0/4] kobject: Allow the constification of " Danilo Krummrich

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