Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp366605pxk; Fri, 11 Sep 2020 09:02:53 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzaoCrPXQd/Sx+359eezgvsOsqhRJhBH91NSH7cmYIeHsFT9hw+MyQ1I5uhboo+tZr2E/uH X-Received: by 2002:a17:906:364b:: with SMTP id r11mr2656195ejb.48.1599840173699; Fri, 11 Sep 2020 09:02:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1599840173; cv=none; d=google.com; s=arc-20160816; b=zzGJPVolXa4cw69zX+ek9SEBYQeNKDayzEJ5cIFrCjMOuVn+CpqChclWMoPSAjwPdl UoI7cW80cUEaP0Kp2eNSo8LJgVno0frkb79VVyBy2r8Kca+uBY9FJ0+yC2AJL2Qw7wl5 niCMh2sWrs8ozaAD8V0s6NrINhCebYqYJbL8dOBQCxjq54N05jFDjpucFHN4nrjWmuZi 9MxpSqQ8JKnXf83oBarb0j5bYSZhrL8MEIVkiCzudHcimEVBWjWBqKuQlTN79yLZPPZM 40D8Vf86kEhegpiOWd5VIWQJSirKVEbssVKvZil+/0CLodbzurCQlBc1OGMLUFMU8NzT AtEg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=m+iVerlUNqAW5DSLfymFd18Aa+jNaCXhphLLXfU0VIA=; b=Gv52gd8LVUP7Jgf1ACNSV6crnAhu+nuBhQokJvFeZOIRdowYS6uV/yHmp8SRy3sHlD sVtRIAkAzUgFJ4pFuk7GW0CdGIMCzdLSfDpq9ncjpheQrXLlBKSiEj3+QT6S0QxoM3Np dLp1/q/Lt3yHN5oz7Cf2yXgib74PyGJLv6S8GMAFEuxCuVMbuKmreMEu1eWq/Q6WlfEI A7pJ8fJWkxFuu5xtI4FwtBbH4dkLPnqjU3M519DLg+GEMrhlfh9H0iiHFzLZUHhGq9qQ 1oxbatyoebOtmg854RpmJLjDB6v0WC/wET6u8cluqVXRFBYR8vsEvlWEvtJgqrdM0eMD wyPg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=Sutpl+MP; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id m3si1596711eje.124.2020.09.11.09.02.30; Fri, 11 Sep 2020 09:02:53 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=Sutpl+MP; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1725927AbgIKQBw (ORCPT + 99 others); Fri, 11 Sep 2020 12:01:52 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39098 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726591AbgIKQBF (ORCPT ); Fri, 11 Sep 2020 12:01:05 -0400 Received: from mail-qk1-x742.google.com (mail-qk1-x742.google.com [IPv6:2607:f8b0:4864:20::742]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B53D3C061756; Fri, 11 Sep 2020 09:01:04 -0700 (PDT) Received: by mail-qk1-x742.google.com with SMTP id 16so10340170qkf.4; Fri, 11 Sep 2020 09:01:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=m+iVerlUNqAW5DSLfymFd18Aa+jNaCXhphLLXfU0VIA=; b=Sutpl+MPw6nB+6Wp5lUzwnRnbow90HU9aTTdtIg3LjT1unaleGubj6DLgjH29qJZ0T jMBnugheaGK51H8DSv0rwGMarn7OlqHDc7tXNfLqpKrm7lua3eEOKqIQ4qUWKse+CpMJ wIVx40eC9zpg9bBQBVNJ0Xre4Jvs8cNrkMzgh/6D6HQR4JEj5+tPIRQgbLtbuB5qF4Oi e5atLQkthHa/nAfnDCorJKsNkqIsrmVzGOEXDo5ij+9ZE1QIlj8gAPSKjjuvR7M9JUku t6gAApCIN4TgMEZc1j00NRxC2pTiI06jJF1ATbeDQGPWRlyi03xKmAujKHqcrYIMHpMs 7++Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=m+iVerlUNqAW5DSLfymFd18Aa+jNaCXhphLLXfU0VIA=; b=DAI0o9EUArYnzD3SPxreVjHcnvJcMa9S6iqtqRPr5ZjMbpSzfhiyJB4ag9FYj732lw J7nteuzh0l4nkZTQ+bPVx/niyfsj6TjRgPhSp34AzxtQmGO1WKUSAWlgTMPb9aeCRYJD TsE9EdQuggExFFJNOcrx8khZQYtky5+iWXWgaW7tiyUKF1JdNtCqv5tze1bcx/bSZ9Ts FSJyiYqUWXmHcvhsLmpkEyoi5A33mvqpcKfgaqZL8jDZAxWweKiah56+F25WHef9Bwu0 fLiv12YOZPyX1H0Yuy233rEvPPyzb+ITECIutgLFLfKqB0HrFZObQqfOQVFEzaVx+OUu qU9w== X-Gm-Message-State: AOAM530ltPRXTW2w5eQAKoDyBjtrrxjKDJ8R7l2jk1eb8x7oRVHr0+/D fbqtE1GDB2isIPajECERyzw= X-Received: by 2002:ae9:f503:: with SMTP id o3mr1925852qkg.447.1599840063843; Fri, 11 Sep 2020 09:01:03 -0700 (PDT) Received: from ubuntu-n2-xlarge-x86 ([2604:1380:45d1:2600::1]) by smtp.gmail.com with ESMTPSA id g25sm3061622qto.47.2020.09.11.09.01.03 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 11 Sep 2020 09:01:03 -0700 (PDT) Date: Fri, 11 Sep 2020 09:01:01 -0700 From: Nathan Chancellor To: Jakub Kicinski Cc: Russell King - ARM Linux admin , David Miller , andrew@lunn.ch, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, clang-built-linux@googlegroups.com Subject: Re: [PATCH net-next] net: mvpp2: Initialize link in mvpp2_isr_handle_{xlg,gmac_internal} Message-ID: <20200911160101.GA4061896@ubuntu-n2-xlarge-x86> References: <20200910174826.511423-1-natechancellor@gmail.com> <20200910.152811.210183159970625640.davem@davemloft.net> <20200911003142.GA2469103@ubuntu-n2-xlarge-x86> <20200911111158.GF1551@shell.armlinux.org.uk> <20200911082236.7dfb7937@kicinski-fedora-pc1c0hjn.dhcp.thefacebook.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200911082236.7dfb7937@kicinski-fedora-pc1c0hjn.dhcp.thefacebook.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Sep 11, 2020 at 08:22:36AM -0700, Jakub Kicinski wrote: > On Fri, 11 Sep 2020 12:11:58 +0100 Russell King - ARM Linux admin wrote: > > On Thu, Sep 10, 2020 at 05:31:42PM -0700, Nathan Chancellor wrote: > > > Ah great, that is indeed cleaner, thank you for letting me know! > > > > Hmm, I'm not sure why gcc didn't find that. Strangely, the 0-day bot > > seems to have only picked up on it with clang, not gcc. > > May be similar to: https://lkml.org/lkml/2019/2/25/1092 > > Recent GCC is so bad at catching uninitialized vars I was considering > build testing with GCC8 :/ It is even simpler than that, the warning was straight up disabled in commit 78a5255ffb6a ("Stop the ad-hoc games with -Wno-maybe-initialized"). clang's -Wuninitialized and -Wsometimes-uninitialized are generally more accurate but can have some false positives because the semantic analysis phase happens before inlining and dead code elimination. Cheers, Nathan