Message ID | 20240505222639.70317-1-jhubbard@nvidia.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show
Return-Path: <linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org> X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 795ACC4345F for <linux-arm-kernel@archiver.kernel.org>; Sun, 5 May 2024 22:27:30 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-ID:Date:Subject:Cc :To:From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=LylvZzhssh75+jdrcceCrPdB2KLwRx3UNsa4exm+Zpo=; b=MPZ3kSHntcJR3v 8P5ONj/zMmonDL+Ao1RAmPJV07Nhgg3ZQyXyAIllAm011apYhfx4jbBEo+cnK78uC16ai+qGVvgqE swSfDvDVO7ouFXUmZ+to1otW31FfGu1pbtmu0KTvEyeQpIaVIgf562cm2w2YXClRZaWE0Un5VQgNe MvZFcL8cIKZcEuVX+tnBgSnnszplOs6XCT96tATa+JKCxjY6i2kU/eM35u8x+hA6hinkLzXxyLPgx 2jbhWonOGHrR4Iv4fcKd9pj0n1/33JF7WmcFdI3scxkF33kjpXHxVx1D9tf8p1KECBLmlfJEvyUsX 4SxXbh7tS8E9WmqgK/xw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1s3kKC-00000005Qyf-37gh; Sun, 05 May 2024 22:27:16 +0000 Received: from mail-dm6nam11on20601.outbound.protection.outlook.com ([2a01:111:f403:2415::601] helo=NAM11-DM6-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1s3kK9-00000005Qvh-19y9; Sun, 05 May 2024 22:27:14 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Wp2z3bOoIJAiuw5CkEhD6Zw1F5x8th80U/GnAyXg3pZGn5M5EsGlLGR3NuSmPIlbHTmw/iUFq4upwPDWy3venD3z2ixhcu+NdUdnJIAnmEKp1aCWHhTGMNf1Ob+mMU/7dZhmnrScJlLz7CeZfUDZb5A8ZWmsQu6i833Sntg/3x3cB76sNgXJ3+uA8drE1EBHqsfdBaWvOLmFlMurlxq+pYjgC2dGvoKjhd423ncFQDN4tYoztuENF1jOxoQSLdsOxMuN7bUMQTdq7UdoNFEGgXkcW5Py7ASchS6GNbgvWF0UAm+217i+/2U1DzvAZEDrACxI8ufcOKymtEw2Z5XZmg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=6+6rQ82Asznxuxs1pwuTWwPA2rHPf2EwWRBjGwrBVwA=; b=DAedQ02qg0yBNPAombGEqCjkQmvfbnjSKyDyr8j3HXLRHkMw6fzFEImPT7BCKwaIT+ERMyRi4g4/OJLR1ys2aJYh+eXj9gDSJmUGGmD90sGC+svMHR2msE4Z+3AnP+Du5KGmcqOv7rI11D0w+IvJBdHCy/+huhFDcjOHfyVsmhbqewPF8dYUVXUSI3+ZcgUhn4Tos/D6ph50LU9mIdslLNozabtKDulBc1b7yEhwCUcaM/KCx0KfK8U832POEZ+vy141c5bZES0/QOfdie57POERaw67l6bCnfYcMY0WsataB4iOfGiyRcGLtA1hUXLkXCOLZgaYzEACXQbQDr0LHA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=nvidia.com; dmarc=pass action=none header.from=nvidia.com; dkim=pass header.d=nvidia.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=Nvidia.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=6+6rQ82Asznxuxs1pwuTWwPA2rHPf2EwWRBjGwrBVwA=; b=e9wNgF12EG37c+PY7JyXrRB8v4QqGONXVNoavvSZb5cMHDNroiCtIgT8YRol4/53Vlp1hSoDlpO47yHjgBHEHNXSQtbuN4mmWnupTYwvgoroF+x6YAKYzYbnM6dP3CiVfjIeUVxzvVG71wWqVg/qpUQz+2FmKdTO2FpGXetlYuduTfRPIQerNxnK+z+qdD5UbcSty+aACqmPTjiZNSxGgABe6JqrAC8kpJ8muwxZnBzy5ZQQBp5Aj+ePiuXAeu39PUnZibXSnKUahgH5relkYglVF2c6nMjDAvicd5xG7WmRDXCWOXGavQ2X7nkTPjyzugKfDprILU9XrCNZHyLDwg== Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=nvidia.com; Received: from BY5PR12MB4130.namprd12.prod.outlook.com (2603:10b6:a03:20b::16) by LV3PR12MB9265.namprd12.prod.outlook.com (2603:10b6:408:215::14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7544.39; Sun, 5 May 2024 22:26:52 +0000 Received: from BY5PR12MB4130.namprd12.prod.outlook.com ([fe80::2cf4:5198:354a:cd07]) by BY5PR12MB4130.namprd12.prod.outlook.com ([fe80::2cf4:5198:354a:cd07%4]) with mapi id 15.20.7544.041; Sun, 5 May 2024 22:26:51 +0000 From: John Hubbard <jhubbard@nvidia.com> To: Shuah Khan <shuah@kernel.org> Cc: "David S . Miller" <davem@davemloft.net>, Eric Dumazet <edumazet@google.com>, Jakub Kicinski <kuba@kernel.org>, Paolo Abeni <pabeni@redhat.com>, Steffen Klassert <steffen.klassert@secunet.com>, Herbert Xu <herbert@gondor.apana.org.au>, =?utf-8?q?Andreas_F=C3=A4rber?= <afaerber@suse.de>, Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org>, Matthieu Baerts <matttbe@kernel.org>, Mat Martineau <martineau@kernel.org>, Geliang Tang <geliang@kernel.org>, Pravin B Shelar <pshelar@ovn.org>, Willem de Bruijn <willemdebruijn.kernel@gmail.com>, Alexander Mikhalitsyn <alexander@mihalicyn.com>, zhujun2 <zhujun2@cmss.chinamobile.com>, Petr Machata <petrm@nvidia.com>, Ido Schimmel <idosch@nvidia.com>, Hangbin Liu <liuhangbin@gmail.com>, Nikolay Aleksandrov <razor@blackwall.org>, Benjamin Poirier <bpoirier@nvidia.com>, Sebastian Andrzej Siewior <bigeasy@linutronix.de>, Dmitry Safonov <0x7f454c46@gmail.com>, netdev@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-actions@lists.infradead.org, mptcp@lists.linux.dev, dev@openvswitch.org, Valentin Obst <kernel@valentinobst.de>, linux-kselftest@vger.kernel.org, LKML <linux-kernel@vger.kernel.org>, llvm@lists.linux.dev, John Hubbard <jhubbard@nvidia.com> Subject: [PATCH 1/2] selftests/net: suppress clang's "variable-sized type not at the end" warning Date: Sun, 5 May 2024 15:26:38 -0700 Message-ID: <20240505222639.70317-1-jhubbard@nvidia.com> X-Mailer: git-send-email 2.45.0 X-NVConfidentiality: public X-ClientProxiedBy: BYAPR05CA0093.namprd05.prod.outlook.com (2603:10b6:a03:e0::34) To BY5PR12MB4130.namprd12.prod.outlook.com (2603:10b6:a03:20b::16) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: BY5PR12MB4130:EE_|LV3PR12MB9265:EE_ X-MS-Office365-Filtering-Correlation-Id: b09bd21b-1e1d-42f3-5ebe-08dc6d5275d0 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230031|376005|1800799015|7416005|366007; X-Microsoft-Antispam-Message-Info: CjaI5GgeGp6NuTwWa+esuIXfke8fvm3a8jCO9Ld4dMSkY32IvD/2yiJS7fZvovyZ3J1pfns9eYjZP74aONXBR2sVA64J17Zx66h4Q4TkXUzGKrmvq9mzfUzP5GxZ+SfFEA+dfeTwvbUViJnGtYuMUlMQUM9f9kYJgbq6sIFBcySujkYb1S+PpkXWxdWsWIQBQK0XgVn5hOe/77Z7QZhYRt/n64WK0+WxZEV/Rki/+Njt28Yze5Jk03y2z9ub1Cz58fG324vr37aqsp0oJkaGLfIa9HB3VO/xjtCSL9aZVlvAku/9ezPM7Yon7U5hmWYLlmi2Dpy5bQTFAVgMk/i8gE8NyC9alxqgw3w1I8Bo6yyMGwZAmVRv0KidCYUZjpyRhLpDUrqvE0NEHCLsOIUy1Fq2Jn/eao89PT29fws1pdaTaztK/wdJ56UQi/jsei6W12bMpJMWwjVEKeG2FFesPV9qYOv0RsW81GvpL6NCVAd4g871r5+qCetzqN5ytj5ka16HWrCDiNnzNqH//zNHbSqOO3/eYl4Xqkp/s1wETGwtMwliaFMhtv64RwIT+T4T7/KYxTryrMW3NiJJPEFXfz9vgkraJNfBC/R9Fq0h1qgCk/Ph/WtG4hi+cK/zUOAdPRVhQQs7ndK9pXbMaZI+ftlZbrWq4/NTum1XpZ/KQWvBoyEK+Qw82zZJ710A80gC7L4U5QMKMK/+DqazqnuHehSgHi4NfaM3sjYOZrNgTEuU/Xvt+oNw89+hZInx1t32iJ6/ue041wbBkSwvRwaP2ZyH1dI0q6LfW8hJOoNGSxil1vUy2M9e82gAeU1BmaHegVkAWSWhkLPp8R4jKLhMhSa9ugUTNB0RiCunS3OKaKHZwWQZIBplzK1ZcmmJafBgA/vVro4RsPIIcXXacqtdqbt80gQHRm1kcH4zoKVLAyxZfshLdsIGXx/JdGUCyJcM/WcqCIc7BwkCEEAzoH6nttF3bmD5V7uQ0/0dQFBApKMrZA2ctloW8mdV1npB5gJZeTcUuxf0mc27lR/ngmxsQqH3qiSplMV4Qyt/zidVBdY94IvdvU19/PbOhwLG1SPSeauW72RDcyzoUuQBUO3LBghLn+cifZB0JB209RNPg+VfhDnyBZO1z6/IDgKb9n4n2egXYgK75qSAJBVdLBGZbIkjYaOFVHpHTDPEozm+3exhVeFPVVmCN0kfazxjlYLaH6rRwMeOsV3yvk+7MpyD/G9VFuLsOhVKgIU3J06d8qxCi1MMmqtpa4AGxsT/+qQc6NZmmW0Lg7WQpy392y2MKw== X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:BY5PR12MB4130.namprd12.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230031)(376005)(1800799015)(7416005)(366007);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: 4OqZA8n8FWetYkyoP0j8dLnh2Vg0qJP3GVoeojohSz3PKdTOC6iXwdg8YSNm/I8JdW2dQoj5JJL6DqGXhXZNUKnIFFJ17K9NEjYhP8KSEay2oAFcSzDpD905bmD7FMd7gla1BD/NVMKYC1JEbhmz2OUBYrUokN1BUfdnNfq9ob9DjS5KOW+h2entV54m5koNQky47wNViqxDc6x53FZ8KwNmV5JmXJ3n+EAEAQYbr/Tusyb2JrS9gvh5D/GZMaQkCQKcHRMqXSAglBTxVi3Gzg1KdfXB+kgI0nPJ233CKgEG1aDVLjhzexxXqpFpXZSw+JOilndzQ6nS0o8LwW5jIWXlSUbHXiiEorqlElEubPcp55IJKSA9RBLJLOYFVgayCYyYowxI2TJEevvtgWC06Gjvj4pL30FZmlIYGNcEOZFuv9eGVfw95X6fzdkkt1wDuPq96BvF1d0jjBgqqQtJsczK+1OuozRCwQcgfZugLxYildj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TN0qILn8WjeOt8Gf6IttUA7+IHD4YdkJf91CWlOZg== X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-Network-Message-Id: b09bd21b-1e1d-42f3-5ebe-08dc6d5275d0 X-MS-Exchange-CrossTenant-AuthSource: BY5PR12MB4130.namprd12.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 05 May 2024 22:26:51.2072 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 43083d15-7273-40c1-b7db-39efd9ccc17a X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: T+i8CCS7lo/5x71hzNprfwQgpxYIWN4z6cEWNEWZ1BNrP/cuO85CZ6B7mwwDuaTUxGZ+gLYLOfn1i+/jUD9feQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: LV3PR12MB9265 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240505_152713_336101_B3B9B2F6 X-CRM114-Status: UNSURE ( 8.25 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: <linux-arm-kernel.lists.infradead.org> List-Unsubscribe: <http://lists.infradead.org/mailman/options/linux-arm-kernel>, <mailto:linux-arm-kernel-request@lists.infradead.org?subject=unsubscribe> List-Archive: <http://lists.infradead.org/pipermail/linux-arm-kernel/> List-Post: <mailto:linux-arm-kernel@lists.infradead.org> List-Help: <mailto:linux-arm-kernel-request@lists.infradead.org?subject=help> List-Subscribe: <http://lists.infradead.org/mailman/listinfo/linux-arm-kernel>, <mailto:linux-arm-kernel-request@lists.infradead.org?subject=subscribe> Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" <linux-arm-kernel-bounces@lists.infradead.org> Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org |
Series |
[1/2] selftests/net: suppress clang's "variable-sized type not at the end" warning
|
expand
|
diff --git a/tools/testing/selftests/net/Makefile b/tools/testing/selftests/net/Makefile index 7b6918d5f4af..956481174783 100644 --- a/tools/testing/selftests/net/Makefile +++ b/tools/testing/selftests/net/Makefile @@ -6,6 +6,10 @@ CFLAGS += -I../../../../usr/include/ $(KHDR_INCLUDES) # Additional include paths needed by kselftest.h CFLAGS += -I../ +ifneq ($(LLVM),) + CFLAGS += -Wno-gnu-variable-sized-type-not-at-end +endif + TEST_PROGS := run_netsocktests run_afpackettests test_bpf.sh netdevice.sh \ rtnetlink.sh xfrm_policy.sh test_blackhole_dev.sh TEST_PROGS += fib_tests.sh fib-onlink-tests.sh pmtu.sh udpgso.sh ip_defrag.sh
When building with clang, via: make LLVM=1 -C tools/testing/selftest ...clang warns that "a variable sized type not at the end of a struct or class is a GNU extension". These cases are not easily changed, because they involve structs that are part of the API. Fortunately, however, the tests seem to be doing just fine (specifically, neither affected test runs any differently with gcc vs. clang builds, on my test system) regardless of the warning. So, all the warning is doing is preventing a clean build of selftests/net. Fix this by suppressing this particular clang warning for the selftests/net suite. Signed-off-by: John Hubbard <jhubbard@nvidia.com> --- tools/testing/selftests/net/Makefile | 4 ++++ 1 file changed, 4 insertions(+) base-commit: f462ae0edd3703edd6f22fe41d336369c38b884b prerequisite-patch-id: b901ece2a5b78503e2fb5480f20e304d36a0ea27