From patchwork Sun May 5 23:00:54 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: John Hubbard X-Patchwork-Id: 13654700 Received: from NAM11-BN8-obe.outbound.protection.outlook.com (mail-bn8nam11on2083.outbound.protection.outlook.com [40.107.236.83]) (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 C01DC71743; Sun, 5 May 2024 23:01:07 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=40.107.236.83 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714950069; cv=fail; b=b3i4bBk5/qywg61lq9JNsP7h85LP5ZRoJcXxcXLf91cYLSctDcGzyGEO0LD8yeWK/cFGBTQ/6CMAhEnV/VW0GfnE2tbAyU4oY8Ft64dPZQWzZp5xQ3fJX3lPpjz8JH6kkR0czsEcIWflLo6GUsY9iJ/QjeK/wAQHy4pc4n/C5vI= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714950069; c=relaxed/simple; bh=bVB9gcdSFpwIUK2cXCX3a79YE7961k6s1zoKK0CedMM=; h=From:To:Cc:Subject:Date:Message-ID:Content-Type:MIME-Version; b=Q6qZblt7QQ4/weojApCwjjkfFziI3jFQNlGRfTwb4PBUErt7MUvcR2TOGh0uC6QozGHrySxBvEIbmiQIsYL8rbZnDlxsbPqTgbZIJ0HAZAZB6hfluXZpnh3rmQ+tLVsu4W5S0CJOE0YR9ZyGzftfcsdQrH9XiTmK5bUreQOYZ+E= 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=deTCw+jG; arc=fail smtp.client-ip=40.107.236.83 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="deTCw+jG" ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Xw6hs2xbv8HQLc46CdXni8UR5JPe+oAj2dPWtX57b7mL2+Snsc6tFcq50TQ54UMOJduyBt1lpCDDPHbGD/iGYNBjNqMamklsXPJHuUAMvnxPNvZezIoToH1zF+NAj7fpkgKt1qbbpZc5vFjzAw95oxui5yOdi4lq4QHrDHhBLush0es11Lt3C9PArVtmOkxnGzy2Hreq98Ycskz2rCzxJkR/ELObti1AR/CSLGv1Jh+us27nvUrbB6n3e2Q0lerDvnRvWn8MpPRbeE1YoJQss4HIRxP3CAk7Xy1ujr4LtJVB0ih66XgvmgQle1q0PbQo+sen+sSV26+HgK6hkwNs0w== 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=8upgPTWfWJrS7qvEoF2TdfJ4vGsMSfkHphdC7PIsoe4=; b=bpVJuXj3qYBux6QD8stC3J1qDIud+cCbhXExv30x5Ktz/C4gVpwLmjptBdKv74cLOPUtcT6Xp67dV+nq6toxHqZ7sA0nilYmR6aNUXObjVd1DvMZz+NTyoBJOxNNXF8lrlBpjCkJbnaEqnMpcfLBEB1tCBuuRAQEojzHGIl4X4SVkYORTJun5BLaTwBvYuFJOuNOD0R9PCZs0etHlav8lWcg0nPMt9PmEwoNq5Ei2HmzmR/ltVOyEC7Zbv7/cCoECwvgzwhVBMxm4O7Un+nOgD/usUhPv2PhKdl3kk2JRaCvyQa+vTFl1kfi2MmViV5WJzxHgzXA+vIAgw+fc/cBrA== 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=8upgPTWfWJrS7qvEoF2TdfJ4vGsMSfkHphdC7PIsoe4=; b=deTCw+jGbOlYcfQC1bbG6Bpha1Tb7PVwPOqXhJLifD2YXA/9OAtUPfhZ3UMQrmycb3x9ZQ373xWu7h2eOju1noAsLiL+nBi86yOQE0nAe/7VftAfll/0Hi1RLCJssEiGBurfUkIEe+Ao/fPSM+XiOe1crMs8AjauOVlNrtBqYRT99kO6xQ01Odfg31G/LJW0OOFjPczJ9ckkcNxaz0ekKDklJE8r3DKW9feRYX9/2wpzYG9aqasd6YGuLPh00HCPxv0PKjz0rllqtmfoYI6hLjqLE0URyVEB+hH2AmplGCW8w2U2Pb1GkAN6N/GhZBLb5xe9Aa6DgehgPVY/3xpdeA== 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 MW3PR12MB4444.namprd12.prod.outlook.com (2603:10b6:303:5c::10) 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 23:01:03 +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 23:01:03 +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 v2] bpftool, selftests/hid/bpf: fix 29 clang warnings Date: Sun, 5 May 2024 16:00:54 -0700 Message-ID: <20240505230054.13813-1-jhubbard@nvidia.com> X-Mailer: git-send-email 2.45.0 X-NVConfidentiality: public X-ClientProxiedBy: SJ0PR03CA0269.namprd03.prod.outlook.com (2603:10b6:a03:3a0::34) 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_|MW3PR12MB4444:EE_ X-MS-Office365-Filtering-Correlation-Id: 1d6d5d83-e5e0-49f1-6ccd-08dc6d573d3a X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230031|1800799015|366007|7416005|376005; X-Microsoft-Antispam-Message-Info: bxXmehM4KH4YuU6JA9lwGh0UQtBtyQ8FHwmbi765YM3INLUTGjEPXqDLNE1L6eGoFkbd9COGrMGyRaW8FYfMYFOPC64MCfVyBTQygyISxZFcr7fyewgFKUJiqZt+cbcpchgjJKJz7w4jbVQJTFxs9Ei8i2dozyeLn62Gwj1LCGZxlxdI0hvav/joUNrZMsYBrRBopdrCjKG+qFr4EvXAp1WPMLeLWRLdhnfzvFjaY5kYd7Xie+14t/xv1zz+SfHEAyP8A02l+YxikdIDA7WLNk4xyTkUuJ9w6SWHO75kqrlqi7w2+am41Az0taDyg2YHQhL4oQRG905k+3XaDwckgAVsgWLgc9tQzTdLt5nucUkgiG98857VlTVGtnZPoick8Ly1gceDRETHUcimGWvufWpINHMbPkYZOFwl975uC0uyNg8wlnvgL368ysJZX/ejpzz5X4vq0ayL8r06i4SSwlBPPZejbsL3QdWskstsh0QF/h2h7GoGNS4/xrlXIzRauUBlPK23t0aEkYIpTUvFZg6UzfQi1133EpPltChvsTX5M+/VYaWIHOx7DMyv/2iV97EAUc6PnGvE9W7H3f7/TIXILVQWItVkZYVaaiaxEbIcXEyjY6sHpPmOjHdjfJYUh2E4spxLiCORF9DR02E/CLiA9dNVtmBJhjH3gMVDtZU73WtzAw8Ou7ZkTIVoLD+8N1VrYDujOdyQen5QY0Y9HLrdaWbBtxs7cNpBmJJFjfEZf1256Ub518hDM/mP9LLN/7ZZqYnAB8DTXyIpU7NlHyaMaZUyBptqn1u4jZoLoRFpboKlVhKHHip06ztwxgvm2XCeIHNsULfDLOHw30H83trFmbKMoSiMrk51CHiHErCk2I9sHGwsuQqwqWdJ9sfIwXHVOmMlTj1CwEYTvxS8ILxL54Y7wNk79AXQ3GNhg9ZHob599Y6beEhBcL/nf44WxnxDkbGsVILLjSj7I6X2Xa2o2uxnkLgW5ZO8UXqZfYi1Seog+2qVD24irEwbEKPnuQmVEDUvKV9kAfqQ7+8aIc1cPtCaUR/VHsuww8YvuU/C3fqH5KJhmMx2zLtkLr2zpggafs7nb9YdlO3OFia8TzjyPvo4ULlWvqX4L3nr85BT2mgo60PvzXdkGhCG0X0uXVLvWTAha3gVVqkJEFeAckfw8qAfplwipb4NNwjVxTmoVi9tURsSPldCR/0oKR6mNEcTV6npyYtyp23LI7aeTesj/+mlq/VXP+Og63MrZm5hX3m/2L3CLH8jSH0LDHYuWwXbGnK7X0Sy4Cr0NpjoVg== 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)(1800799015)(366007)(7416005)(376005);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: Jj+qQCRfzqB1+YRDP7zq+ldYI1ePmOotgPfOBkco+2IaqEO0b06UMdTTRwNj8GFXDEKHL4JK40WT2198YNU7VPIkIvIZeWPYykK5KGnraUaK6olTA/zP4quhVy1k2Bn+Eaijbwx8V/7OeBb+qj4+yTsg3z5MoS0FSAN9a0u8PxRsQh3MNf5XeSmmnnuPxdgjKfrJixluu2BRndNX7+gleYQyNwxkBydtHtFhB4tfkHSJkBxogeITLZ3WcW2UQZQSny+dNCYYgFLxz3x8z12JivlQzg5fGET5XiiLw/LJ8DIpeKgLSi0gJA4tH8Aj6S/YrSzRrOJBf0Sb/H8JTy9eUQIYy5sMVdw56IWHE7oEToFiOS18tOdiHtczwQ0Fmk9FN6CzwmqkW9h8qECFSjEDITtCO0DnZQfqvmZV1WPuYKyxP5TsZo7MjoHSn9vaPA7juTallPkUWaeFjUnty64H8bCiizCmTBGepCRDYSamdotGKwKK7mc4mVJoRiQH3ff9QtZF+CP8aa+PcBuJxHdaqnRWwwV0n6Up037bZLtF3v8Ly3l62TAnDTQd6yK196JqSMdq9A3yuLnTM5krvIG6UTwwwB7Se85WLkeMi8ABRd2U0gPUPTvX2va0R0WeKPiOls6aIMR/zz8zgLrzgJd9pAya6ACoKzs28iNvbu9uKLziEnfHv6me4fAYbLrd3dmOs+Ko33KcIMcLqG7sKlmTQBGbTXmIxwtWS5K7JNIZ2JaJZn8wF4HxEWur9XlsGtdQ/+Y8YfWIvoLRXMZpoJuSGULj7V5ecaHka64B92HnOIZbZwKb+MXDHDmKI7qEFF7rd5238hkpB0iXBwBsJBCzTUPIjZJHCWo6Sgf5vS8MZwUo8icowXxoHPDFaAmfBLraaeBaMbUzwksb/+T4RB5x7BFQlrf5aHRs5D4OuHAdVvIZwDkd3eRi5vTViWmedgr3/lskAMng2Cozuxn04yV6LzFPs1ogE+10I+ypT0JnreBzPWcvpvo6WaOqSnivQArRUqcfSGViTVD7G0VO4oD9guaSbvI0hC7ALTaO0DKdjEWavBNTLS3j/dstLcmJXPhsblFh4HMAGfNt/k4cdeAcSVaH0+qAPzXFLyrqeTTQT5/ieBbmYj/R5uH8ly0PtCeDw46l7LpnFR6dfaOuL1QcG3dfj6zTT6GHCT9aNNN5OgUEezBIieFAFkeMvlFkANW/PPlUQ/Jg5zrZK8q9pAyhoOfkEH6Ey/mWo3auO0cR0WiLcEPZFpdsnLhWkWhyM0cHM9H7pqg8ltMme1k/hukmhU4f1b4vGXqfLYAuqi2Wv2V8VQCrcrgcWGKd3yzRxhw3StmSCHMHIvICB+Uhct+GCuTSH8qpWA1dV9xlG7I9saT8EbgwYi3GyDjpaCSzM4eTnYDfNaRZSlfwMpPSbwz6ivqBXP6JzNkhHn24yT17/8iU7pukAsAGu0o1W6bZbrB9XrVtcNon7p3SQtiMVHbxEkgKZZdbOUSbRt6IAz2jV4E2KdFRLXzYYQ2kNfk2ZCRIHfvhHBjnF919XdgECq26M1W3NbIAFAMHg6PwxMoEGmrKh3GoHN7cNGH1jxbubDqz2TQWXK8AlF+TqmeLh5Cnig== X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-Network-Message-Id: 1d6d5d83-e5e0-49f1-6ccd-08dc6d573d3a X-MS-Exchange-CrossTenant-AuthSource: BY5PR12MB4130.namprd12.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 05 May 2024 23:01:03.7526 (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: MBJcVmialaUCnVzi2QqW5J3DJCvfMWwTlqOuSS+nMNEUKip7cZhIBQXmIeEMi9nNEgxMuq9iT5+FSwyl2SA98g== X-MS-Exchange-Transport-CrossTenantHeadersStamped: MW3PR12MB4444 When building either tools/bpf/bpftool, or tools/testing/selftests/hid, (the same Makefile is used for these), clang generates many instances of the following: "clang: warning: -lLLVM-17: 'linker' input unused" Quentin points out that the LLVM version is only required in $(LIBS), not in $(CFLAGS), so the fix is to remove it from CFLAGS. Suggested-by: Quentin Monnet Signed-off-by: John Hubbard Acked-by: Quentin Monnet --- tools/bpf/bpftool/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) base-commit: f462ae0edd3703edd6f22fe41d336369c38b884b prerequisite-patch-id: b901ece2a5b78503e2fb5480f20e304d36a0ea27 diff --git a/tools/bpf/bpftool/Makefile b/tools/bpf/bpftool/Makefile index e9154ace80ff..a5445a422109 100644 --- a/tools/bpf/bpftool/Makefile +++ b/tools/bpf/bpftool/Makefile @@ -143,7 +143,7 @@ ifeq ($(feature-llvm),1) # If LLVM is available, use it for JIT disassembly CFLAGS += -DHAVE_LLVM_SUPPORT LLVM_CONFIG_LIB_COMPONENTS := mcdisassembler all-targets - CFLAGS += $(shell $(LLVM_CONFIG) --cflags --libs $(LLVM_CONFIG_LIB_COMPONENTS)) + CFLAGS += $(shell $(LLVM_CONFIG) --cflags) LIBS += $(shell $(LLVM_CONFIG) --libs $(LLVM_CONFIG_LIB_COMPONENTS)) ifeq ($(shell $(LLVM_CONFIG) --shared-mode),static) LIBS += $(shell $(LLVM_CONFIG) --system-libs $(LLVM_CONFIG_LIB_COMPONENTS))