Skip to content

platform/x86: Make kobj_type structures constant

Thomas Weißschuh lkml platform-driver-x86 1 version In review

Get series with b4
b4 am [email protected] change-id 20230207-kobj_type-pdx86-2c60e36c63db

Versions newest first

  1. v1 Latest3 patches 2 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3platform/x86: dell-wmi-sysman: Make kobj_type structure constantdrivers/platform/x86/dell/dell-wmi-sysman/sysman.c+1 -10 replies
2/3platform/x86: think-lmi: Make kobj_type structure constantdrivers/platform/x86/think-lmi.c+2 -20 replies
3/3x86/platform/uv: Make kobj_type structure constantdrivers/platform/x86/uv_sysfs.c+3 -31 reply

Reviews trailers per patch

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

PatchJustin Ernst
1/3
2/3
3/3R-b

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

Read the v1 thread

Cover letter [PATCH 0/3] platform/x86: 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.

---
Thomas Weißschuh (3):
platform/x86: dell-wmi-sysman: Make kobj_type structure constant platform/x86: think-lmi: Make kobj_type structure constant x86/platform/uv: Make kobj_type structure constant

 drivers/platform/x86/dell/dell-wmi-sysman/sysman.c | 2 +-
 drivers/platform/x86/think-lmi.c                   | 4 ++--
 drivers/platform/x86/uv_sysfs.c                    | 6 +++---
 3 files changed, 6 insertions(+), 6 deletions(-)

---
base-commit: d2d11f342b179f1894a901f143ec7c008caba43e
change-id: 20230207-kobj_type-pdx86-2c60e36c63db

Best regards,

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