Skip to content

Commit d973f7d

Browse files
committed
pstore/platform: Move module params after declarations
It is easier to see how module params are used if they're near the variables they use. Link: https://lore.kernel.org/lkml/[email protected]/ Signed-off-by: Kees Cook <[email protected]>
1 parent d195c39 commit d973f7d

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

fs/pstore/platform.c

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -77,12 +77,17 @@ static DEFINE_MUTEX(psinfo_lock);
7777
struct pstore_info *psinfo;
7878

7979
static char *backend;
80+
module_param(backend, charp, 0444);
81+
MODULE_PARM_DESC(backend, "specific backend to use");
82+
8083
static char *compress =
8184
#ifdef CONFIG_PSTORE_COMPRESS_DEFAULT
8285
CONFIG_PSTORE_COMPRESS_DEFAULT;
8386
#else
8487
NULL;
8588
#endif
89+
module_param(compress, charp, 0444);
90+
MODULE_PARM_DESC(compress, "compression to use");
8691

8792
/* Compression parameters */
8893
static struct crypto_comp *tfm;
@@ -853,11 +858,5 @@ static void __exit pstore_exit(void)
853858
}
854859
module_exit(pstore_exit)
855860

856-
module_param(compress, charp, 0444);
857-
MODULE_PARM_DESC(compress, "Pstore compression to use");
858-
859-
module_param(backend, charp, 0444);
860-
MODULE_PARM_DESC(backend, "Pstore backend to use");
861-
862861
MODULE_AUTHOR("Tony Luck <[email protected]>");
863862
MODULE_LICENSE("GPL");

0 commit comments

Comments
 (0)