The pstore subsystem already had a private version of this function. With the coming addition of the pstore/zone driver, this needs to be shared. As it really should live with printk, move it there instead.
Showing the changes to include/linux (1 of 3 files). Show all
Unified · Split
| @@ -70,6 +70,8 @@ void kmsg_dump_rewind(struct kmsg_dumper *dumper); · 69 unmodified lines | ||
| 70 | 70 | int kmsg_dump_register(struct kmsg_dumper *dumper); |
| 71 | 71 | |
| 72 | 72 | int kmsg_dump_unregister(struct kmsg_dumper *dumper); |
| 73 | + | |
| 74 | +const char *kmsg_dump_reason_str(enum kmsg_dump_reason reason); | |
| 73 | 75 | #else |
| 74 | 76 | static inline void kmsg_dump(enum kmsg_dump_reason reason) |
| 75 | 77 | { |
| @@ -111,6 +113,11 @@ static inline int kmsg_dump_unregister(struct kmsg_dumper *dumper) · 35 unmodified lines | ||
| 111 | 113 | { |
| 112 | 114 | return -EINVAL; |
| 113 | 115 | } |
| 116 | + | |
| 117 | +static inline const char *kmsg_dump_reason_str(enum kmsg_dump_reason reason) | |
| 118 | +{ | |
| 119 | + return "Disabled"; | |
| 120 | +} | |
| 114 | 121 | #endif |
| 115 | 122 | |
| 116 | 123 | #endif /* _LINUX_KMSG_DUMP_H */ |