Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751131AbdGNTc3 (ORCPT ); Fri, 14 Jul 2017 15:32:29 -0400 Received: from mail-oi0-f66.google.com ([209.85.218.66]:32822 "EHLO mail-oi0-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750786AbdGNTc1 (ORCPT ); Fri, 14 Jul 2017 15:32:27 -0400 MIME-Version: 1.0 In-Reply-To: <20170714130955.zqe26g6zpixr3xj2@mwanda> References: <20170714092540.1217397-1-arnd@arndb.de> <20170714093938.1469319-1-arnd@arndb.de> <20170714120512.ioe67nnloqivtbr7@mwanda> <20170714125525.kjemhcn4poon6r3i@mwanda> <20170714130955.zqe26g6zpixr3xj2@mwanda> From: Arnd Bergmann Date: Fri, 14 Jul 2017 21:32:25 +0200 X-Google-Sender-Auth: iCPNa0LT28KE_frprHWnDZg8sBI Message-ID: Subject: Re: [PATCH 14/14] [media] fix warning on v4l2_subdev_call() result interpreted as bool To: Dan Carpenter Cc: devel@driverdev.osuosl.org, Hans Verkuil , Alan Cox , Greg Kroah-Hartman , Daeseok Youn , Linux Kernel Mailing List , dri-devel , adi-buildroot-devel@lists.sourceforge.net, Linux-Renesas , IDE-ML , Robert Jarzmik , Linux ARM , =?UTF-8?Q?Niklas_S=C3=B6derlund?= , Tejun Heo , Andrew Morton , Mauro Carvalho Chehab , Linus Torvalds , Guenter Roeck , Linux Media Mailing List Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 649 Lines: 14 On Fri, Jul 14, 2017 at 3:09 PM, Dan Carpenter wrote: > On Fri, Jul 14, 2017 at 03:55:26PM +0300, Dan Carpenter wrote: >> I don't agree with it as a static analysis dev... > > What I mean is if it's a macro that returns -ENODEV or a function that > returns -ENODEV, they should both be treated the same. The other > warnings this check prints are quite clever. I think this is what gcc tries to do, and it should work normally, but it fails when using ccache. I know I had cases like that, not entirely sure if this is one of them. Maybe it just means I should give up on using ccache in preprocessor mode. Arnd