Searched hist:d9962f6f428449fe227f1c88c65ac3fffdf7dceb (Results 1 – 3 of 3) sorted by relevance
/openbmc/linux/drivers/hwtracing/intel_th/ |
H A D | pti.c | diff d9962f6f428449fe227f1c88c65ac3fffdf7dceb Wed Apr 14 12:12:48 CDT 2021 Rikard Falkeborn <rikard.falkeborn@gmail.com> intel_th: Constify attribute_group structs
The only usage of them is to pass their address to sysfs_create_group() and sysfs_remove_group(), both which have pointers to const attribute_group structs as input. Make them const to allow the compiler to put them in read-only memory.
Signed-off-by: Rikard Falkeborn <rikard.falkeborn@gmail.com> Signed-off-by: Alexander Shishkin <alexander.shishkin@linux.intel.com> Reviewed-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com> Link: https://lore.kernel.org/r/20210414171251.14672-5-alexander.shishkin@linux.intel.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
|
H A D | intel_th.h | diff d9962f6f428449fe227f1c88c65ac3fffdf7dceb Wed Apr 14 12:12:48 CDT 2021 Rikard Falkeborn <rikard.falkeborn@gmail.com> intel_th: Constify attribute_group structs
The only usage of them is to pass their address to sysfs_create_group() and sysfs_remove_group(), both which have pointers to const attribute_group structs as input. Make them const to allow the compiler to put them in read-only memory.
Signed-off-by: Rikard Falkeborn <rikard.falkeborn@gmail.com> Signed-off-by: Alexander Shishkin <alexander.shishkin@linux.intel.com> Reviewed-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com> Link: https://lore.kernel.org/r/20210414171251.14672-5-alexander.shishkin@linux.intel.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
|
H A D | msu.c | diff d9962f6f428449fe227f1c88c65ac3fffdf7dceb Wed Apr 14 12:12:48 CDT 2021 Rikard Falkeborn <rikard.falkeborn@gmail.com> intel_th: Constify attribute_group structs
The only usage of them is to pass their address to sysfs_create_group() and sysfs_remove_group(), both which have pointers to const attribute_group structs as input. Make them const to allow the compiler to put them in read-only memory.
Signed-off-by: Rikard Falkeborn <rikard.falkeborn@gmail.com> Signed-off-by: Alexander Shishkin <alexander.shishkin@linux.intel.com> Reviewed-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com> Link: https://lore.kernel.org/r/20210414171251.14672-5-alexander.shishkin@linux.intel.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
|