Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1693048
| From | Borislav Petkov <bp@alien8.de> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | Re: [PATCH v2 6/7] x86: therm_throt: constify attribute_group structures. |
| Date | 2017-07-20 18:00 +0200 |
| Message-ID | <u5m1P-11d-5@gated-at.bofh.it> (permalink) |
| References | <u5hYd-6H9-3@gated-at.bofh.it> <u5hYf-6H9-15@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
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@gmail.com>
> ---
> 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@suse.de>
--
Regards/Gruss,
Boris.
ECO tip #101: Trim your mails when you reply.
--
Back to linux.kernel | Previous | Next — Previous in thread | Find similar | Unroll thread
[PATCH v2 6/7] x86: therm_throt: constify attribute_group structures. Arvind Yadav <arvind.yadav.cs@gmail.com> - 2017-07-20 13:40 +0200 Re: [PATCH v2 6/7] x86: therm_throt: constify attribute_group structures. Borislav Petkov <bp@alien8.de> - 2017-07-20 18:00 +0200
csiph-web