diff options
author | Geliang Tang <geliangtang@163.com> | 2015-10-20 00:39:03 -0700 |
---|---|---|
committer | Tony Luck <tony.luck@intel.com> | 2015-10-22 08:59:18 -0700 |
commit | ee1d267423a1f8041e2b1a33fc23e4393c67677e (patch) | |
tree | b53cdedcdc8f6a7b36f0342814b91005ce4955ea /fs/pstore/internal.h | |
parent | 1873041152d2e324e25ddeec5541b90c22c2dc0f (diff) | |
download | lwn-ee1d267423a1f8041e2b1a33fc23e4393c67677e.tar.gz lwn-ee1d267423a1f8041e2b1a33fc23e4393c67677e.zip |
pstore: add pstore unregister
pstore doesn't support unregistering yet. It was marked as TODO.
This patch adds some code to fix it:
1) Add functions to unregister kmsg/console/ftrace/pmsg.
2) Add a function to free compression buffer.
3) Unmap the memory and free it.
4) Add a function to unregister pstore filesystem.
Signed-off-by: Geliang Tang <geliangtang@163.com>
Acked-by: Kees Cook <keescook@chromium.org>
[Removed __exit annotation from ramoops_remove(). Reported by Arnd Bergmann]
Signed-off-by: Tony Luck <tony.luck@intel.com>
Diffstat (limited to 'fs/pstore/internal.h')
-rw-r--r-- | fs/pstore/internal.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/fs/pstore/internal.h b/fs/pstore/internal.h index c36ba2cd0b5d..96253c474ea5 100644 --- a/fs/pstore/internal.h +++ b/fs/pstore/internal.h @@ -41,14 +41,18 @@ pstore_ftrace_decode_cpu(struct pstore_ftrace_record *rec) #ifdef CONFIG_PSTORE_FTRACE extern void pstore_register_ftrace(void); +extern void pstore_unregister_ftrace(void); #else static inline void pstore_register_ftrace(void) {} +static inline void pstore_unregister_ftrace(void) {} #endif #ifdef CONFIG_PSTORE_PMSG extern void pstore_register_pmsg(void); +extern void pstore_unregister_pmsg(void); #else static inline void pstore_register_pmsg(void) {} +static inline void pstore_unregister_pmsg(void) {} #endif extern struct pstore_info *psinfo; |