Commit d973f7d8 authored by Kees Cook's avatar Kees Cook

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/20200510202436.63222-4-keescook@chromium.org/Signed-off-by: default avatarKees Cook <keescook@chromium.org>
parent d195c390
...@@ -77,12 +77,17 @@ static DEFINE_MUTEX(psinfo_lock); ...@@ -77,12 +77,17 @@ static DEFINE_MUTEX(psinfo_lock);
struct pstore_info *psinfo; struct pstore_info *psinfo;
static char *backend; static char *backend;
module_param(backend, charp, 0444);
MODULE_PARM_DESC(backend, "specific backend to use");
static char *compress = static char *compress =
#ifdef CONFIG_PSTORE_COMPRESS_DEFAULT #ifdef CONFIG_PSTORE_COMPRESS_DEFAULT
CONFIG_PSTORE_COMPRESS_DEFAULT; CONFIG_PSTORE_COMPRESS_DEFAULT;
#else #else
NULL; NULL;
#endif #endif
module_param(compress, charp, 0444);
MODULE_PARM_DESC(compress, "compression to use");
/* Compression parameters */ /* Compression parameters */
static struct crypto_comp *tfm; static struct crypto_comp *tfm;
...@@ -853,11 +858,5 @@ static void __exit pstore_exit(void) ...@@ -853,11 +858,5 @@ static void __exit pstore_exit(void)
} }
module_exit(pstore_exit) module_exit(pstore_exit)
module_param(compress, charp, 0444);
MODULE_PARM_DESC(compress, "Pstore compression to use");
module_param(backend, charp, 0444);
MODULE_PARM_DESC(backend, "Pstore backend to use");
MODULE_AUTHOR("Tony Luck <tony.luck@intel.com>"); MODULE_AUTHOR("Tony Luck <tony.luck@intel.com>");
MODULE_LICENSE("GPL"); MODULE_LICENSE("GPL");
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment