From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 8E7D6C4332F for ; Thu, 10 Nov 2022 14:03:39 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230058AbiKJODi (ORCPT ); Thu, 10 Nov 2022 09:03:38 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42486 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229724AbiKJODh (ORCPT ); Thu, 10 Nov 2022 09:03:37 -0500 Received: from mail-wr1-x436.google.com (mail-wr1-x436.google.com [IPv6:2a00:1450:4864:20::436]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A0F9DBC9C for ; Thu, 10 Nov 2022 06:03:33 -0800 (PST) Received: by mail-wr1-x436.google.com with SMTP id o4so2400157wrq.6 for ; Thu, 10 Nov 2022 06:03:33 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=Sro98eLXx+OAuWoCAWM6xR8mEtRvq9ZBNKEPbxgaokY=; b=Igh8tLt9trdoaxxucUgUAIM3TPH9hpaddX5kOiz2mVLM/oaCQ487sdCmZi170Hbklm p/Qk+ZhNMYCKlK4e+icGbatT3KpqjX6QBe1bzDubv/RkCWckAGdpguUUf9r6fXYXKdPp PE/pzxJ0Nu0TF9cnqnk6jw1jSbYejkF/VrvV0BMNNBO0Fw1UvZEdIw1WMZtRker6rRz9 fh8ir9szc6PawVGW2wt1JK37LLLUi0XE0MVKBC7Txsf8ddalu502qLTdWC9aqiR7ADKU SubQ4BvXvA+6XHg1TuncPTHjuZglwI3+65leYR0ahiff1Q0T1LkW5q3Qs/CZ04TJtf7D a7JA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=Sro98eLXx+OAuWoCAWM6xR8mEtRvq9ZBNKEPbxgaokY=; b=387NwNQOBOp9tlEONNvdc7qg0KtoQzmNAl8HFU5GsXj7TkwZSvTbJ0U6u2gE1s9A3F 5O8icCzIELNwbcj/pZEoJJRrqBIFze6YCpOJUO391Gk6vkh92wnJhOo1xmg9TPJnz0rr 86ibyBNto+DG9EPGabmiol1W+x3b3aXE/Pr29I7/VfCpAr33UbP5g2DDKcP8gc42Dkeg fG5HRaYFQXGj1bXVI2EQCwriex+3PLCaK7ezwD3xj4JIGz6a/jjsYnGch3bZjW+buYQ+ YLlA3gcvsj4YuhgCiDrAlRtmTs/JArb+ku5nygfjw+X96QQhoyFsF+RyPzRVt2ot9dQ6 JC0Q== X-Gm-Message-State: ACrzQf1pcxo3xCD+oC9BOWtzG94hwHfuM6qL5fEhbVkVMUKnzaUeImVp Wa21D00K2p34N5x/QD6iRg8goPgulTg= X-Google-Smtp-Source: AMsMyM5d1pnbBOEUe8WRFue3TBV67BQ6lRP4FOXcCsf3hP4z1HTU/uQCBBSGV5/A4+qfU8vFk0Uh/A== X-Received: by 2002:a5d:4d03:0:b0:22e:471b:c616 with SMTP id z3-20020a5d4d03000000b0022e471bc616mr1062594wrt.51.1668089012273; Thu, 10 Nov 2022 06:03:32 -0800 (PST) Received: from localhost ([102.36.222.112]) by smtp.gmail.com with ESMTPSA id z15-20020a5d4c8f000000b00236a16c00ffsm15649618wrs.43.2022.11.10.06.03.30 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 10 Nov 2022 06:03:31 -0800 (PST) Date: Thu, 10 Nov 2022 17:03:27 +0300 From: Dan Carpenter To: Benjamin MUGNIER Cc: oe-kbuild@lists.linux.dev, lkp@intel.com, oe-kbuild-all@lists.linux.dev, linux-media@vger.kernel.org, Sakari Ailus Subject: Re: [sailus-media-tree:master 17/47] drivers/media/i2c/st-vgxy61.c:891 vgxy61_apply_gpiox_strobe_mode() warn: impossible condition '(reg < 0) => (0-u16max < 0)' Message-ID: References: <202211091255.jCcREh11-lkp@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-media@vger.kernel.org On Thu, Nov 10, 2022 at 04:11:59PM +0300, Dan Carpenter wrote: > On Thu, Nov 10, 2022 at 12:43:30PM +0100, Benjamin MUGNIER wrote: > > After running smatch on my tree I couldn't reproduce this warning: > > warn: pm_runtime_get_sync() also returns 1 on success > > I'm using the latest smatch cloned from github. Do you append some > > options to kchecker to get this output ? > > TL;DR: Thanks for the report! I will fix it later this week. > [ snip ] > It creates a fake environment to test what !ret means > for uninitialized variables. The check_pm_runtime_get_sync.c check sees > the "!ret" condition and says, "Nope. That's supposed to be "ret < 0"". > > Smatch shouldn't be printing warnings from inside the fake environment. Nope. That's not it... It already has code to not print from a fake environment (unless you're in debug mode). It's a mystery how the kbuild bot triggered this warning. :( regards, dan carpenter