diff options
author | Geliang Tang <geliangtang@163.com> | 2015-10-20 10:39:02 +0300 |
---|---|---|
committer | Tony Luck <tony.luck@intel.com> | 2015-10-21 19:27:10 +0300 |
commit | 1873041152d2e324e25ddeec5541b90c22c2dc0f (patch) | |
tree | 44907682b864b7685a213765fd08a3c83866c066 /fs/pstore | |
parent | 549b39a9e7ef3eee2d0895530f277c012abc7b43 (diff) | |
download | linux-1873041152d2e324e25ddeec5541b90c22c2dc0f.tar.xz |
pstore: add a helper function pstore_register_kmsg
Add a new wrapper function pstore_register_kmsg to keep the
consistency with other similar pstore_register_* functions.
Signed-off-by: Geliang Tang <geliangtang@163.com>
Signed-off-by: Tony Luck <tony.luck@intel.com>
Diffstat (limited to 'fs/pstore')
-rw-r--r-- | fs/pstore/platform.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/fs/pstore/platform.c b/fs/pstore/platform.c index 791743deedf1..1b1124942b4e 100644 --- a/fs/pstore/platform.c +++ b/fs/pstore/platform.c @@ -353,6 +353,11 @@ static struct kmsg_dumper pstore_dumper = { .dump = pstore_dump, }; +static void pstore_register_kmsg(void) +{ + kmsg_dump_register(&pstore_dumper); +} + #ifdef CONFIG_PSTORE_CONSOLE static void pstore_console_write(struct console *con, const char *s, unsigned c) { @@ -442,7 +447,7 @@ int pstore_register(struct pstore_info *psi) if (pstore_is_mounted()) pstore_get_records(0); - kmsg_dump_register(&pstore_dumper); + pstore_register_kmsg(); if ((psi->flags & PSTORE_FLAGS_FRAGILE) == 0) { pstore_register_console(); |