From patchwork Mon May 27 21:36:41 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: John Hubbard X-Patchwork-Id: 13675905 Return-Path: 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 7C7B2C25B74 for ; Mon, 27 May 2024 21:37:36 +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=CgI6L3YKchrcWCC4CSzksvp1Z2UTJaGq+jDvAsTqRYA=; b=2MZvC4v2DE4gc0 XdPIVRBqbWQib4Hy+pM1MKVxcdxpt1qhS2AvSM4M+o7cXraPS4cgKYOUc/m7pRI4YiyP5lDYnxOrT uX8RRtU6R2Zx52OJ5eMeQ9XWkqWuSjDOvwx6h7Ki4JrIRgSb8OV4+R0QKQQefDF5njLm7lVjpKpZI 8yxRhTTwNgeTw907FDm4ijiLLV473kmyaZYtKpAtQbGI5n+GpUb63yTRc1Vqovubs3KhozsuvuPNy szIxaE+/qRb5tkLyXTbANxJZrvI6gUcJp/tIXIlGw/Y6MlPCLYd4FYhF9XPjMN97W6Re+mbfDqvH9 nOaKvLY8Juc+xLhTbuDw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sBi22-0000000GPfT-35F5; Mon, 27 May 2024 21:37:26 +0000 Received: from mail-bn8nam11on20601.outbound.protection.outlook.com ([2a01:111:f403:2414::601] helo=NAM11-BN8-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sBi1y-0000000GPd3-1XQQ; Mon, 27 May 2024 21:37:24 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=T1k3221eadaWXgFGUlZY/saZdPvoTuKCam04Oq0lAvYWcM+s2KS1ReB9UycaR9yM9yl5bBTapcXuBHAPMUK5h4lr7zgT1OdklKXR/E2iwsv8MK/JIVdzvLDtz6CWyX+oF9x1xm1iIIRFdgi2obvK6ub2fEQcBVeUSI5EyewSYiMCw7FYU6ZuDibmYx897DkR6Y08uevCip2Ff5c7t3UtyKeQKSyAyELH7FN0Yf1VUP+pLFSafwQcmEueDxFpgMXkLDbgixVhA48EftH0mjEbWBXSAZMtKye68OpbnMVf/LMpQf/8zMAUB/7gpLg3xZXdKVtF9bLgQCa/yzcVptVYdA== 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=zKhN8rOF7mi+H17yK5dN3IjNBUqqkQKztErwDOzzptc=; b=PpUD5MqeppaTR7SKLjfDIno57CbTQaxxxplfb0fQnQh6r4BoL+FLI+NHa7zKrRW81H5Yyw0qHE4lk9qhZPStjlXb+R1ez8JkOuXypaPzrwcCRnWivkFTdHsCFsPYL/ADwG2WkQJEuWvKhB8nQnujWWhl4fOxubwuVwxgXA1cYSgeGjJUXocOCVUiaCsCFvqSwI8cyF5CxQNKn02n4HuOYWdPlT81cDXwWy0hYSCO92LXYsHga7dEI1JitrLuDuUHqWaALNsnu1Qoq3fYk0jM5l39YyYTSfqesW0sD4ci9T8pw/LSmHP2YLJgp0eFV1sqZyxG0NSialWxYXNC4eBK3g== 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=zKhN8rOF7mi+H17yK5dN3IjNBUqqkQKztErwDOzzptc=; b=ZOZwI3yFfQjF3MjSOGL1CvYfyizpZ7U1JrZa7y21vhZC/z9WB2cNmWWZkPHzit7MOhaVtAxfuRS38QPWuJ1m/G/ZA6L6S3KMheiCA+nFphGJ6n6f0ZIocwEc0xs2Fo7U50ZfZqVy3puevk28IQboquJdMZXTrQ4uyMK6sMdqXTsqlmfxMn47I2JsMeskN1xW8nXyeifg3GkTZvfCATr+0OqwMmtq9UJa6H4uFX1PQYT9+Uw/oGjpSjGTVYrT6IJXWfXHzupYlSeWqA83IAI57BAZI2YBvNeeiP05Qqp9EyKN5KXu1KJ8rL+yYm1EdH5LYqZ+05+Hjh/mQ/brQAY4JQ== 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 SN7PR12MB6888.namprd12.prod.outlook.com (2603:10b6:806:260::11) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7611.22; Mon, 27 May 2024 21:37:04 +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.7611.030; Mon, 27 May 2024 21:37:04 +0000 From: John Hubbard To: Shuah Khan Cc: "David S . Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Steffen Klassert , Herbert Xu , =?utf-8?q?Andreas_F=C3=A4rber?= , Manivannan Sadhasivam , Matthieu Baerts , Mat Martineau , Geliang Tang , Pravin B Shelar , Willem de Bruijn , Alexander Mikhalitsyn , zhujun2 , Petr Machata , Ido Schimmel , Hangbin Liu , Nikolay Aleksandrov , Benjamin Poirier , Sebastian Andrzej Siewior , 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 , linux-kselftest@vger.kernel.org, LKML , llvm@lists.linux.dev, John Hubbard Subject: [PATCH v2] selftests/net: suppress clang's "variable-sized type not at the end" warning Date: Mon, 27 May 2024 14:36:41 -0700 Message-ID: <20240527213641.299458-1-jhubbard@nvidia.com> X-Mailer: git-send-email 2.45.1 X-NVConfidentiality: public X-ClientProxiedBy: SJ0PR03CA0127.namprd03.prod.outlook.com (2603:10b6:a03:33c::12) To BY5PR12MB4130.namprd12.prod.outlook.com (2603:10b6:a03:20b::16) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: BY5PR12MB4130:EE_|SN7PR12MB6888:EE_ X-MS-Office365-Filtering-Correlation-Id: 7708a56d-01d8-4ca9-2190-08dc7e95267f X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230031|7416005|1800799015|366007|376005; X-Microsoft-Antispam-Message-Info: 40aFKmVxUM7U+ShmJ46dBn6PyzlCKMANgB71hzf+oMFIyY9f7J13071cKOegVeeq9/bAGkQmbYlAjx2aStxWdmnYU+eZvdY/vQVpkc0QVMteXbFmvCbKhHaJxf94CkOa7noja82APvvLWr/DI7T4szZVILHQQSLFN+bcRO4TQMy+st+w6ClC2FqtsttrFjd4Gc6HUl/NaULc2SkLH7C88UmPhMChzlkC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-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)(7416005)(1800799015)(366007)(376005);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: 7+4uxXia0x8YuRCfQVKp8Gy/RqB8fyuCc9ga3akr/x0oW5dlxrlDSf+P6LoqeRv9y43FCp71YWAoJM4WIcJ3IMOGBSGJcKZbQ7waFASzCNjo44qByVY6jKPkw+w5BoPve369L438hcfYzgmuPhxv1cUsSdiKF9yetkPIYcq3PeW+fO/5S2LN3bp3l9yKzp6SL9yBMLF/Ot4X3uQ92/sCBlyTAVjumJhcq626K0aahDIrrba6C8/1/0FceX1AHEedOZfjexyB2w1TU10NArMrryZ9e5rGPyYVkexRBcA6EKE9bi3Vp+rLTZL60eqSyEDlPTI5t6K8g29ifArJmSK0WNgb7mW3OmzTHF6hTOWZOUw36fdcMG8ddH6sEaWLgnjfEhpFj0QMv7QwV07zvkd84cgEUYlP1wkukVHIHtnvlBhjS/EnbQPt2+7IbpNHksWfR9NX39jOJxLlfMpiDZiPoMdK1MA4A1Va4+2msPsLukRWFhPWrgcR19HZgEH/jMJfM1mpvgQrbVS00aIlS6EfnVWi3MGC8yeki5RTJtLLYt6+xffh/ibYCStwlXeokLS42E7tKslA6c6OlumZcQUU3KcBLnuqpxAjdKSXF/UpjA6nQpTcPO9unFWuWP8OoHiKEro29r2e+N/r34tqmwzgtA/lw563/yuCWZy+H4ILS63CcCWtqZkElvf7/yUhdFgDBF3zisONZTJNMvVGNXGr/EBwAA9wMt8sej3DVJcyM3uetJzBu96cWnOP3FWfT+SyUmmC+nmB0KU2PehtLybt/C4w/XcjJlumBE2r9BEzrMsA2mva5WHUZOGWL2+WnQ4UxCmzwgiuFF/tver1O1M9gdUg86M4L1R6fxZUOYK4gAg2oDnHMHDbXSCvfRQGEnfUj4s0FtQFc0zaaH1QhHaaFMIcvRNed8wusokt+onApbXbMSWyWd7isE4ivLqzd/+vJSWJmgxk7JjE9Ws7nJQFgbxUomx2I/NUwz4OI5XWlieHa2O7Pc4K7PeMTOqCfZZEFffrWEUjAUlPaPEUcqUSE/Dl6MhkM/rbKRgccZKEhvS1afqOAAKf+xq0NpJdGTJaBAmbhbu08OldaDN8PyIUZz/T6FQ06XwDWJagcT2H1P7XPz0D0lgPaAi/TYagaI8nKXGzqKjOBOA6nAgSsxRijgg1d96227EXQiDOCBP3DNv1XevtFpbERtJcS2gTA6ft+q2kL/auuOqd7ktwEAaPbVVyiUJcP4Cmc7uHAmZ2hlK0GEUDeoqlNKZwpUyc9P0Zhehq1DfqSmP++tvcqaFZ8CkKOMH0CX9vvtO/lm8InJyiNZL3c7VFYnifIQ4a1TZAcCqRogJh+asCkGCJC0Uu+X2sw2PG9VaziAnOxnIhvIQm0lz+tL1NbEmpB5ENjabHS06mPLzq6CfZNKz/D6g07mNSzsAGZhvlyZcT/tsAczi9GX/+8aL2VsexWUMflG9QgLiud6JkMNVaV3smFq47JaVS70hhLF+xwWMcrjIrI50oKSeFLKCgoPRIdrLU0utODc3LV3b5F7f2dgAQrOybLXa02HYcr0lcs68+h0GUx0eB0hx5uICMWApKg5Ty4hjuS2n50kG+/Azjq8kXjY2oCw== X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-Network-Message-Id: 7708a56d-01d8-4ca9-2190-08dc7e95267f X-MS-Exchange-CrossTenant-AuthSource: BY5PR12MB4130.namprd12.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 27 May 2024 21:37:04.1828 (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: cZQOZW0dllvXYgh8x/ZZ5T+82NzgCI9PvMSXG1ui8uubs3xH0IoM28hGCCdk3ycymDpaorBstUnvBEKDykEqNA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: SN7PR12MB6888 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240527_143722_427116_8289EF88 X-CRM114-Status: UNSURE ( 8.19 ) 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: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org 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 --- Changes since the first version: 1) Rebased onto Linux 6.10-rc1 thanks, John Hubbard tools/testing/selftests/net/Makefile | 4 ++++ 1 file changed, 4 insertions(+) base-commit: 2bfcfd584ff5ccc8bb7acde19b42570414bf880b diff --git a/tools/testing/selftests/net/Makefile b/tools/testing/selftests/net/Makefile index bd01e4a0be2c..9a3b766c8781 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