Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756991AbcLPBkG (ORCPT ); Thu, 15 Dec 2016 20:40:06 -0500 Received: from smtprelay0233.hostedemail.com ([216.40.44.233]:53363 "EHLO smtprelay.hostedemail.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1754045AbcLPBj4 (ORCPT ); Thu, 15 Dec 2016 20:39:56 -0500 X-Session-Marker: 6A6F6540706572636865732E636F6D X-Spam-Summary: 2,0,0,,d41d8cd98f00b204,joe@perches.com,:::::::::::::::,RULES_HIT:41:152:355:379:541:599:966:968:973:988:989:1260:1277:1311:1313:1314:1345:1359:1373:1437:1515:1516:1518:1534:1541:1593:1594:1711:1730:1747:1777:1792:2196:2199:2393:2559:2562:3138:3139:3140:3141:3142:3353:3622:3865:3866:3867:3868:3870:3871:3872:3874:4321:4385:5007:7903:7904:10004:10400:10848:11026:11232:11658:11914:12296:12663:12740:12895:13069:13161:13229:13311:13357:13894:14096:14097:14659:14721:21080:21433:21451:30054:30091,0,RBL:none,CacheIP:none,Bayesian:0.5,0.5,0.5,Netcheck:none,DomainCache:0,MSF:not bulk,SPF:fn,MSBL:0,DNSBL:none,Custom_rules:0:0:0,LFtime:1,LUA_SUMMARY:none X-HE-Tag: value97_394e951691044 X-Filterd-Recvd-Size: 2370 Message-ID: <1481852392.29291.75.camel@perches.com> Subject: Re: [PATCH] printk: Remove no longer used second struct cont From: Joe Perches To: Sergey Senozhatsky , Petr Mladek Cc: Geert Uytterhoeven , Linus Torvalds , Steven Rostedt , Mark Rutland , Andrew Morton , linux-kernel@vger.kernel.org Date: Thu, 15 Dec 2016 17:39:52 -0800 In-Reply-To: <20161216013706.GA20445@jagdpanzerIV.localdomain> References: <1481806438-30185-1-git-send-email-geert@linux-m68k.org> <20161215162336.GA18152@pathway.suse.cz> <20161216013706.GA20445@jagdpanzerIV.localdomain> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.22.1-0ubuntu2 Mime-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1246 Lines: 28 On Fri, 2016-12-16 at 10:37 +0900, Sergey Senozhatsky wrote: > On (12/15/16 17:23), Petr Mladek wrote: > > On Thu 2016-12-15 13:53:58, Geert Uytterhoeven wrote: > > > 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") > > > > Great catch. It seems that nobody tried the build without CONFIG_PRINTK > > at that time. > > ok... since the patch is a cosmetic tweak... can we add several more > cosmetic changes to it? yes, I know, N things in one patch is "a bad thing", > but those extra changes don't deserve to be in a separate patch. > > basically I'm talking about a bunch of 80-cols fixups. > if it's irrelevant then feel free to ignore it. While it might be nice to do some 80 column wrapping, the most common wrap style is to the open parenthesis. I'd also like to split up printk.c into a bunch of smaller, more logically self-contained files eventually.