Skip to content

Commit 8d82cee

Browse files
bjdooks-ctkees
authored andcommitted
pstore: Make pstore_choose_compression() static
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]>
1 parent da0c9ea commit 8d82cee

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

fs/pstore/platform.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -793,7 +793,7 @@ static void pstore_timefunc(struct timer_list *unused)
793793
jiffies + msecs_to_jiffies(pstore_update_ms));
794794
}
795795

796-
void __init pstore_choose_compression(void)
796+
static void __init pstore_choose_compression(void)
797797
{
798798
const struct pstore_zbackend *step;
799799

0 commit comments

Comments
 (0)