Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1688762 > unrolled thread

Re: [PATCH] edac: constify attribute_group structures.

Started byBorislav Petkov <bp@alien8.de>
First post2017-07-17 10:30 +0200
Last post2017-07-17 10:30 +0200
Articles 1 — 1 participant

Back to article view | Back to linux.kernel

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  Re: [PATCH] edac: constify attribute_group structures. Borislav Petkov <bp@alien8.de> - 2017-07-17 10:30 +0200

#1688762 — Re: [PATCH] edac: constify attribute_group structures.

FromBorislav Petkov <bp@alien8.de>
Date2017-07-17 10:30 +0200
SubjectRe: [PATCH] edac: constify attribute_group structures.
Message-ID<u49zI-2z2-21@gated-at.bofh.it>
On Mon, Jul 03, 2017 at 04:09:33PM +0530, Arvind Yadav wrote:
> attribute_groups are not supposed to change at runtime. All functions
> working with attribute_groups provided by <linux/sysfs.h> work with const
> attribute_group. So mark the non-const structs as const.
> 
> File size before:
>    text	   data	    bss	    dec	    hex	filename
>    6026	   2541	     12	   8579	   2183	drivers/edac/edac_mc_sysfs.o
> 
> File size After adding 'const':
>    text	   data	    bss	    dec	    hex	filename
>    6090	   2477	     12	   8579	   2183	drivers/edac/edac_mc_sysfs.o

What is that before/after thing supposed to tell me exactly?

> Signed-off-by: Arvind Yadav <arvind.yadav.cs@gmail.com>
> ---
>  drivers/edac/edac_mc_sysfs.c | 6 +++---
>  1 file changed, 3 insertions(+), 3 deletions(-)

Anyway, I've merged your two EDAC patches into one and applied it.

Thanks.

-- 
Regards/Gruss,
    Boris.

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

[toc] | [standalone]


Back to top | Article view | linux.kernel


csiph-web