driver core: constify groups arrays in few functions and struct class
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest3 patches 0 repliesNew
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/3 | sysfs: constify group arrays in function argumentsfs/ include/ | +13 | 0 replies | |
| 2/3 | driver: core: constify groups array argument in device_add_groups and device_remove_groupsdrivers/ include/ | +5 | 0 replies | |
| 3/3 | driver core: make struct class groups members constant arraysinclude/ | +2 | 0 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.
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