]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commitdiff
pstore: Make pstore_choose_compression() static
authorBen Dooks (Codethink) <ben.dooks@codethink.co.uk>
Wed, 16 Oct 2019 12:33:17 +0000 (13:33 +0100)
committerKees Cook <keescook@chromium.org>
Tue, 29 Oct 2019 16:43:03 +0000 (09:43 -0700)
The pstore_choose_compression() function is not exported so make it
static to avoid the following sparse warning:

fs/pstore/platform.c:796:13: warning: symbol 'pstore_choose_compression' was not declared. Should it be static?

Signed-off-by: Ben Dooks <ben.dooks@codethink.co.uk>
Link: https://lore.kernel.org/r/20191016123317.3154-1-ben.dooks@codethink.co.uk
Fixes: cb095afd4476 ("pstore: Centralize init/exit routines")
Signed-off-by: Kees Cook <keescook@chromium.org>
fs/pstore/platform.c

index 3d7024662d29534147a5d5cb9bd78b82a4e22397..d896457e7c117519630b8b0ce2cfffac0e393640 100644 (file)
@@ -793,7 +793,7 @@ static void pstore_timefunc(struct timer_list *unused)
                          jiffies + msecs_to_jiffies(pstore_update_ms));
 }
 
-void __init pstore_choose_compression(void)
+static void __init pstore_choose_compression(void)
 {
        const struct pstore_zbackend *step;