Received: by 2002:a05:7412:f589:b0:e2:908c:2ebd with SMTP id eh9csp683454rdb; Tue, 31 Oct 2023 21:50:15 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHFBJc1j/4LC/ps3PjF2BMspE0iFgmcqA4ppLcIoTV3DwF9KKQ/qpmK9d8Wfk59q1CtJRzY X-Received: by 2002:a05:6a21:193:b0:17a:eddb:acc2 with SMTP id le19-20020a056a21019300b0017aeddbacc2mr16499767pzb.46.1698814214988; Tue, 31 Oct 2023 21:50:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1698814214; cv=none; d=google.com; s=arc-20160816; b=aUk5zefGQ7yp6k0gMRab0mQ4pc6sj7fVehxWpFD1EwOAYEhzUxN4N3IT+Xvvn+Uf0M wQYX4D+0Eln1LjTv7LTd64I/9gEUCKHxcT21ltTXm8sRG+gDVF/PVRjOVW7j04S0fcGj pTwrUyrexwz0GCS4wJHAVHF87jxU8MIfOmCrKRRm1ynvkqPfD3AdCpTbaUCSRk11CKgn m+C8up+s61TjObbzCelSN82Qg0rwNTBRxGvZ4yMGPzCvjnR/mTyfbF+4lFcbxg2Zrwu3 ciJslrwUiOT7cA1p48Mv3HC8bxh9h+YMIevuAoOeSvKey9IhIvcN/pLl5fd3Z2Iak4RQ m5wg== 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=yhQrGrRiXOP6T/LjlMKW+7pqde7WtEKCtrVNN6uAKIY=; fh=07X0Om6Bi8MpgXPaH3t9KLP5hyJ6yk2C63KzrrHnnPg=; b=EDkwD7/ea1/g1jToOiRN3Pjrm6fPPKUpmblyD1TvUJdwxP2xbWGmG/V4lFc24b4u5w 0bEbdkaO2t1mioYZQcHuE8on7hevAwvmewVoH6MlbGZ++Zw7+5x95tCqf3yaobiSOzkx quG9q8JoIHRbcey81vz5GWvrGBXEOYndsLDghvomQUGlCtn5jT2pocn6YvklUJ9FEAte /YH6aZWO6mblrX7SsfI4IfKMi7w7OTLbrk4Vvp0xNtaVKVFG0CWB3qnZj45x/CRvDxin 6Ha5lA55eN+sR9wr0mgBf0HSbuYknCgwor5uT3L2ZbCuYh7L8LokQAMU52oAO1DGsIs0 mK/Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b=GFGQ5Jyx; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.36 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 pete.vger.email (pete.vger.email. [23.128.96.36]) by mx.google.com with ESMTPS id d18-20020a170903231200b001b7ea20dbf2si2248503plh.224.2023.10.31.21.50.13 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 31 Oct 2023 21:50:14 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.36 as permitted sender) client-ip=23.128.96.36; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b=GFGQ5Jyx; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.36 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 pete.vger.email (Postfix) with ESMTP id 752D08025C96; Tue, 31 Oct 2023 21:50:11 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at pete.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1346865AbjKAEuE (ORCPT + 99 others); Wed, 1 Nov 2023 00:50:04 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48006 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1345092AbjKAEuD (ORCPT ); Wed, 1 Nov 2023 00:50:03 -0400 Received: from mail-ed1-x535.google.com (mail-ed1-x535.google.com [IPv6:2a00:1450:4864:20::535]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 47F5C103 for ; Tue, 31 Oct 2023 21:50:01 -0700 (PDT) Received: by mail-ed1-x535.google.com with SMTP id 4fb4d7f45d1cf-54357417e81so7748a12.0 for ; Tue, 31 Oct 2023 21:50:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1698814200; x=1699419000; 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=yhQrGrRiXOP6T/LjlMKW+7pqde7WtEKCtrVNN6uAKIY=; b=GFGQ5JyxZLdxHR4X1IudqTZgn0B9fhT2jThnnP88CsB5w6UHDavcl1wvaMKeTJOQ5U NIM9nzE1qbb52hq+c6JV3NQNUYDi5jtUphaFM0ss5S+9tnzNztjP7/B0AX6LGUr6/aic wjAJfm7pIIcdf/zmlX5KnuioGyFFIGTs0KC/fNwhgKPGzWz8s3KhAO+TJw8WrnVYK8KN G0c97pWdPJwdH/n2/+a5lKbzNuJyo7I+4EYH6YyCiqFu+E8DJYvfDBMRmbOkGodw4Cg/ cx3ZY5sZ5WPiVV+WQ5dbUX5f9OhCWmYWR0zrIVVowD4+Z/r/hZ/66Mc/gsYrNP90m4Md rA0Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1698814200; x=1699419000; 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=yhQrGrRiXOP6T/LjlMKW+7pqde7WtEKCtrVNN6uAKIY=; b=mQWdKAz3wYurft7YRg6qUfbhXOJvqE2xcEDadqck1dHxI0627VlWsTVLAhUIiJ3976 9Kuuc1/SWFgUO5cE5DNF+cl1XCczls7z435cgD6H87ggeg25Xk7PUSU+87yBV5mLLBMm +RLH0AMEBorGx7128IXRDYDQBZgW5zfQCSUnKmwwk4o6Ta6epnylTQg/d/z/g+TJieQd OL2jXcTyzLoA/R7qe03FC4p/uU7s2Zxvgjuq3PySADeQT8vOGzerP/7Ppbohjt+l8NdJ aSOMWQlewnNAm42raetNnkcKV8dghqrZbvdiVV6mfR3sGdnND5zSZFjtmp5Hhg3izqgt qQXA== X-Gm-Message-State: AOJu0YzRlnVXSY6g1mHMWmCYn01fBCi+c+wuE+v9Qqfb3VHkmoaUZtuE 4iQvGWPX2zpDeTj2sxB9p2Xo7aEpnqXf9kSL0dse4g== X-Received: by 2002:a50:c04f:0:b0:542:d737:dc7e with SMTP id u15-20020a50c04f000000b00542d737dc7emr258881edd.0.1698814199560; Tue, 31 Oct 2023 21:49:59 -0700 (PDT) MIME-Version: 1.0 References: <20231031-tcp-ao-fix-label-in-compound-statement-warning-v1-1-c9731d115f17@kernel.org> In-Reply-To: <20231031-tcp-ao-fix-label-in-compound-statement-warning-v1-1-c9731d115f17@kernel.org> From: Eric Dumazet Date: Wed, 1 Nov 2023 05:49:45 +0100 Message-ID: Subject: Re: [PATCH net] tcp: Fix -Wc23-extensions in tcp_options_write() To: Nathan Chancellor Cc: davem@davemloft.net, dsahern@kernel.org, kuba@kernel.org, pabeni@redhat.com, ndesaulniers@google.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 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-8.4 required=5.0 tests=DKIMWL_WL_MED,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE, USER_IN_DEF_DKIM_WL autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on pete.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 (pete.vger.email [0.0.0.0]); Tue, 31 Oct 2023 21:50:11 -0700 (PDT) On Tue, Oct 31, 2023 at 9:23=E2=80=AFPM Nathan Chancellor wrote: > > Clang warns (or errors with CONFIG_WERROR=3Dy) when CONFIG_TCP_AO is set: > > net/ipv4/tcp_output.c:663:2: error: label at end of compound statement = 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: Reviewed-by: Eric Dumazet