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


Groups > linux.kernel > #1592250

Re: [PATCH] fs/pstore: constify pstore_zbackend structures

From Kees Cook <keescook@chromium.org>
Newsgroups linux.kernel
Subject Re: [PATCH] fs/pstore: constify pstore_zbackend structures
Date 2017-03-03 20:50 +0100
Message-ID <th1nb-5Qy-3@gated-at.bofh.it> (permalink)
References <tcwhY-5Jr-5@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


On Sun, Feb 19, 2017 at 1:37 AM, Bhumika Goyal <bhumirks@gmail.com> wrote:
> The references of pstore_zbackend structures are stored into the
> pointer zbackend of type struct pstore_zbackend. The pointer zbackend
> can be made const as it is only dereferenced. After making this change
> the pstore_zbackend structures whose references are stored into the
> pointer zbackend can be made const too.
>
> File size before:
>    text    data     bss     dec     hex filename
>    4817     541     172    5530    159a fs/pstore/platform.o
>
> File size after:
>    text    data     bss     dec     hex filename
>    4865     477     172    5514    158a fs/pstore/platform.o
>
> Signed-off-by: Bhumika Goyal <bhumirks@gmail.com>

Awesome, thanks! I've applied this to my tree; it should be visible in
-next soon.

-Kees

-- 
Kees Cook
Pixel Security

Back to linux.kernel | Previous | Next | Find similar | Unroll thread


Thread

Re: [PATCH] fs/pstore: constify pstore_zbackend structures Kees Cook <keescook@chromium.org> - 2017-03-03 20:50 +0100

csiph-web