Message ID | 20240527200835.143682-1-jhubbard@nvidia.com (mailing list archive) |
---|---|
State | Accepted |
Commit | 727759d748ed34cc8d3e1d215fbc1766010dee3d |
Headers | show
Received: from NAM02-DM3-obe.outbound.protection.outlook.com (mail-dm3nam02on2053.outbound.protection.outlook.com [40.107.95.53]) (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 C1D4F15ECFF; Mon, 27 May 2024 20:09:02 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=40.107.95.53 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716840544; cv=fail; b=JNFFBPzOZIiYm4/CGXw9Y094IOJRqYXp4vXgeNgt52axhvL1JnOjKfpWallld1NMOyS6WJ3vt/EA7tdnQfN5Q3vtOa0DB4qrHZdW7svOJB3DMSXSeR7ouYtZRmZidoz3tRfU+kBIRubBXh9HSoYtGF4bwet8Jq3M6yRxD440S4w= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716840544; c=relaxed/simple; bh=5zpd20uDMc2h43/F49FuetLy3CX5tTTeIifppWp/0UQ=; h=From:To:Cc:Subject:Date:Message-ID:Content-Type:MIME-Version; b=e6AAeq+5DdsO3b4LzBtp8x6uhiNGk6tNj+4ODkF09y2YaKZWYm0qq0fOvnHbWvwczIhNNFW4T1g5CJEMxtDSn4Hid82cF/1yoLFIJxFMWLFdBov0OOOfP9/Hrv5Ko3mekJrdIXtR/zXeRTLQ6kdxaKqGV7iyz/Wd5WzObcf8wVI= 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=pxmi4uzy; arc=fail smtp.client-ip=40.107.95.53 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="pxmi4uzy" ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=awTpnqX5BqZfAgVxNgMjoMNNCaYWAVjfflRRhp+molzLPz56TOIQ49C1k75EjoH7WCQCcf9E1MmTySqDWqXfLn9iezNak00jyXiLazNADzkRX5D43sm6y0KPTcQHiIBZCnKxtaOcfMazEeDmJeNPowMT4Ns3AF3T7KKPsufEtIEksoM5kYlBIAB2LGjKBpVMb30J3fxX6DffDD39dheGFkCLp+lxnq4hmlt7BfPJTvyWILPZJrEzxJ9xwpT8NAk5ZIZPwu6JZVL5xYPStqzNJBCslo/TezKEwQa25mYxQY6Yucg2OXQt9BuA4oZIJ4BS/GGBlJH8VucivYT21Ty0fA== 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=QAvdZShSnMielUmLt9itatcuY+ZvX7NBcMK5HNnpCVU=; b=O67Pg4AzVegl7mhpvDWLV+K9Pph/u6PFj5s07eCJqaEdWw19lCNReIbKtIoPKFrS3ImwiQZ3v6NH1eb2sRAclk0LBIR3kw6Dzd7gf73dlO4ZZCr4gKw5iWGkyI8MF3uGe5tdFVq5cgtfsVXmgTddyctoz2Y2EorD6GyYm2Upv3zZfkxi1YHSz1N7Uq+FWLnqEtwXSRSjrtBrYMq+8lBojqQm464+URB2HSBvYBIur3ikAI31r2FIUuj9dHaSdL8zVP8icJ/EewChjKK4W4xjXTaSORYx42dwNzThilmslGAvqYVPgvcBVRx/Ma4LBS6lWovUr1OD4ODvRLH+QeuU6Q== 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=QAvdZShSnMielUmLt9itatcuY+ZvX7NBcMK5HNnpCVU=; b=pxmi4uzyy/cH9nKxo/+8Zxf4F30YEeRRVepkysK3t90MTNH6tvM7BlXDV2nHl/J1WjAoXs3nBYy5gVSS2yMOughZpARTBta8wTMa+bxBy6UDfREg8CqA4PTKubVXBJRhDK4PGaQ4imYZiTMMoxuVD1jV5Y7QS3h+XuZwAujEbd0gfUAH9hFnw8x5albVP7TX55udNIXAvTjW9YNMVgU8HbaQo99OBWgNL5dW1txhBCVREB2rPOvNpdTEBvzpjqUPKgiVhNgmQ8UBMXhTVXnc8RXIoZu9IRZng6qS78rZdZ/aO5IyNiWxok27SjPwvSuHwL5O9ZeeB7R6iTKgGJtD/A== 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 IA0PR12MB7773.namprd12.prod.outlook.com (2603:10b6:208:431::15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7611.28; Mon, 27 May 2024 20:08:59 +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 20:08:58 +0000 From: John Hubbard <jhubbard@nvidia.com> To: Shuah Khan <shuah@kernel.org> Cc: Andrew Morton <akpm@linux-foundation.org>, David Hildenbrand <david@redhat.com>, Ryan Roberts <ryan.roberts@arm.com>, SeongJae Park <sj@kernel.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>, Muhammad Usama Anjum <usama.anjum@collabora.com> Subject: [PATCH v2] selftests/mqueue: fix 5 warnings about signed/unsigned mismatches Date: Mon, 27 May 2024 13:08:35 -0700 Message-ID: <20240527200835.143682-1-jhubbard@nvidia.com> X-Mailer: git-send-email 2.45.1 X-NVConfidentiality: public Content-Transfer-Encoding: 8bit Content-Type: text/plain X-ClientProxiedBy: SJ0PR13CA0124.namprd13.prod.outlook.com (2603:10b6:a03:2c6::9) To BY5PR12MB4130.namprd12.prod.outlook.com (2603:10b6:a03:20b::16) Precedence: bulk X-Mailing-List: linux-kselftest@vger.kernel.org List-Id: <linux-kselftest.vger.kernel.org> List-Subscribe: <mailto:linux-kselftest+subscribe@vger.kernel.org> List-Unsubscribe: <mailto:linux-kselftest+unsubscribe@vger.kernel.org> MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: BY5PR12MB4130:EE_|IA0PR12MB7773:EE_ X-MS-Office365-Filtering-Correlation-Id: 8dce7979-fb08-440e-5ae0-08dc7e88d834 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230031|7416005|376005|366007|1800799015; X-Microsoft-Antispam-Message-Info: g3nYJ6/0U6mpAEf7/c0+mA/5ubjtvJXdjSrkNtc43SOE9dLNlsLLGJyZ2eccWEUbtdAXtRxGluQqbml+hRiBYT5miokzxIZ7tNYJiE0uDo8zya+f/gcxMJxN3ESlCF/njXtIMHf8gZq66uqd1YalVs5siHCWsrkupN6Xmu/dUuehilafcHoBPJxwAdlPJIGh+il5C2l7dko4p8E+g4v/GrQWnoDPe0YZaZxzFtruHGOWH3POuyblG6UvTIfKh6jpNXxAUFyd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SRV:;IPV:NLI;SFV:NSPM;H:BY5PR12MB4130.namprd12.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230031)(7416005)(376005)(366007)(1800799015);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: 6w5dVHKCu7My8FO7NKVC+CZ7XBnIcabi9MMPf2uvaj+vfbnV+oMUgI5AUJJtMMAOMYUyq2LQKpVPzlIDekWi0PaygqgXaKE6h2I2nHesPCfnE25pTH0w1R8woDxUc01tk4aCOGhtNcpQILSvGHZI3HCKOrhtjDcq5VjMBQJGA0dYRgtlAKzvpju9MBaICYMmsJTn/pP/exl1rWcN9tADbwRCWnDcxMDOUH6N7xObfDUy1IA0VsgDSlgFFXfYqCh1Y/FDsz5XZWQbofHOG8TcraLTtDO48M+7dyVqB8zAlI9P6+5sXXBFk6n8TLRysqCwHfoNCeLV0nNVINllD9NKxEd/Wl9hdPXU3JeWKm2uGUdQvpuutCjhiC9ByJlvIgCi2ueysxKSvn5NltUpyLrDZDk+1ymbvr0JPhDc2Wr34WUuL4H/KEsl1WIt8e4+2BNetIJxJJrQKqwDBAXlpuzEJWvbKr550KgrKFFl+Ql8CfjHtwVTUSaQ54xAtkcB5qPKjYM3IelLqqjkZO2WrCJdvt1w5pOhtRU006Xmzx0vSTg40lRDfHGJuzXG8vVe0OzpxAl5GSxnJYVb1vCvqK3MmmJPT8M4quHM+Fhbz/TxVCtDZZtBXyM4zuzUFKFAwBB35JPtl+VQLKxT5icwvfa4EfojjLuT98PD/WSebPauZktsaIs9idWjcxkupl87jGDr8vvaJ1mr70nyku8js5vEvnLHZR6xdd0s6jg/6vGGQVyDgZ9ictWsaiVbLirr8RNp6/GNYDwF5FF8DeY/GHYfR8T9CIcbIKClLC5bXMSNFF8hjgKdFu6OIZhwg1+9SqrAI/XWd09Fh/VfvSUqpeyFWW54vlOIDzpTWysyOeSh556BPs2Xtzxfs7MyQkxB7DChGQTtcknl9Vs5+CKRwnrOkckYcBcVsCBZqj/5ITaSkCC4KXfKKPbD3pgntjM3CMwHBMHK7voXvDsIJ1xIzEIl3vXtzdju6D39mGM7gqpWzpVPruhci69Iiwc9c8uoTNMg4M1moYrOHHeivnLjD+V9KDabzu07f2Xh3NyWiLkIefOWVtdG4b+XRwGy7vlqL3pyKVQodm9r8AxUlcdi7JPs69EuYO/a6wffJ+IHu7D1wVpZmTa20ezlDJmxfZ7rtIFwULdi7DENBC+id7x1q/GuLFZRAkQP2PL9rw+SnCAWlYjn/sEUs55s5GvCOhBHr6epfMFrKYL28yVJA7pz3QB0IM+/tHs17yMhKRB+Das6h56PW34QAuFOgm7qQ4gwE6TAKljIxR1EkY/qL02Od1GTn4C9enW3lS1RtU9AWZYkG7nBD9fFAzJhY7hDfD1jgzr7zi+QCgWE9nqajsbKE4bjZmmCs+f/5iSguswj+2l3EJxz3+Bw2+Zz3RePDwwK6mFrOD3VRsVIMKpkMIzfvjIj1N2UJgkQGCj/BSViBhHIZYE6fQfyBYe7KR2JKaGcHj7tP9E2kcBDdlBg7sRcE4Bbjmz+l7skjoOU9qKzKHNb1bsY/SBG4MiQmAMFKLSBegEpJRSOyECiW1eA1AC4t4Bg9my6IqDHDmPTEmY+QVk15w9wnleGktr+sMioUbBhQflgG39iNPMuJUZBTHHdO+VNow== X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-Network-Message-Id: 8dce7979-fb08-440e-5ae0-08dc7e88d834 X-MS-Exchange-CrossTenant-AuthSource: BY5PR12MB4130.namprd12.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 27 May 2024 20:08:58.8806 (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: xrlOopL1phKUNsAMbgfGrlZTx8LpcRtGKkpbXht0+jqqlTz+HYjOnp+7OgSMa/Of5cAZ9uaI25U2t6RE0ry5lg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: IA0PR12MB7773 |
Series |
[v2] selftests/mqueue: fix 5 warnings about signed/unsigned mismatches
|
expand
|
diff --git a/tools/testing/selftests/mqueue/mq_perf_tests.c b/tools/testing/selftests/mqueue/mq_perf_tests.c index 5c16159d0bcd..fb898850867c 100644 --- a/tools/testing/selftests/mqueue/mq_perf_tests.c +++ b/tools/testing/selftests/mqueue/mq_perf_tests.c @@ -323,7 +323,8 @@ void *fake_cont_thread(void *arg) void *cont_thread(void *arg) { char buff[MSG_SIZE]; - int i, priority; + int i; + unsigned int priority; for (i = 0; i < num_cpus_to_pin; i++) if (cpu_threads[i] == pthread_self()) @@ -425,7 +426,8 @@ struct test test2[] = { void *perf_test_thread(void *arg) { char buff[MSG_SIZE]; - int prio_out, prio_in; + int prio_out; + unsigned int prio_in; int i; clockid_t clock; pthread_t *t;