From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtprelay0157.hostedemail.com ([216.40.44.157] helo=smtprelay.hostedemail.com) by merlin.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1ViB5x-000725-Bt for linux-mtd@lists.infradead.org; Sun, 17 Nov 2013 22:45:33 +0000 Message-ID: <1384728305.14335.4.camel@joe-AO722> Subject: Re: [PATCH] jffs2: fix sparse errors: directive in argument list From: Joe Perches To: Erico Nunes Date: Sun, 17 Nov 2013 14:45:05 -0800 In-Reply-To: References: <1384719513-27386-1-git-send-email-nunes.erico@gmail.com> <1384724403.2727.22.camel@joe-AO722> Content-Type: text/plain; charset="ISO-8859-1" Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Cc: linux-mtd , linux-sparse@vger.kernel.org, dwmw2 , linux-kernel List-Id: Linux MTD discussion mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , On Sun, 2013-11-17 at 20:34 -0200, Erico Nunes wrote: > Do you mean it as an error in the sparse tool? Yes. I think it's a defect in how sparse treats string concatenation. That style: printk("%s\n", #ifdef FOO "foo" #endif #ifdef BAR "bar" #endif "string"); is pretty common in the kernel sources. The patch itself is otherwise fine, but perhaps unnecessary.