Received: by 2002:a05:6358:45e:b0:b5:b6eb:e1f9 with SMTP id 30csp150155rwe; Tue, 30 Aug 2022 23:35:10 -0700 (PDT) X-Google-Smtp-Source: AA6agR6XVqLL9UG17oc7KCDLlQeMwSpMcQLttkBiILxDXv1Uot/M5QTvkBopAntIf2nmkTaVYBOh X-Received: by 2002:a17:90b:1d0e:b0:1fb:772a:5cb7 with SMTP id on14-20020a17090b1d0e00b001fb772a5cb7mr1706700pjb.206.1661927709770; Tue, 30 Aug 2022 23:35:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1661927709; cv=none; d=google.com; s=arc-20160816; b=Im/B9sWxx9WAYjryalmCPOHu5c8IOoAi4V2i3vi/v6UbDZHXxu1zxL+9qTkJH7EYDt kHpezoR6rzJ7k02QTUM1/u/gr/I/CEpl50DbZ0bTD0OEXVOImfsMFypPQQg5B5xaSBj0 /yEbldRsNiVVofAFnwXGkSrrmDW0merN6kbLvKyorX9K336qajCK0ENdyg+OBG28j+rQ qYm4JR3dwcjzV+vb2LqKRPvCxOEm6ubabU1yBO5D5WoEJ+92LuLaTCgAtV9G4wXL3Ij4 DDN7Z6E0GrSoc8Sc7oHkg20xlcFINE8Q3pVhc/lrNhyPUjcmd2jHs+qJBWzpe/WuzRNL 9aMA== 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=PoYtp394xaqwpg+yCvzV/cZKKkS7eE1/l0af04zbnzU=; b=Ked6DhgBvr8W7vkRtI3epd+GV/WgqlVDkVcAy4dP30EMA91/9MLtJWLyTR0PsxWhGB 1grqRKbt3D1yb6FZoay/JE40dqJDUZ4VN4dVVleis8elsL8mhHimN92QidQ1KqilxR+/ QgnvuCHa3/nIUfWstcUsEl/zHVJHKESpSXE0M2OitguD8krui5g8yKlTb90XqSi6sN22 NJAPM4vEzB0ItD3f0WjGVEXm/IXamuhCQArNfRXARCvUrG7ER5XyO9+G9thtl+VAbMHK mohABbm3mpHLtk64CEXFEwX18x9xWJIcxphueVMj39Lb9qhvN9fjoBnpHwVpRU8BYIit joSQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=QtCR3Y5R; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id f10-20020a170902ce8a00b00170a89f0d8asi7160371plg.310.2022.08.30.23.34.58; Tue, 30 Aug 2022 23:35:09 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=QtCR3Y5R; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 S230271AbiHaGa1 (ORCPT + 99 others); Wed, 31 Aug 2022 02:30:27 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48730 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230244AbiHaGaY (ORCPT ); Wed, 31 Aug 2022 02:30:24 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4D6DB5C36A; Tue, 30 Aug 2022 23:30:20 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id 62041B81F42; Wed, 31 Aug 2022 06:30:19 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPS id 0E863C43142; Wed, 31 Aug 2022 06:30:18 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1661927418; bh=htLQg79mi3SvkoKP5SEjIUC3OCtpqE0sPOEq4nLXHS0=; h=Subject:From:Date:References:In-Reply-To:To:Cc:From; b=QtCR3Y5RYuUnBjmhDyX8LRveCXYFTG/m9Bk6ARazxCBxysIVT09VZIBrSX8H0JI8i ORaU74Q9xDjZ/B/2TCwVetW2tGYy4JCYrr67jLYH3YE1kIGZoDA2fczA9kVj5NZDIo XOBP84aQcScsaHqTxEgJ8Za7clV9hTJaFZZBGK02hsfMa7bgCTCEVmSequx9QbxJQu noC/KTh5PFdZbAus4JbX+1hAUwWJY6Pdq8XQe/09FWk315mZ9hxEYUfRrDux6xz9NQ aSVeOUJA/m20a84WUvKmEaI3NKcpsr7ofraI+3P/myq9XLx2EbQ1SZpsYh4dTOpxzd aqFQImSZqSqzg== Received: from aws-us-west-2-korg-oddjob-1.ci.codeaurora.org (localhost.localdomain [127.0.0.1]) by aws-us-west-2-korg-oddjob-1.ci.codeaurora.org (Postfix) with ESMTP id E8E53C4166F; Wed, 31 Aug 2022 06:30:17 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: Re: [PATCH net-next] net/mlx5e: Do not use err uninitialized in mlx5e_rep_add_meta_tunnel_rule() From: patchwork-bot+netdevbpf@kernel.org Message-Id: <166192741795.4297.2723160789044266807.git-patchwork-notify@kernel.org> Date: Wed, 31 Aug 2022 06:30:17 +0000 References: <20220825180607.2707947-1-nathan@kernel.org> In-Reply-To: <20220825180607.2707947-1-nathan@kernel.org> To: Nathan Chancellor Cc: saeedm@nvidia.com, leon@kernel.org, davem@davemloft.net, edumazet@google.com, kuba@kernel.org, pabeni@redhat.com, ndesaulniers@google.com, trix@redhat.com, netdev@vger.kernel.org, linux-rdma@vger.kernel.org, linux-kernel@vger.kernel.org, llvm@lists.linux.dev, patches@lists.linux.dev X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham 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 Hello: This patch was applied to netdev/net-next.git (master) by Jakub Kicinski : On Thu, 25 Aug 2022 11:06:07 -0700 you wrote: > Clang warns: > > drivers/net/ethernet/mellanox/mlx5/core/en_rep.c:481:6: error: variable 'err' is used uninitialized whenever 'if' condition is false [-Werror,-Wsometimes-uninitialized] > if (IS_ERR(flow_rule)) { > ^~~~~~~~~~~~~~~~~ > drivers/net/ethernet/mellanox/mlx5/core/en_rep.c:489:9: note: uninitialized use occurs here > return err; > ^~~ > drivers/net/ethernet/mellanox/mlx5/core/en_rep.c:481:2: note: remove the 'if' if its condition is always true > if (IS_ERR(flow_rule)) { > ^~~~~~~~~~~~~~~~~~~~~~~ > drivers/net/ethernet/mellanox/mlx5/core/en_rep.c:474:9: note: initialize the variable 'err' to silence this warning > int err; > ^ > = 0 > 1 error generated. > > [...] Here is the summary with links: - [net-next] net/mlx5e: Do not use err uninitialized in mlx5e_rep_add_meta_tunnel_rule() https://git.kernel.org/netdev/net-next/c/92f97c00f0ca You are awesome, thank you! -- Deet-doot-dot, I am a bot. https://korg.docs.kernel.org/patchwork/pwbot.html