Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp634295pxj; Thu, 3 Jun 2021 15:43:06 -0700 (PDT) X-Google-Smtp-Source: ABdhPJysJHgqcWuZdBsYuplALCgbOHChrjOkFoQI/OqAuiLbULyNIl22PnEd2yVWOyposEmY0Ema X-Received: by 2002:a17:906:13db:: with SMTP id g27mr1401129ejc.88.1622760186374; Thu, 03 Jun 2021 15:43:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1622760186; cv=none; d=google.com; s=arc-20160816; b=A0hde0EpXVe19he2xFUVJs4VZg/vyYYzAxK7RWlTW6SEwN+qgno1exa0oq/orOn76p xZMRuf5bUANu9VIHZrI22aV2rV9O4pG9L299rcOiN07/08BdYqoUeQ4Me4cZ9LrqQx1x BNUwJVb3vhORMmB9UCEWbXUcbO/Pd49n0bTFU9LQc8UtvHty7NzW/lorzRyEUY9QOzIp qz6+17WZFhVTdK6/Ui9Js98IRK6IzXMY3AlVqU2rCgScfcXTi4IvjTuXJ/pEM5tH+c/G EHS72enlmMblJw6ZNpWyOtSUz9cxyTotdolcV2jb1jk6hxqc50NO1gDVLTy4zbdkSD4k DnDA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:in-reply-to:references:date:message-id :from:subject:content-transfer-encoding:mime-version:dkim-signature; bh=4AyToCR/m0tbtjuav6twJx7RvNKwV4wzTs925w3k7Uo=; b=r98bBYAdviNHziagc3BuaA/9JwSk2hcveYE5MLKUBQXlrHGtEwaJaushyAImkKNEo7 e5PAlEqIreHStj/sQFDA64GjFG4ky5sTqa5lM9mWXYCOxusiqJVdtHrAPM2UwN609a75 cZF8LkmSmpw35U35q932wH3eBALqJT2Ie8VqHoUvWVlY+RuBN9qWpUtzChvceag3zYGc gRsGL3ENkR+6F31xKP29VEpIr3nIzPCW3EOtmrJZGgS4BIJZ/qKKZ2xS4bcpNuMy2kwW eY4UCEkvwQfdD2tHi/ibdxPoRllJaWtSv5eb4nT1Sslx9BMfdHW65rOh7Ct/897j2Wjg sFSw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=Sy9numyB; 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=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id kj24si3224037ejc.27.2021.06.03.15.42.37; Thu, 03 Jun 2021 15:43:06 -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=@kernel.org header.s=k20201202 header.b=Sy9numyB; 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=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229814AbhFCWlz (ORCPT + 99 others); Thu, 3 Jun 2021 18:41:55 -0400 Received: from mail.kernel.org ([198.145.29.99]:46964 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229704AbhFCWlv (ORCPT ); Thu, 3 Jun 2021 18:41:51 -0400 Received: by mail.kernel.org (Postfix) with ESMTPS id 1FE6061401; Thu, 3 Jun 2021 22:40:06 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1622760006; bh=eq5oVITcnOyriOj/YeyTGVhxV8NBkbowh22WDOn/I6M=; h=Subject:From:Date:References:In-Reply-To:To:Cc:From; b=Sy9numyBtjsTThqZ+CsJyxn7ke+kZC6sZCmKcCvSDlCBvJIcxKIRFi0qPR3bnlhyM aUZ0AYzMvFvPQQ444+lKWTElHNgsbK/j6RFpeT2p+9I39A/OL9hogOVqTLQXVaiXbS jAs4gy0qvZGHaWOxgfzEZmmwE0P5zKfG45Pi6rf5HmKk2IXTfHzdmwwl6o/3EHXkaP P+pO5lbEXHyGHmMDciKX7YerFw367QC9Hb/ahdygQLWIQenf6dGF13aaWH6MpvWCbW 9LexBDaHKZpUy5VfterandyWB4znZTjmczB9mQ9QArEcGCyhLKpOU8wNw+8iWHnVT9 f3+HwsNq8pI3Q== Received: from pdx-korg-docbuild-2.ci.codeaurora.org (localhost.localdomain [127.0.0.1]) by pdx-korg-docbuild-2.ci.codeaurora.org (Postfix) with ESMTP id 0DCC460BFB; Thu, 3 Jun 2021 22:40:06 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: Re: [PATCH net-next] net: ethernet: rmnet: Restructure if checks to avoid uninitialized warning From: patchwork-bot+netdevbpf@kernel.org Message-Id: <162276000605.13062.14467575723320615318.git-patchwork-notify@kernel.org> Date: Thu, 03 Jun 2021 22:40:06 +0000 References: <20210603173410.310362-1-nathan@kernel.org> In-Reply-To: <20210603173410.310362-1-nathan@kernel.org> To: Nathan Chancellor Cc: subashab@codeaurora.org, stranche@codeaurora.org, davem@davemloft.net, kuba@kernel.org, ndesaulniers@google.com, sharathv@codeaurora.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, clang-built-linux@googlegroups.com Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hello: This patch was applied to netdev/net-next.git (refs/heads/master): On Thu, 3 Jun 2021 10:34:10 -0700 you wrote: > Clang warns that proto in rmnet_map_v5_checksum_uplink_packet() might be > used uninitialized: > > drivers/net/ethernet/qualcomm/rmnet/rmnet_map_data.c:283:14: warning: > variable 'proto' is used uninitialized whenever 'if' condition is false > [-Wsometimes-uninitialized] > } else if (skb->protocol == htons(ETH_P_IPV6)) { > ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ > drivers/net/ethernet/qualcomm/rmnet/rmnet_map_data.c:295:36: note: > uninitialized use occurs here > check = rmnet_map_get_csum_field(proto, trans); > ^~~~~ > drivers/net/ethernet/qualcomm/rmnet/rmnet_map_data.c:283:10: note: > remove the 'if' if its condition is always true > } else if (skb->protocol == htons(ETH_P_IPV6)) { > ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ > drivers/net/ethernet/qualcomm/rmnet/rmnet_map_data.c:270:11: note: > initialize the variable 'proto' to silence this warning > u8 proto; > ^ > = '\0' > 1 warning generated. > > [...] Here is the summary with links: - [net-next] net: ethernet: rmnet: Restructure if checks to avoid uninitialized warning https://git.kernel.org/netdev/net-next/c/118de6106735 You are awesome, thank you! -- Deet-doot-dot, I am a bot. https://korg.docs.kernel.org/patchwork/pwbot.html