diff --git a/fs/pstore/platform.c b/fs/pstore/platform.c
index 3d7024662d29534147a5d5cb9bd78b82a4e22397..d896457e7c117519630b8b0ce2cfffac0e393640 100644
--- a/fs/pstore/platform.c
+++ b/fs/pstore/platform.c
@@ -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;