Messages in this thread | | | Subject | Re: [PATCH] x86/resctrl: Constify kernfs_ops | From | Reinette Chatre <> | Date | Wed, 18 Nov 2020 15:35:29 -0800 |
| |
On 11/10/2020 3:02 PM, Rikard Falkeborn wrote: > The only usage of the kf_ops field in the rftype struct is to pass it as > argument to __kernfs_create_file(), which accepts a pointer to const. > Make it a pointer to const. This makes it possible to make > rdtgroup_kf_single_ops and kf_mondata_ops const, which allows the > compiler to put them in read-only memory. > > Signed-off-by: Rikard Falkeborn <rikard.falkeborn@gmail.com>
Thank you very much Rikard.
Acked-by: Reinette Chatre <reinette.chatre@intel.com>
Reinette
| |