Received: by 2002:a05:7412:a9a2:b0:e2:908c:2ebd with SMTP id o34csp2422897rdh; Sun, 29 Oct 2023 15:58:36 -0700 (PDT) X-Google-Smtp-Source: AGHT+IESZHTGRa+v8SnK0PNdxSSm9LghoWlVQ0SlIfgvc51o7lx/YoMBdHGW3sx8SZp1CqBHYwhT X-Received: by 2002:a05:6808:f8e:b0:3af:8050:369f with SMTP id o14-20020a0568080f8e00b003af8050369fmr11008292oiw.6.1698620316605; Sun, 29 Oct 2023 15:58:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1698620316; cv=none; d=google.com; s=arc-20160816; b=ySVzNCdVykd1AoSpeaGge6wCERbE6XrJc6jru7oQOgt8+1IYHP7Cr3x4cjHim7dZdL PmQ7v2HPIZqV40Y4onj2JjxaIRHw11JOVp9vyGsqBWZk2i+Y+9ifJvXIi0dA8/yp9NAX qcGnEZ9gVYTBuZkAy4jYuWjUVvoNhERUVNNuoHSUZuVXhRKdGX46Yap4cCl3DMzqGXVF uyHnYZvi5x8FBzufd9bAftx79qypjc/bhfhH/Q42Utk2Y5hPKfXIFgn3cnzZ1r+ulqdr 8BcPuPJVz+WxGmEAlbF90IjkA5HqmIWDelublJkaEVZGgHLdr1Yc/x1k/IQPiFnY12yH BOVQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=CjJQsy6myCukV3PMm7Ol195KXH0Ig1lrq2OQt5pNbqk=; fh=3OLifzkIdAK8vE5XMTThXalVoSJRtS98VWq+Bj7mLpA=; b=ZrF6w0+1q7XI8PNPzWs0l12bhHGSG58nor0Kld/caDEMG+Ry01Tz8xjeFZY2oq3jI+ x1exdM5wpAYGq1TQjELKdL7GTnmhKEqEa9P7kupiENIGylIsSuaGjx0f9w9N+J8gsgrw Mz34K9BDhIDnSE3B7bHrOBq+TsXjOl1AbtHoaD8WB19nO35a+Qo1+/OLOzRrT8XtwaI/ CALB4p43R41vjq5NwvfSs8frD/+QGxgnljxc7X6ZaI3OCzi+NHNsURD8zVB9/GQmTn3o uKceWzofumuW0/9tH9xqHizHpaQZXI8qkLIbvK/tf7uz0QiQ0AkCZ0V6w/g1KGWRmgsu Uddw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=SXFR4Msx; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 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 lipwig.vger.email (lipwig.vger.email. [2620:137:e000::3:3]) by mx.google.com with ESMTPS id h65-20020a636c44000000b005ab6142f1besi4125047pgc.169.2023.10.29.15.58.36 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 29 Oct 2023 15:58:36 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 as permitted sender) client-ip=2620:137:e000::3:3; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=SXFR4Msx; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by lipwig.vger.email (Postfix) with ESMTP id 3FD7D805D571; Sun, 29 Oct 2023 15:58:33 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at lipwig.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230488AbjJ2W62 (ORCPT + 99 others); Sun, 29 Oct 2023 18:58:28 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52902 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230509AbjJ2W6R (ORCPT ); Sun, 29 Oct 2023 18:58:17 -0400 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3F38D1994; Sun, 29 Oct 2023 15:55:25 -0700 (PDT) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 6D878C433D9; Sun, 29 Oct 2023 22:55:17 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1698620118; bh=V10r/fY0B71Jt12SKb4l4Gur1/4PIp2XJND+EDLBO/M=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=SXFR4MsxTL+6GAzYJWIjjOY7ychtp2gxeGU+j+b7bbuXMv8HX7RWlvOhUSrvylVHx xo3gf+PwMUYH+wGweFw++sJNNHCOOh9mn1HllLRxlbuRMh7mwTP496Hgyn+KzB9Yzy NGZcXZxqrNn7XBXiEGqvr/DgLjXuxst+8xVWtec0GhKhXp+jJAoeZGUmxe/nrD1mH2 e4BmJ7NQWg45UyuRwx8DS7Azf9dCoV0mkHFXj25SZUOKlMeCKQ2ESxH9c2rMCawDg9 9KdtRkL4iABQTP5S8Hun1iyhCy2pMHqKH1/q2vgVbasV1cLF3kDbCHE4WvO3BKR97A 2LPJ2tSU+Mnng== From: Sasha Levin To: linux-kernel@vger.kernel.org, stable@vger.kernel.org Cc: Florian Westphal , kernel test robot , Sasha Levin , pablo@netfilter.org, kadlec@netfilter.org, davem@davemloft.net, edumazet@google.com, kuba@kernel.org, pabeni@redhat.com, netfilter-devel@vger.kernel.org, coreteam@netfilter.org, netdev@vger.kernel.org Subject: [PATCH AUTOSEL 6.5 24/52] netfilter: nfnetlink_log: silence bogus compiler warning Date: Sun, 29 Oct 2023 18:53:11 -0400 Message-ID: <20231029225441.789781-24-sashal@kernel.org> X-Mailer: git-send-email 2.42.0 In-Reply-To: <20231029225441.789781-1-sashal@kernel.org> References: <20231029225441.789781-1-sashal@kernel.org> MIME-Version: 1.0 X-stable: review X-Patchwork-Hint: Ignore X-stable-base: Linux 6.5.9 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-1.7 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lipwig.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (lipwig.vger.email [0.0.0.0]); Sun, 29 Oct 2023 15:58:33 -0700 (PDT) From: Florian Westphal [ Upstream commit 2e1d175410972285333193837a4250a74cd472e6 ] net/netfilter/nfnetlink_log.c:800:18: warning: variable 'ctinfo' is uninitialized The warning is bogus, the variable is only used if ct is non-NULL and always initialised in that case. Init to 0 too to silence this. Reported-by: kernel test robot Closes: https://lore.kernel.org/oe-kbuild-all/202309100514.ndBFebXN-lkp@intel.com/ Signed-off-by: Florian Westphal Signed-off-by: Sasha Levin --- net/netfilter/nfnetlink_log.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/net/netfilter/nfnetlink_log.c b/net/netfilter/nfnetlink_log.c index e57eb168ee130..984f6f106e4ac 100644 --- a/net/netfilter/nfnetlink_log.c +++ b/net/netfilter/nfnetlink_log.c @@ -700,8 +700,8 @@ nfulnl_log_packet(struct net *net, unsigned int plen = 0; struct nfnl_log_net *log = nfnl_log_pernet(net); const struct nfnl_ct_hook *nfnl_ct = NULL; + enum ip_conntrack_info ctinfo = 0; struct nf_conn *ct = NULL; - enum ip_conntrack_info ctinfo; if (li_user && li_user->type == NF_LOG_TYPE_ULOG) li = li_user; -- 2.42.0