Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp14108678rwb; Sun, 27 Nov 2022 17:47:57 -0800 (PST) X-Google-Smtp-Source: AA0mqf78ybGjXmoSJvd6GDBo/HhOD1BIm62LSLG7xLplWqjRJtT/ebcJbpa7vpOEY0P3g3qjcUXx X-Received: by 2002:a17:90b:48c8:b0:20b:16bc:8493 with SMTP id li8-20020a17090b48c800b0020b16bc8493mr52490873pjb.210.1669600077565; Sun, 27 Nov 2022 17:47:57 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1669600077; cv=none; d=google.com; s=arc-20160816; b=x/3u5G1oVRcPxtf+Z2SpNbzNBFxBPBs4bMjVnaNlsaamcRnBc3FD63hYUj+ZTV9qBK EXx/Mj2VahRfr44aS/h+eShAizawz38xY10SSxOechAWz8osBw7cKmT4vQWfB+pdMNKb 2HTffacolvEmTDAAlD6jd3IwhEnBiK4TkUthtr5ywTopBofvzA48JlwzYpLc2L/EbxWb W47DPvizI4G/0FVq0uR4BBZxunqRpk6fmMuheS38pOxTLVdUblaY9iiUYjvMc4WjWpIE zGHItcCqIM1iLEqYCF8PySEzgtPXTK/uqwZfRrG+MC0PTgCtaj5LImVBnY/4n15ubixW wvug== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:mime-version :dkim-signature; bh=eHIyETS1lGz31szWszpuBGcrsTyrBOqWhdPJ/l2FVS4=; b=s1d0YOpEtXwJw1yH+i+wG/uqQS3A0pXqt5j2ZGt/CEM1AlA8razUiuSrrJrMhyzJXh hHKddFkKz9dzoz0842A8z6wDwvRi87QZWW/v3CA37N88H/jrzYuVKtD6V4324l39+ECT WfXKJPQSK4TqTUoXxSgzKnq+HMXddBs2gjdrMa6syrsPhRoDyGjKB/IhMW62kN/G/2/Y EG24L6ZgWGW+W+gDFdJR5o0T7jmm32WoEskx17tGKVmAfXQuUv/Kw97q0mutig3W8+88 czs+CpvHSnTmOVzxucWja7iApKHy63eVWcQEi2T3UiCt4k0zkEBwjkbJlhypR3818J5m Oc0g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ivan-computer.20210112.gappssmtp.com header.s=20210112 header.b=1JJpTxD0; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id p19-20020a63fe13000000b0046f55fec417si9509008pgh.650.2022.11.27.17.47.46; Sun, 27 Nov 2022 17:47:57 -0800 (PST) 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=@ivan-computer.20210112.gappssmtp.com header.s=20210112 header.b=1JJpTxD0; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229569AbiK1BbB (ORCPT + 86 others); Sun, 27 Nov 2022 20:31:01 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45770 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229475AbiK1Ba7 (ORCPT ); Sun, 27 Nov 2022 20:30:59 -0500 Received: from mail-pg1-x535.google.com (mail-pg1-x535.google.com [IPv6:2607:f8b0:4864:20::535]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3AB5DA440 for ; Sun, 27 Nov 2022 17:30:58 -0800 (PST) Received: by mail-pg1-x535.google.com with SMTP id h33so3663175pgm.9 for ; Sun, 27 Nov 2022 17:30:58 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ivan-computer.20210112.gappssmtp.com; s=20210112; h=cc:to:subject:message-id:date:from:mime-version:from:to:cc:subject :date:message-id:reply-to; bh=eHIyETS1lGz31szWszpuBGcrsTyrBOqWhdPJ/l2FVS4=; b=1JJpTxD0a8aytT36HRDIfBru8y7OZTgRm7PdgOY6gy6PD9GHFELU72jGFjGO6J8/kw WhlyYzlRl6m64T6QyYofo+twwOtHP81UTpLgy75ULc24232lclKbTKSJD9HmgGOPQc63 LmsM6Vdr52hNYo/fa8YKM+iiawOkUb3XBjY6OhYUUqpHIc+apRKCuy//mUV8EVdPEHvX qLsU6rezwssHrptLb12nUWOdXxSY6T+Cv8q200y+CE760/d6KIJwDSHaCPUQxLYXNkog 5LaxLPIqZNfXJlQmG9GCGhFTWCLF4JUOdqC5SaAKbMR5JCXeCzPk4DjAKljJ0q6zME7k 5gJQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:subject:message-id:date:from:mime-version:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=eHIyETS1lGz31szWszpuBGcrsTyrBOqWhdPJ/l2FVS4=; b=DJxdRX9oJ38O6bWIQISDlA4HcMnkvLkR6hbgll31fL/JayFc3BQVyArgzya4LYvFZy kdI5bPlckPXFz9KI81ndU2+nojkpO5YZUKHxWG8PqaWPMVreMaJPDEk1yp+kQBjoljQu FjgaQIB0+7ZmHtVbHu7H6b7/JQzwWBZ8g3NUlxXjZSYkzrnsHtSbtlXoh9wil9CT964K JqJboShdqmoBd9smlXShX0iYwphr33hjr3DBrXqC097BqBcB875SB32X0FJhFWcxRE41 PPTzRIga9qGMnMe77c2EEMAq+BdpLsN5sdKWl8lhQ/127Owck2T4JNbyCPUCWJQoczaS 2xGw== X-Gm-Message-State: ANoB5plQUxIIlsil8eIOqfXvpXNpyC8aIUwV0begDg29fXZMn1yjoLUZ UxY9/iYlVkN+SR06U3MzcsZl4ZIaNVDYxKkIK0o/2gN/C0I+dQ== X-Received: by 2002:a62:ea0e:0:b0:575:7bb:d6fc with SMTP id t14-20020a62ea0e000000b0057507bbd6fcmr6245800pfh.79.1669599057711; Sun, 27 Nov 2022 17:30:57 -0800 (PST) MIME-Version: 1.0 From: Ivan Babrou Date: Sun, 27 Nov 2022 17:30:47 -0800 Message-ID: Subject: Unused variable 'mark' in v6.1-rc7 To: Daniel Xu Cc: Pablo Neira Ayuso , netdev@vger.kernel.org, linux-kernel@vger.kernel.org Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_NONE 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 There's 52d1aa8b8249 in v6.1-rc7: * netfilter: conntrack: Fix data-races around ct mark It triggers an error: #19 355.8 /build/linux-source/net/netfilter/nf_conntrack_netlink.c: In function '__ctnetlink_glue_build': #19 355.8 /build/linux-source/net/netfilter/nf_conntrack_netlink.c:2674:13: error: unused variable 'mark' [-Werror=unused-variable] #19 355.8 2674 | u32 mark; #19 355.8 | ^~~~ #19 355.8 cc1: all warnings being treated as errors If CONFIG_NF_CONNTRACK_MARK is not enabled, as mark is declared unconditionally, but used under ifdef: #ifdef CONFIG_NF_CONNTRACK_MARK - if ((events & (1 << IPCT_MARK) || ct->mark) - && ctnetlink_dump_mark(skb, ct) < 0) + mark = READ_ONCE(ct->mark); + if ((events & (1 << IPCT_MARK) || mark) && + ctnetlink_dump_mark(skb, mark) < 0) goto nla_put_failure; #endif To have NF_CONNTRACK_MARK one needs NETFILTER_ADVANCED: config NF_CONNTRACK_MARK bool 'Connection mark tracking support' depends on NETFILTER_ADVANCED It's supposed to be enabled by default: config NETFILTER_ADVANCED bool "Advanced netfilter configuration" depends on NETFILTER default y But it's not in defconfig (it's missing from arm64 completely): $ rg NETFILTER_ADVANCED arch/x86/configs/x86_64_defconfig 93:# CONFIG_NETFILTER_ADVANCED is not set I think the solution is to enclose mark definition into ifdef as well and I'm happy to send a patch if you agree and would like me to.