Received: by 2002:a05:6a10:9afc:0:0:0:0 with SMTP id t28csp328077pxm; Wed, 2 Mar 2022 16:30:20 -0800 (PST) X-Google-Smtp-Source: ABdhPJwfX2ZOGBiiDhX5MNQezQ/Ke9uiK8mAr2A4x8jh7NRQ5alEsJDi0RHiLnPFvKRG02kopAcS X-Received: by 2002:a17:90a:2e04:b0:1bc:a5db:bcdb with SMTP id q4-20020a17090a2e0400b001bca5dbbcdbmr2517496pjd.116.1646267420379; Wed, 02 Mar 2022 16:30:20 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1646267420; cv=none; d=google.com; s=arc-20160816; b=C74WtAAtxVv6VG/N9BsdG5E4FNDWaTVmfxI0JOUbeXJ12xlJHdyD631AXlUtVO3pbD QoKQ8r1+kaQBCAE3ulzjdPYtgK23B2+ysUiBEjVZVA/OVY96+nrzz0chP6uD55P5lZaB qde7CEN4STKfyGqzFqZw30cKfDzXniJji2g9w6oFcr/2dvGWv5p04VSohybsorj/Sz0P S9VJ/ArvuSLM40aP3f/fNyaKERNmM0n4a1FvwGMEemmFnZLyUQt+1MhfyusbLb50D5fY tKAKA8B40q+swpsDhxF6Ebesc+B/u7Nt5cczo0GSujSdReUlmHMev8iZmSZlVTIRvVUQ JrOA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=2pg1QecaQMx3mc/KhGEL0BrwGipsMMyk880KDkFVqT0=; b=V5QOhFjGTlT+PvPOwbECfc512jx8P1ww/YIF8zjrkR4aCHcQA/+AuUfZmJIRcNhN5P Sq1NgOdINPjoGn4US5yUvFSo7AWf6LwQl6PTv7cAn9V83K5nsNFxwi8NsP/Sdv+AllYq 9XBcA9Q3RsHINHf9UAD5Twses1VDfpzl+9XeRmosjaFmp3vsn7cN5NhclSa44erHdKck ilWUhuRJRt7B86DvAWq3vmBHribjlnQ5/a4Tmvk+fC5iy6le1H63eDxfbwoBkTdinV08 yIGTRwSVokUMqg6zWUxuwkFQ/k16wPJRokubr1zdhv86GS4W1xKZMi4H/0Qx/eOQBLeK bwZQ== ARC-Authentication-Results: i=1; mx.google.com; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [23.128.96.19]) by mx.google.com with ESMTPS id k1-20020a170902c40100b001500128b261si615028plk.437.2022.03.02.16.30.20 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 02 Mar 2022 16:30:20 -0800 (PST) Received-SPF: softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id CDFBB2272C2; Wed, 2 Mar 2022 15:41:25 -0800 (PST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S243225AbiCBOsm (ORCPT + 99 others); Wed, 2 Mar 2022 09:48:42 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37034 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235638AbiCBOsl (ORCPT ); Wed, 2 Mar 2022 09:48:41 -0500 Received: from metis.ext.pengutronix.de (metis.ext.pengutronix.de [IPv6:2001:67c:670:201:290:27ff:fe1d:cc33]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 344CF10FF9 for ; Wed, 2 Mar 2022 06:47:58 -0800 (PST) Received: from gallifrey.ext.pengutronix.de ([2001:67c:670:201:5054:ff:fe8d:eefb] helo=bjornoya.blackshift.org) by metis.ext.pengutronix.de with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nPQGe-000055-LM; Wed, 02 Mar 2022 15:47:52 +0100 Received: from pengutronix.de (2a03-f580-87bc-d400-5c51-3418-45e9-21d0.ip6.dokom21.de [IPv6:2a03:f580:87bc:d400:5c51:3418:45e9:21d0]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) (Authenticated sender: mkl-all@blackshift.org) by smtp.blackshift.org (Postfix) with ESMTPSA id EE38140DDC; Wed, 2 Mar 2022 14:47:48 +0000 (UTC) Date: Wed, 2 Mar 2022 15:47:48 +0100 From: Marc Kleine-Budde To: Vincent MAILHOL Cc: kernel test robot , kbuild-all@lists.01.org, Linux Kernel Mailing List , Arunachalam Santhanam , linux-can Subject: Re: drivers/net/can/usb/etas_es58x/es58x_fd.c:174:8: warning: Uninitialized variable: rx_event_msg [uninitvar] Message-ID: <20220302144748.tidd2zq2xfdqvoyl@pengutronix.de> References: <202203021333.mMJpWPzx-lkp@intel.com> <5f13b914-e309-49ee-4f98-c81780c478b9@intel.com> <20220302103219.kvpfhc6qz42t3pvv@pengutronix.de> <20220302130423.ddd2ulldffpo5lb2@pengutronix.de> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="goiohfcs56kly6pg" Content-Disposition: inline In-Reply-To: X-SA-Exim-Connect-IP: 2001:67c:670:201:5054:ff:fe8d:eefb X-SA-Exim-Mail-From: mkl@pengutronix.de X-SA-Exim-Scanned: No (on metis.ext.pengutronix.de); SAEximRunCond expanded to false X-PTX-Original-Recipient: linux-kernel@vger.kernel.org X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,RDNS_NONE, SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --goiohfcs56kly6pg Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On 02.03.2022 23:42:53, Vincent MAILHOL wrote: > On Wed. 2 Mar 2022 at 22:04, Marc Kleine-Budde wrote: > > I was thinking of this: > > > > | void *foo =3D bar->baz; > > | > > | if (!bar) > > | return; > > | > > | printf("%p", foo); > > > > There were/are compilers that optimize the bar NULL pointer check away, > > because bar has already been de-referenced. >=20 > Sorry, I do not get your example. If bar is NULL, > | void *foo =3D bar->baz; > would segfault and thus the check is not reached. ACK > If bar is not NULL, the check succeeds. >=20 > In both cases, the return statement of the if branch is never > executed making this some dead code. So I do not see why this is > an issue if the compiler removes it. IIRC in some cases the code was shuffled around by the compiler and the NULL pointer check was done....and with a new compiler version it stopped working :) regards, Marc --=20 Pengutronix e.K. | Marc Kleine-Budde | Embedded Linux | https://www.pengutronix.de | Vertretung West/Dortmund | Phone: +49-231-2826-924 | Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 | --goiohfcs56kly6pg Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAABCgAdFiEEBsvAIBsPu6mG7thcrX5LkNig010FAmIfg5IACgkQrX5LkNig 010y+Qf/f5JuMksYTwROvq+dWt29bgQ22vMgbkBu52JhjCv7Vfihplg8sqODqJBl mYYesKRehXh2xUVDy8n+HEtXQvSsbNiA6CscidS1jHaG09yOPOm+/3ulylEz5vU6 VCnfbHb2I2zgYG7Bcoh82lz9VCGog8B4dRc+3IywXEv05P95MCt9ACl+lmOIB0p4 UiCQ9Vii0ohNBElAJ7X1TYLR7KDQGW80bMHsQCq9l6l+wCKU9iXxKwdPh9W7x0Nq xTZBQEqigDHwJKI20U6CzOReGHEN+99KXSBSLF2iOzBSbR18bRihhiDSkILD0esf dY2rB+NgzjysaST27/FGUKiGdg4DXA== =MAE0 -----END PGP SIGNATURE----- --goiohfcs56kly6pg--