Received: by 2002:a05:7412:8521:b0:e2:908c:2ebd with SMTP id t33csp621159rdf; Fri, 3 Nov 2023 09:57:38 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGeDea9enVnoRih9ESnf9D/3Fsc8JCu7m/zpheUsN2rv7FZ+nRrF5s6P8T+QyDxBrAkttw1 X-Received: by 2002:a05:6358:7e8e:b0:169:a9d4:3faf with SMTP id o14-20020a0563587e8e00b00169a9d43fafmr7644280rwn.11.1699030658457; Fri, 03 Nov 2023 09:57:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1699030658; cv=none; d=google.com; s=arc-20160816; b=O5V0E9QBSeQdaUyco7KGUBLuh5pPlTp9LTMXOGo6nJ4/QCxX9GdNG4RPR7wYVfp94P gqVDd6BGtcr+UwjOWTJmagu9Et1SsBMArFpSFeebFBQmfv7/jeEKHiUMmdoR+7CI+BKc FilS9voY3P0OZRnCHkUA7v4KviWaqJg8nOi9xo6iZ64Hpw51qWRQAA+AlcpMrSkYi2BZ 9EJ0ljfLg9oIThR2ikwTs3KtJRoySViQRq1Uf35ui/Bl7xleSfjCLoE6mpptV1e733FC SDJyExuyAUZyF9zQInBUD0FfnXpF7PXo1Ig4VjGy6cVw4SZgW+bXYRIfo9i8TfZ+ytCy MbgQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=0lIsbDHPwaa1oft7g9fsOhHYzHACUbAbiF4uUBUfwbY=; fh=da/3GpmXEYc+m50kboZtQps40xGwB/VnkkSf9BTpdPI=; b=rz4WlSpl/A9wJY6Pt+zSBRz+jrgadgmE456xCJTUaH2AuCMxk/aEyAm7nYWGwqHeti Z4nlM1aQIoPFuhsDV6HC1jdCP36NskXQ69lUWfNpxevfoHdc7A9xd6XCegSWeAhdGqyv BOW7Bo9D6/JJo1+CX+vibMJyQjPQOFBXbc2TWTSpfF0q80U5jVMidHg6OvkbrIpMZtYO RUf2mOXa4z2YYd1Ey8hpiHKDtp0EScoEx+21tkJ5OUvP8dhfXfqqV+K3Cq+vK4GFuwd6 uvw49PncRgCs0Nn8Bt/wEPVjbemR7B4bKMg6FczUHx0iBIOjD+WP8WJwojxhxw+bhZjD mBdw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b=Evq6DIQO; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from snail.vger.email (snail.vger.email. [2620:137:e000::3:7]) by mx.google.com with ESMTPS id bz35-20020a056a02062300b005b97024487csi1919673pgb.315.2023.11.03.09.57.38 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 03 Nov 2023 09:57:38 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) client-ip=2620:137:e000::3:7; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b=Evq6DIQO; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by snail.vger.email (Postfix) with ESMTP id 1425983B7B78; Fri, 3 Nov 2023 09:57:37 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1345483AbjKCQ5e (ORCPT + 99 others); Fri, 3 Nov 2023 12:57:34 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35344 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1344556AbjKCQ5d (ORCPT ); Fri, 3 Nov 2023 12:57:33 -0400 Received: from mail-wm1-x333.google.com (mail-wm1-x333.google.com [IPv6:2a00:1450:4864:20::333]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 318331BF for ; Fri, 3 Nov 2023 09:57:30 -0700 (PDT) Received: by mail-wm1-x333.google.com with SMTP id 5b1f17b1804b1-4084095722aso16946015e9.1 for ; Fri, 03 Nov 2023 09:57:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1699030648; x=1699635448; darn=vger.kernel.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=0lIsbDHPwaa1oft7g9fsOhHYzHACUbAbiF4uUBUfwbY=; b=Evq6DIQOxByYYO7QSeQTHoS2dTq9/w30oya392LbIXOsFK0eq705Jn5vlK1hLfoMs5 CLU+mfUe6kT+aex+6nBXfVWVC7XbUFhyJkNleGfEAetrfcBkwnP7TZfyI6lWMrEXUyXA AT4w2uwPdUK/1dHuK0FpQeo6Ux0t3O0KXmfWFXdX1GTrmWcYgP+Yhlbct8e+C/NCkZkp iC6rMbEkPis4KEhwr9+rz8qCVO4OPIfXtXzOGthVDD+O7g02bPrGJbD9h0xDh1qfKSXX 7CTTMyTGViepzjAmWe3ulyUxQAOxzq4KF7BPIXhW/XrEeJglH5qpjKAwUPUuLeSxFj9b 297Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1699030648; x=1699635448; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=0lIsbDHPwaa1oft7g9fsOhHYzHACUbAbiF4uUBUfwbY=; b=X/9U51JRlmpbqlB8pltgLqbBAbROWskE6JbS6qF6TJhi42HMGXApNyusBDcjxl1hxK ezC7/nEDiW4Tg5OPW9LSCOK7cE0RmbufP+lVIHKBj16YdrzyWcz0EzOcrOR5aE2uIe/x rVh5dNtJp22DaRP4ZSiGVjVVSH36emBXVgSckGtT43YZG3phvApXBpgN3i0ElpWLngwS YQ6nkPLiVCP6F1EUYxGxTJUNfiabmIL5/SiDoFBpnUHVMtOVP+om4lzlO68YLFje/W+s F6V+vng31jllQYQLW4ROdiLPbmlbBZq0emVdfuVKptB4yP2yjEKrdXaaC+EQ0JcukNiS fQzA== X-Gm-Message-State: AOJu0YzhIHXdaeNIfI1UmVeZpZFMfHBy/HIUxAzU1Gn9i3jCqoq0UEIu xiwdAYQBWecuKrQ2h5zGtfkYISCnRmUcrwmUPScpmw== X-Received: by 2002:a05:6000:12c5:b0:32d:9755:44f1 with SMTP id l5-20020a05600012c500b0032d975544f1mr17649157wrx.32.1699030648342; Fri, 03 Nov 2023 09:57:28 -0700 (PDT) MIME-Version: 1.0 References: <20231031-tcp-ao-fix-label-in-compound-statement-warning-v1-1-c9731d115f17@kernel.org> In-Reply-To: From: Nick Desaulniers Date: Fri, 3 Nov 2023 09:57:17 -0700 Message-ID: Subject: Re: [PATCH net] tcp: Fix -Wc23-extensions in tcp_options_write() To: Christoph Hellwig Cc: Nathan Chancellor , edumazet@google.com, davem@davemloft.net, dsahern@kernel.org, kuba@kernel.org, pabeni@redhat.com, trix@redhat.com, 0x7f454c46@gmail.com, fruggeri@arista.com, noureddine@arista.com, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, llvm@lists.linux.dev, patches@lists.linux.dev, Thorsten Leemhuis Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-17.6 required=5.0 tests=BAYES_00,DKIMWL_WL_MED, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF, ENV_AND_HDR_SPF_MATCH,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE,USER_IN_DEF_DKIM_WL,USER_IN_DEF_SPF_WL autolearn=unavailable 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 X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (snail.vger.email [0.0.0.0]); Fri, 03 Nov 2023 09:57:37 -0700 (PDT) On Fri, Nov 3, 2023 at 1:22=E2=80=AFAM Christoph Hellwig wrote: > > On Tue, Oct 31, 2023 at 01:23:35PM -0700, Nathan Chancellor wrote: > > Clang warns (or errors with CONFIG_WERROR=3Dy) when CONFIG_TCP_AO is se= t: > > > > net/ipv4/tcp_output.c:663:2: error: label at end of compound statemen= t is a C23 extension [-Werror,-Wc23-extensions] > > 663 | } > > | ^ > > 1 error generated. > > > > On earlier releases (such as clang-11, the current minimum supported > > version for building the kernel) that do not support C23, this was a > > hard error unconditionally: > > > > net/ipv4/tcp_output.c:663:2: error: expected statement > > } > > ^ > > 1 error generated. > > > > Add a semicolon after the label to create an empty statement, which > > resolves the warning or error for all compilers. > > Can you please just split the A0 handlig into a separate helper, which > shuld make the whole thing a lot cleaner? Just a note; mainline is currently red over this for us since 1e03d32bea8e spent all of ~3 days in linux-next before getting merged into mainline. Whatever the fix is, it would be great to get it into mainline ASAP. --=20 Thanks, ~Nick Desaulniers