From patchwork Sun May 5 21:56:36 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: John Hubbard X-Patchwork-Id: 13654679 Received: from NAM11-CO1-obe.outbound.protection.outlook.com (mail-co1nam11on2061.outbound.protection.outlook.com [40.107.220.61]) (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 21C8C2D60A; Sun, 5 May 2024 21:56:51 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=40.107.220.61 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714946213; cv=fail; b=urqMb/o49ZQ6Eau4xB9Pmg91E7zMBJX/8iTTApZYQxLzrmM7RdzeQMKEqQCQk4CKd6fahydC6FrlnV7/a9adCpysRLH5EwKDaDSnN4SLEs75KhhMGaNVejuVxXxoSCtMobfpfKsl5AbxJdHdnQ2QDrneG6b+IAHCAlTFrfGn2TU= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714946213; c=relaxed/simple; bh=fBIm/dbmd9D9h6PDhu33+Fxf8X3zUDO50GVaoK2NJXw=; h=From:To:Cc:Subject:Date:Message-ID:Content-Type:MIME-Version; b=WjTG9OxaNUFtz4IZ4Vt8HeYGeQZz54UWNr01idCrWnBkCMfpvdnhsBiuADNjaC24IabN91I66P5x6eBepah04mG/v+cBmyMAeC3dcdYnchQFby1O+5jDdLs6thrl49mHiisReJY4dhvJb3rg52RSrczJHZQVmM464V5a3ko4X4o= 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=SlD/5RPP; arc=fail smtp.client-ip=40.107.220.61 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="SlD/5RPP" ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=VSmvIyS5He7YAPerOu+COP/5cDLWx/RTwsBCFDwucFH4VQ8OaNH/lUHf8IYxdOZFsxV3wu9Y/0VTd7mMY+cLmxsUrtx2s24h9pyq97oZ026Az4tmjS2PuT5952uIWeOHgpxZm9ctiCZ5dmknH0QzoCeouI9uz48dxKiPhgU/vugzuhmNMtJhtihxPX2AmvAaixM6qlzu5FKwbxmRSdJRtaMjb1Y+Vjr4wnTaiMq+fe5+aFWrvp7wGkTA2qD4Igo/cp8sjpXvSFvT1zC0Mt5zt0+0ESEe4Th61Qb1FTMVc0P+SggHA97i+4ZwZSvjhxIfXEQgjUyCq9r9c3B10Qd0SA== 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=JUJ3ruv+gFeVCXUTDukxioEW4ZF3Y2kRJJo7siZyFUw=; b=a6YcC/SY9Htt7Ee+pfJq9BtUknPG/ULSCLVs6ZGg3ab07yGrlA5iTqsKEBpmYp7x41oOv6U45lNA1uyf1ZQLyzCUbt6TcZhwKaR6bZmYFrTfcUJwdSyOud6ve31hxYQGWS/qb44uq0TfRlHdWl7Qh4Ue6tsA/sByu/+YTP4UfYXuvW8qWhQsq6Mr34PT390auaArsx3Fod59I13BMT1vm0lgccwLrwDP4Y22gYUIOdHXJaBzyeAOul9TO2QH1KK/TnH/YLXfHprVL0R2NwLRq+QGzGzG89Lkhv2MMWgAPbb3K8lDKL7Vi1s13rxnxnEOUtHGyLS3uORwP7deOdjlQA== 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=JUJ3ruv+gFeVCXUTDukxioEW4ZF3Y2kRJJo7siZyFUw=; b=SlD/5RPPo/HjmNZOjKo0ROTeW+al3NBACOu79CRcuP2QPqWamfd2Kigw0p+WomcXMWaYvoPSOksRDKmxcZ7U0rQqwyo16YDRtpQ79Dc7SIRruVz9f5qlTgb62t4hnpiSMUR9lIK8lIqzQEo0tV63lr62wTp/41KrdJUJK82cRMmnU20zcPHqLvLsN2bs2qxQRtSEkjOlmkWI05ohn8d6alZbUcsQIrdKIr1fYOf4L2OcUc6DICxDrBnOi9ZY4I/paHM97Bys/50Q2VLKvyQ/xYl1nLQzgF2FshgUesIwSiMgilM4b/4ftA36a0FVvJEhyDDIaL14glcZ16NRU7XTxQ== 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 MW4PR12MB7013.namprd12.prod.outlook.com (2603:10b6:303:218::19) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7544.41; Sun, 5 May 2024 21:56:48 +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 21:56:48 +0000 From: John Hubbard To: Shuah Khan Cc: Jiri Kosina , Benjamin Tissoires , Justin Stitt , Peter Hutterer , Jason Gerecke , Joshua Dickens , Quentin Monnet , Alexei Starovoitov , Daniel Borkmann , Andrii Nakryiko , Martin KaFai Lau , Eduard Zingerman , Song Liu , Yonghong Song , John Fastabend , KP Singh , Stanislav Fomichev , Hao Luo , Jiri Olsa , bpf@vger.kernel.org, linux-input@vger.kernel.org, Valentin Obst , linux-kselftest@vger.kernel.org, LKML , llvm@lists.linux.dev, John Hubbard Subject: [PATCH] bpftool, selftests/hid/bpf: fix 29 clang warnings Date: Sun, 5 May 2024 14:56:36 -0700 Message-ID: <20240505215636.63592-1-jhubbard@nvidia.com> X-Mailer: git-send-email 2.45.0 X-NVConfidentiality: public X-ClientProxiedBy: SJ0PR03CA0289.namprd03.prod.outlook.com (2603:10b6:a03:39e::24) To BY5PR12MB4130.namprd12.prod.outlook.com (2603:10b6:a03:20b::16) Precedence: bulk X-Mailing-List: linux-kselftest@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: BY5PR12MB4130:EE_|MW4PR12MB7013:EE_ X-MS-Office365-Filtering-Correlation-Id: 6a03d6b2-bf5a-4d0c-4519-08dc6d4e42fc X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230031|7416005|1800799015|376005|366007; X-Microsoft-Antispam-Message-Info: AuPhHoFdhk/ki3CRNRAnZR2SfQogrW7Bv02RrSPdW/xx2gWwLCSgNp7/9P/ew7xnox6lBseAB2kvhf0ZKhIn+cVuqZK3tEARYd7DBV8wvsIAMm2P7f16eht7wkcoucLNy2+fGZdUM0jtnGyGlR6oSg40JlvHkchpPf694nfcaI/Tn/AgB8FqGWV3BSLBEaffXlSRRc3AAZUptCURodp9NGP7Bjq6trPS+pUS+hNy07UGR+8NSDc38yiZoF8xl+jG9VahzBv4zyUKKMFGW2IcuohrBb7gPPQQ5JrYnvU0lkfnkMUXtyMeNo3l6teDplKGfsILvVQ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NONE;SFS:(13230031)(7416005)(1800799015)(376005)(366007);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: +BvI927ZtibyJrrnwUmC+jubUmjksn9AmVBr3dXMDiLjWjwdm0arZh3ArQQGm21/nN+3FJPTu6W73ZYrrCPXwzRcdAyjN2psLJLE1VmG/YT/mrRYb8UlUo37vq7LfjaLFEZdvQe8csP11AlG/sxb/F3WFcwqDkAfPYoGnE8+kC600obxqhi3BYMShrozLIWzjv8Si92n84UtEyRj59Yydh5qDeeSZUo55BnfYhOvkMT6HLeNXuVfbJqdLkRmiUqyWuJnd1bO1oaCQ74+rt+IvmkrsBiX4dE+8qFlSghPXYvRZYLODHW3duAIkCXmcO1Uj6gVzvZUy/AeWpF0U2CD+fAEXYP20IybSOb8jcCeDlgya2Dr5BTjKYSU5Hutj3Xa0WsE2rXnlC/K7FzUJ/meaASZjPR9NUTGzBAvxJJaAb2j7fBUxx1tN/MshsnAokgO+ZcuoJqvvNTU14xIBFDpKisKnEpMiZ9klclPTajDdsvz4DXvvCOJJXozsVMFUv/VGEcmJ5tG+F0WMVGoqXDA7dFm+m02/S1PlfjetZwGd06UJcf/OcLtbEQZPoeHUM2kQTUlUzrpNgNS3Em3xnXs3TUTFQHVnNAsPz5dON4/0GBJqfWCaUNG/Py2YntrfQBHaIgCgxpYNKSmJzuBZmAY75jZkNm0bUM/RsUDoJWiA4CYro6JL0AVWXPFYLqlrZJb/dEJCSkEnR2HxwAH5JhWfU1S/Nx/oD81d+8a/Vm7gkiJyhna9j4phXnc/TPwzG2EUQrsrQBUk0PZGCmxYyKJXBxQupGWCwU3BNHssAT+yAFosG3MX8UR6MnME5dCWZCthY19iFEsO4MKxywEDQY+ysAT2zRbYlRVEDq7ijhNeBq0ePXENaKr8lRk5OAkwSLo6h7+CmJmvX6hnZZtNgQ8kpwYq80TDDCXMzuGHwIX5Qf6FXr+rcTkfSNDbUkweWIUAP2D7uT34/diQ0th0pFCfoVeUwET8dkk/wlCKMRBPyww3oc2Bg03ZWQp6+dMCWb7Xi8Q1ypG8X/dA6eKUqTpqhsnt6fmFvsKT4mCUdyJkE9VWLvmy4vz585JVvyW9ZRRmr34zPQvyMQAyOoPdJUYhKquhzuQrykX/s3piGs+iqpZaOXifBP2hun1qh+WuivxNQQ17qIU0vnHxNTaMIYDpVU3IATv5gXJodIRKBYCFkA/so7RDrXbuLWdU1Y8A5YicIDoLtujEzOq1ax9/0LR81LQ7GFiGxhFQt9trLhFV8TleTF1A0kCnl9fWYSI6AzrnCgQI0fqQttqKAIrFR709WE2Npbl0thcXJGIEI+11y/sZgBXITr9HHDT4e1DuMpYh7UXUsbuItU1kTluX3tvz7AaNrbhVVZXA4DQ6IjzWMgJcC4CUBpjMEazqZ230z1fHNiOnnHXGjCJHHNyhnfRtXXxd9RJYdJkFfnZhhHIl3N+jTkpTStno1ZnsRjEt+lTx2iOZCpcAnTHXZc4FQBx6/NIDIy/FmM1OOzmBN7ZPDmN5oK5H7lhkgdd6lMQMLvaWhVLseGbbh78HfXGOO++ap4C0wjub0+PhCchaAbwb9HwIGyVCoBm93cV8bYxNRoD7shFUDdDoVKbfUTMQeWmAA== X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-Network-Message-Id: 6a03d6b2-bf5a-4d0c-4519-08dc6d4e42fc X-MS-Exchange-CrossTenant-AuthSource: BY5PR12MB4130.namprd12.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 05 May 2024 21:56:47.9724 (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: go32feFVmAO679TObEYITs+g1oVh2JUs+aCNlZMPsJ6KwpQcQnT4lOYM1jjhMjKKIiZ/j00t7gq92psbDTpx0g== X-MS-Exchange-Transport-CrossTenantHeadersStamped: MW4PR12MB7013 When building either tools/bpf/bpftool, or tools/testing/selftests/hid, (the same Makefile is used for these), clang generates many instances of a warning that is useless here: "clang: warning: -lLLVM-17: 'linker' input unused" Silence this in both locations, by disabling that warning when building with clang. Signed-off-by: John Hubbard --- tools/bpf/bpftool/Makefile | 4 ++++ 1 file changed, 4 insertions(+) base-commit: f462ae0edd3703edd6f22fe41d336369c38b884b prerequisite-patch-id: b901ece2a5b78503e2fb5480f20e304d36a0ea27 diff --git a/tools/bpf/bpftool/Makefile b/tools/bpf/bpftool/Makefile index e9154ace80ff..c7457921d136 100644 --- a/tools/bpf/bpftool/Makefile +++ b/tools/bpf/bpftool/Makefile @@ -133,6 +133,10 @@ CFLAGS += -DUSE_LIBCAP LIBS += -lcap endif +ifneq ($(LLVM),) + CFLAGS += -Wno-unused-command-line-argument +endif + include $(wildcard $(OUTPUT)*.d) all: $(OUTPUT)bpftool