Skip to content

driver core: constify groups arrays in few functions and struct class

Heiner Kallweit driver-core lkml 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest3 patches 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3sysfs: constify group arrays in function argumentsfs/sysfs/group.c include/linux/sysfs.h+13 -130 replies
2/3driver: core: constify groups array argument in device_add_groups and device_remove_groupsdrivers/base/core.c include/linux/device.h+5 -40 replies
3/3driver core: make struct class groups members constant arraysinclude/linux/device/class.h+2 -20 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/3] driver core: constify groups arrays in few functions and struct class

This series constifies the attribute group groups arrays in a number of functions, and in struct class. This allows to assign constant arrays, w/o "discards const qualifier" compiler warning.

Heiner Kallweit (3):
sysfs: constify group arrays in function arguments
driver: core: constify groups array argument in device_add_groups and
device_remove_groups
driver core: make struct class groups members constant arrays

 drivers/base/core.c          |  5 +++--
 fs/sysfs/group.c             | 10 +++++-----
 include/linux/device.h       |  4 ++--
 include/linux/device/class.h |  4 ++--
 include/linux/sysfs.h        | 16 ++++++++--------
 5 files changed, 20 insertions(+), 19 deletions(-)
Signature · 1 line
2.53.0