Re: [PATCH] x86/resctrl: Constify kernfs_ops

2020-11-18 Thread Reinette Chatre
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,

[PATCH] x86/resctrl: Constify kernfs_ops

2020-11-10 Thread Rikard Falkeborn
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-on