X-Git-Url: https://git.openpandora.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=include%2Flinux%2Fpstore.h;h=9b169690013d36f8dd4dffa3261210e2ea5843e6;hb=b2fddb5b3cbe2ac7d18e62c9588a6cbee9cd7383;hp=2ca8cde5459d3445b2897c02d58ac2d12dba5bba;hpb=4f3e0b1d33bfeb1e05e53073c6f277176ff9e368;p=pandora-kernel.git diff --git a/include/linux/pstore.h b/include/linux/pstore.h index 2ca8cde5459d..9b169690013d 100644 --- a/include/linux/pstore.h +++ b/include/linux/pstore.h @@ -22,6 +22,8 @@ #ifndef _LINUX_PSTORE_H #define _LINUX_PSTORE_H +#include + /* types */ enum pstore_type_id { PSTORE_TYPE_DMESG = 0, @@ -50,6 +52,7 @@ struct pstore_info { #ifdef CONFIG_PSTORE extern int pstore_register(struct pstore_info *); +extern bool pstore_cannot_block_path(enum kmsg_dump_reason reason); extern int pstore_write(enum pstore_type_id type, char *buf, size_t size); #else static inline int @@ -57,6 +60,11 @@ pstore_register(struct pstore_info *psi) { return -ENODEV; } +static inline bool +pstore_cannot_block_path(enum kmsg_dump_reason reason) +{ + return false; +} static inline int pstore_write(enum pstore_type_id type, char *buf, size_t size) {