Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp3370050ybl; Sun, 8 Dec 2019 13:40:14 -0800 (PST) X-Google-Smtp-Source: APXvYqysQ+m5OHLl3qFCbqUOCIA5/f3BCNY9eNYff9ijqnqXig4HNUdgYjJK/emnrQ2KFA1FLn8h X-Received: by 2002:a9d:70d2:: with SMTP id w18mr20219843otj.48.1575841214411; Sun, 08 Dec 2019 13:40:14 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1575841214; cv=none; d=google.com; s=arc-20160816; b=sZea3PKrrdPryhaXHsXvbp/PRiKWD8hppy7Ie+Hh8pzgyb1WnKodKHEoZvgygBG+VL oUCeSCku8vyFjGdVKVrKncEIXv2toEihfq4RVR55QgcGF8vHoQeiTnY9e7UJELJvowfY 1rxIL4fQNza8oio9X3a75V4NK/jR3S98BMcyCwLWCH7CYa1qMTx9a0s2uvS7i2Xz/xbr zvNJD2FakZy7N56K01jpk4u6lUyWSdullB2Qw2uGkM2vPPlGxrBN9kDSRPPlxcS57z9i jLj92j5b6lofZ/ZzcsGcLJSPOfTbAcCRtHdatbJZ0D4FKQ/eeVsBfw1uHQIwBRuDxHTG vqGg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=uSATXKDDmvR07T7kUi8rHi7RN+bAfLLpofRbY4BLnYc=; b=XUn3gUTbJNfBFOWbWaPqFryKNhO8Tb67wUQqPlSMHN6mPk2p+66P8rDIj3HlBxaNVO 6e5jw4VwqUdsmrRHKmkzbSssfXFVKpIASo3pFvX8O0TA7NZOfCgOPL4VWLLxhnPlmRfN c6hXKH6eGO35A5mDWX4Aj2ukvX0/P9B9ykJUx/5D6hbiiGev30XwJLSuXwdsyibubDeU VZENrlWt669M5AP/igEx8RXmDFwNwwdr4CXNYbR+TtwK2yRNtEkYVV69pCCDXX8DXKxT Fsz2/bLeLa7ggccy2wM71ly0J9PjhxxVMYvwBSXcwdQc6MZYJTeCl3grz1cye0bJygB9 QXig== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linux-foundation.org header.s=google header.b=QDp02WtO; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id s65si4087600otb.260.2019.12.08.13.39.51; Sun, 08 Dec 2019 13:40:14 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@linux-foundation.org header.s=google header.b=QDp02WtO; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726687AbfLHVf3 (ORCPT + 99 others); Sun, 8 Dec 2019 16:35:29 -0500 Received: from mail-lf1-f65.google.com ([209.85.167.65]:47048 "EHLO mail-lf1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726640AbfLHVf2 (ORCPT ); Sun, 8 Dec 2019 16:35:28 -0500 Received: by mail-lf1-f65.google.com with SMTP id f15so8291942lfl.13 for ; Sun, 08 Dec 2019 13:35:27 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux-foundation.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=uSATXKDDmvR07T7kUi8rHi7RN+bAfLLpofRbY4BLnYc=; b=QDp02WtOAAN8JLUWqKZ1RMBdvq52AFxQlA60k5ue1vPtqtI974JZyKwoY75VqFwxG5 wUDgZAaIsmJW7fwWatKJDfq6JFa//u0FMI769Ck5v6nuPBk6RQObsYioypzjwB8qy/O7 ieejU5X44533UrSnW+Luvu+jyOKat8deoXhas= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=uSATXKDDmvR07T7kUi8rHi7RN+bAfLLpofRbY4BLnYc=; b=F3KGhe37R2h4hjmPwcMc1bqHOTyY3TPjyNtqfIWRkYXKbsMVIZBimVTfTQsxjcn/ub XFuAJsTRhX5+9cUWj01oAmUUE71Yw2JGFHAcPBBrYFconjwsqfIBME1EgzrvbIY7xiMt nvystLORrd8MT0RzxqWXhNBZ6pgITrpLi42nBoOLHMP+7JdoGDgCUSQX/BK8QUv3JsZh vg6QGd6N2f4THbQgRTGjW6C3L0FJJg7C24QsR+EshEhsS9ICdntRhupcd56CoiZCvwdV y6OHSrMzHYcnyy4yxjJOESNWRkw35NF9laMFk0BAGmqfOr9z/14N8KrH3egQj+XRoUyZ opVg== X-Gm-Message-State: APjAAAXFG1vFOLMAhoglm3ho9eDh8qJ6fR6wwBAger7euiKuxUL1F9IW 0s8UIpvCX6A9Gsa74UJzZT5/gzlZwRY= X-Received: by 2002:ac2:424d:: with SMTP id m13mr13255965lfl.13.1575840925863; Sun, 08 Dec 2019 13:35:25 -0800 (PST) Received: from mail-lj1-f177.google.com (mail-lj1-f177.google.com. [209.85.208.177]) by smtp.gmail.com with ESMTPSA id c12sm7623854lfp.58.2019.12.08.13.35.24 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sun, 08 Dec 2019 13:35:25 -0800 (PST) Received: by mail-lj1-f177.google.com with SMTP id e10so13339749ljj.6 for ; Sun, 08 Dec 2019 13:35:24 -0800 (PST) X-Received: by 2002:a2e:86c4:: with SMTP id n4mr10154411ljj.97.1575840924390; Sun, 08 Dec 2019 13:35:24 -0800 (PST) MIME-Version: 1.0 References: <20191208.012032.1258816267132319518.davem@redhat.com> In-Reply-To: <20191208.012032.1258816267132319518.davem@redhat.com> From: Linus Torvalds Date: Sun, 8 Dec 2019 13:35:08 -0800 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [GIT] Networking To: David Miller Cc: Andrew Morton , Netdev , Linux Kernel Mailing List Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sun, Dec 8, 2019 at 1:20 AM David Miller wrote: > > git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net.git Grr, This introduces a new warning for me: drivers/net/ethernet/mellanox/mlx5/core/en/tc_tun.c: In function =E2=80=98mlx5e_tc_tun_create_header_ipv6=E2=80=99: drivers/net/ethernet/mellanox/mlx5/core/en/tc_tun.c:332:20: warning: =E2=80=98n=E2=80=99 may be used uninitialized in this function [-Wmaybe-uninitialized] 332 | struct neighbour *n; | ^ which is very annoying. The cause is commit 6c8991f41546 ("net: ipv6_stub: use ip6_dst_lookup_flow instead of ip6_dst_lookup") which changed mlx5e_route_lookup_ipv6() to use ipv6_dst_lookup_flow() which returns an error pointer, so it then does if (IS_ERR(dst)) return PTR_ERR(dst); instead of if (ret < 0) return ret; in the old code. And that then means that the caller, which does err =3D mlx5e_route_lookup_ipv6(priv, mirred_dev, &out_dev, &route_= dev, &fl6, &n, &ttl); if (err) return err; and now gcc no longer sees that 'n' is always initialized when 'err' is zero. Because gcc apparently thinks that the if (IS_ERR(dst)) return PTR_ERR(dst); thing can result in a zero return value (I guess the cast from a 64-bit pointer to an 'int' is where it thinks "ok, that cast might lose high bits and become zero even when the original was tested to have a range where that will not happen). Anyway - the code is not buggy, but the new warning is simply not acceptable. We keep the build warning free even if it's gcc not being clever enough to see that "if it's uninitialized, we never get to the location where it's used". I don't know what the networking pattern for this is, but I did this in the merge -- struct neighbour *n; ++ struct neighbour *n =3D NULL; and I'm not happy about having gotten a pull request that has this kind of shit in it, especially since it was _known_ shit. It could have been that people had compilers that didn't see this problem. But no. I see that Stephen Rothwell reported it four days ago, and David seems to have even answered it. And yet that warning was still there in the pull request. WTF? David, this is not acceptable. You don't introduce new warnings in the tre= e. It doesn't matter one whit whether the warning is a false positive. A false positive warning will then be the cause of ignoring subsequent real warnings, which makes false positive warnings completely unacceptable. Fix your mindset, and stop sending me garbage. Linus