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: 13675904 X-Patchwork-Delegate: kuba@kernel.org Received: from NAM04-DM6-obe.outbound.protection.outlook.com (mail-dm6nam04on2054.outbound.protection.outlook.com [40.107.102.54]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 4AD9C131E3C; Mon, 27 May 2024 21:37:09 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=40.107.102.54 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716845832; cv=fail; b=FVcWLwsMNSWOIci15Nchoqx6WLbN+0LEf1YxdN1+S6wahw3M90wBfBaBSeSPHFzRf2mP5f9TqgZ61pF8VazreX9b7xLvy+jc7jW1+6Mx7f1MwQGaL1dgZZhKZ37xRmkCLZi4Z86krZB6ZGadiZGkaVYcr2ekcGT2p2pjj9D4IAc= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716845832; c=relaxed/simple; bh=nu5knViLN9kC7IyZ5zDIgK36QJs81EMtgauMnSRw63g=; h=From:To:Cc:Subject:Date:Message-ID:Content-Type:MIME-Version; b=U8nbHZoMpLDWIVemiiFibjyKSBmAIXAIXhu3YA+BJbJ1w7ggOty+M0dC+t1bLIYXFfMjblCNRv3pYZ2EauoRPeZGVsIgtO/qEOddV9Fh9lPDFFjWXSndFNWivtS8yp06gXxAuqZ62g8RQs1jElgb6vH4+Es+2zla5mywyejRxeA= ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=nvidia.com; spf=fail smtp.mailfrom=nvidia.com; dkim=pass (2048-bit key) header.d=Nvidia.com header.i=@Nvidia.com header.b=ZOZwI3yF; arc=fail smtp.client-ip=40.107.102.54 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=nvidia.com Authentication-Results: smtp.subspace.kernel.org; spf=fail smtp.mailfrom=nvidia.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=Nvidia.com header.i=@Nvidia.com header.b="ZOZwI3yF" 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) Precedence: bulk X-Mailing-List: netdev@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: 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+w6ClC2FqtsttrF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uIMHjFvLReJLYZ30QgKm2BqktRZw== 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)(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-Patchwork-Delegate: kuba@kernel.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