]> git.baikalelectronics.ru Git - kernel.git/commit
pstore: constify pstore_zbackend structures
authorBhumika Goyal <bhumirks@gmail.com>
Sun, 19 Feb 2017 09:37:53 +0000 (15:07 +0530)
committerKees Cook <keescook@chromium.org>
Tue, 7 Mar 2017 16:21:38 +0000 (08:21 -0800)
commit6023448b099e3d9d4e6dac9c1d4c8223f76e80d8
tree7dd085f9ae90002a88b2c6bbfae7129e41cf5691
parent8a17c7afe9fb246fbdf434a8c4a84cdc5bada8cb
pstore: constify pstore_zbackend structures

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>
Signed-off-by: Kees Cook <keescook@chromium.org>
fs/pstore/platform.c