]> Git Repo - linux.git/commitdiff
kmsg - kmsg_dump() fix CONFIG_PRINTK=n compilation
authorKay Sievers <[email protected]>
Mon, 18 Jun 2012 22:32:57 +0000 (00:32 +0200)
committerGreg Kroah-Hartman <[email protected]>
Mon, 18 Jun 2012 22:55:21 +0000 (15:55 -0700)
Signed-off-by: Kay Sievers <[email protected]>
Cc: Stephen Rothwell <[email protected]>
Reported-by: Randy Dunlap <[email protected]>
Reported-by: Fengguang Wu <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
include/linux/kmsg_dump.h

index af4eb5a39d9acf4378a548a37baa3d4630ba4248..d6bd50110ec2f80956ada720336052b0e1d685f7 100644 (file)
@@ -71,19 +71,19 @@ static inline void kmsg_dump(enum kmsg_dump_reason reason)
 {
 }
 
-bool kmsg_dump_get_line(struct kmsg_dumper *dumper, bool syslog,
-                         const char *line, size_t size, size_t *len)
+static inline bool kmsg_dump_get_line(struct kmsg_dumper *dumper, bool syslog,
+                               const char *line, size_t size, size_t *len)
 {
        return false;
 }
 
-bool kmsg_dump_get_buffer(struct kmsg_dumper *dumper, bool syslog,
-                           char *buf, size_t size, size_t *len)
+static inline bool kmsg_dump_get_buffer(struct kmsg_dumper *dumper, bool syslog,
+                                       char *buf, size_t size, size_t *len)
 {
        return false;
 }
 
-void kmsg_dump_rewind(struct kmsg_dumper *dumper)
+static inline void kmsg_dump_rewind(struct kmsg_dumper *dumper)
 {
 }
 
This page took 0.048498 seconds and 4 git commands to generate.