Skip to content

Commit

Permalink
pstore: Make pstore_choose_compression() static
Browse files Browse the repository at this point in the history
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 <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Fixes: cb095af ("pstore: Centralize init/exit routines")
Signed-off-by: Kees Cook <[email protected]>
  • Loading branch information
bjdooks-ct authored and kees committed Oct 29, 2019
1 parent da0c9ea commit 8d82cee
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fs/pstore/platform.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit 8d82cee

Please sign in to comment.