Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757991AbcLONUc (ORCPT ); Thu, 15 Dec 2016 08:20:32 -0500 Received: from andre.telenet-ops.be ([195.130.132.53]:33642 "EHLO andre.telenet-ops.be" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756110AbcLONUb (ORCPT ); Thu, 15 Dec 2016 08:20:31 -0500 From: Geert Uytterhoeven To: Linus Torvalds Cc: Sergey Senozhatsky , Joe Perches , Steven Rostedt , Petr Mladek , Mark Rutland , Andrew Morton , linux-kernel@vger.kernel.org, Geert Uytterhoeven Subject: [PATCH] printk: Remove no longer used second struct cont Date: Thu, 15 Dec 2016 13:53:58 +0100 Message-Id: <1481806438-30185-1-git-send-email-geert@linux-m68k.org> X-Mailer: git-send-email 1.9.1 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1142 Lines: 33 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: 5c2992ee7fd8a29d ("printk: remove console flushing special cases for partial buffered lines") Signed-off-by: Geert Uytterhoeven --- kernel/printk/printk.c | 6 ------ 1 file changed, 6 deletions(-) diff --git a/kernel/printk/printk.c b/kernel/printk/printk.c index b3c454b733da8163..bc2e220ed2b0bce5 100644 --- a/kernel/printk/printk.c +++ b/kernel/printk/printk.c @@ -1885,12 +1885,6 @@ asmlinkage __visible int printk(const char *fmt, ...) static u64 log_first_seq; static u32 log_first_idx; static u64 log_next_seq; -static struct cont { - size_t len; - size_t cons; - u8 level; - bool flushed:1; -} cont; static char *log_text(const struct printk_log *msg) { return NULL; } static char *log_dict(const struct printk_log *msg) { return NULL; } static struct printk_log *log_from_idx(u32 idx) { return NULL; } -- 1.9.1