Re: [PATCH v2 6/7] x86: therm_throt: constify attribute_group structures.

From: Borislav Petkov
Date: Thu Jul 20 2017 - 11:58:53 EST


On Thu, Jul 20, 2017 at 05:00:37PM +0530, Arvind Yadav wrote:
> attribute_group are not supposed to change at runtime. All functions
> working with attribute_group provided by <linux/sysfs.h> work with
> const attribute_group. So mark the non-const structs as const.
>
> Signed-off-by: Arvind Yadav <arvind.yadav.cs@xxxxxxxxx>
> ---
> change in v2:
> Remove before/after size comparison from commit message.
>
> arch/x86/kernel/cpu/mcheck/therm_throt.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)

This one and the next:

Acked-by: Borislav Petkov <bp@xxxxxxx>

--
Regards/Gruss,
Boris.

ECO tip #101: Trim your mails when you reply.
--