aboutsummaryrefslogtreecommitdiff
path: root/include/linux/overflow.h
diff options
context:
space:
mode:
authorJani Nikula <[email protected]>2024-01-17 13:44:05 +0200
committerGuenter Roeck <[email protected]>2024-02-11 13:43:08 -0800
commitb9f55084aa0962af6247fa971f0b1e9c7aa676ef (patch)
tree169bc7eecbceda34a87ab963848d55a5c7d97bf7 /include/linux/overflow.h
parent841c35169323cd833294798e58b9bf63fa4fa1de (diff)
hwmon: put HWMON_CHANNEL_INFO() initializers in rodata
HWMON_CHANNEL_INFO() is supposed to be used as initializer for arrays of const struct hwmon_channel_info *. However, without explicit const, HWMON_CHANNEL_INFO() creates mutable compound literals, and the const pointers point at the mutable data. Add const to place the data in rodata. Cc: Jean Delvare <[email protected]> Cc: Guenter Roeck <[email protected]> Signed-off-by: Jani Nikula <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Guenter Roeck <[email protected]>
Diffstat (limited to 'include/linux/overflow.h')
0 files changed, 0 insertions, 0 deletions