summaryrefslogtreecommitdiffstats
path: root/kernel/printk
diff options
context:
space:
mode:
authorGeert Uytterhoeven <geert@linux-m68k.org>2016-12-15 07:53:58 -0500
committerLinus Torvalds <torvalds@linux-foundation.org>2016-12-15 13:52:37 -0500
commit8fa9a697ab083af0f4a2807869752685ed8a7a6a (patch)
treeeb33dad340e10111c901242fa8b04965319ff674 /kernel/printk
parent5cc60aeedf315a7513f92e98314e86d515b986d1 (diff)
printk: Remove no longer used second struct cont
If CONFIG_PRINTK=n: kernel/printk/printk.c:1893: warning: ‘cont’ defined but not used Note that there are actually two different struct cont definitions and objects: the first one is used if CONFIG_PRINTK=y, the second one became unused by removing console_cont_flush(). Fixes: 5c2992ee7fd8 ("printk: remove console flushing special cases for partial buffered lines") Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org> Acked-by: Petr Mladek <pmladek@suse.com> [ I do the occasional "allnoconfig" builds, but apparently not often enough - Linus ] Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'kernel/printk')
-rw-r--r--kernel/printk/printk.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/kernel/printk/printk.c b/kernel/printk/printk.c
index b3c454b733da..bc2e220ed2b0 100644
--- a/kernel/printk/printk.c
+++ b/kernel/printk/printk.c
@@ -1885,12 +1885,6 @@ static u32 console_idx;
1885static u64 log_first_seq; 1885static u64 log_first_seq;
1886static u32 log_first_idx; 1886static u32 log_first_idx;
1887static u64 log_next_seq; 1887static u64 log_next_seq;
1888static struct cont {
1889 size_t len;
1890 size_t cons;
1891 u8 level;
1892 bool flushed:1;
1893} cont;
1894static char *log_text(const struct printk_log *msg) { return NULL; } 1888static char *log_text(const struct printk_log *msg) { return NULL; }
1895static char *log_dict(const struct printk_log *msg) { return NULL; } 1889static char *log_dict(const struct printk_log *msg) { return NULL; }
1896static struct printk_log *log_from_idx(u32 idx) { return NULL; } 1890static struct printk_log *log_from_idx(u32 idx) { return NULL; }