From patchwork Tue Jun 20 01:17:09 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: John Hubbard X-Patchwork-Id: 13285110 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 kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by smtp.lore.kernel.org (Postfix) with ESMTP id E1CE8EB64DA for ; Tue, 20 Jun 2023 01:17:41 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id A08688D0008; Mon, 19 Jun 2023 21:17:36 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 96F0B8D0007; Mon, 19 Jun 2023 21:17:36 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 6AFDB8D0009; Mon, 19 Jun 2023 21:17:36 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0017.hostedemail.com [216.40.44.17]) by kanga.kvack.org (Postfix) with ESMTP id 50CA78D0007 for ; Mon, 19 Jun 2023 21:17:36 -0400 (EDT) Received: from smtpin19.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay04.hostedemail.com (Postfix) with ESMTP id 2CD8B1A04ED for ; Tue, 20 Jun 2023 01:17:36 +0000 (UTC) X-FDA: 80921363712.19.2D77A85 Received: from NAM11-CO1-obe.outbound.protection.outlook.com (mail-co1nam11on2050.outbound.protection.outlook.com [40.107.220.50]) by imf12.hostedemail.com (Postfix) with ESMTP id 195C540005 for ; Tue, 20 Jun 2023 01:17:32 +0000 (UTC) Authentication-Results: imf12.hostedemail.com; dkim=pass header.d=Nvidia.com header.s=selector2 header.b=tn1RRm8D; dmarc=pass (policy=reject) header.from=nvidia.com; arc=pass ("microsoft.com:s=arcselector9901:i=1"); spf=pass (imf12.hostedemail.com: domain of jhubbard@nvidia.com designates 40.107.220.50 as permitted sender) smtp.mailfrom=jhubbard@nvidia.com ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1687223853; h=from:from:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:dkim-signature; bh=iP9o5A+zo7bJweh4Rc7yXQPSG4GKmkDno5NX83EjreQ=; b=Jw12IF+Gw6Q0EZRgCxq6TJDTR3UFtDLIlT5anYkxLPA0lcuNN+nRzc3YEqmd9yFwKfLKIh aOki+4wGXfjbQ26ZEPulV/tj84W65BNZO7ePVGRdOtVBk/JrA5EZdqJ2DT0HlbIz1/lj5j /N+MN26q8seB2YuAXtjY6m2d71QVcvk= ARC-Authentication-Results: i=2; imf12.hostedemail.com; dkim=pass header.d=Nvidia.com header.s=selector2 header.b=tn1RRm8D; dmarc=pass (policy=reject) header.from=nvidia.com; arc=pass ("microsoft.com:s=arcselector9901:i=1"); spf=pass (imf12.hostedemail.com: domain of jhubbard@nvidia.com designates 40.107.220.50 as permitted sender) smtp.mailfrom=jhubbard@nvidia.com ARC-Seal: i=2; s=arc-20220608; d=hostedemail.com; t=1687223853; a=rsa-sha256; cv=pass; b=js5eKtzfricxB5GFwXsUnMieTkmE+hnWiuabpbpdDywVaGXb54ToBg8IQRBqqZ2hQJ8/pp fkvr8Ed09cBFmkE3RV8xHgBKsV7VMCpIbkuRWt2RMOvgThq7+nuC4FcyQ60CjHbgbn+ngv kqnYiJuAq8Ud3kCwM+yGlcEktYs5CfU= ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Ye3LYtuT1M1IXmZgTQNVOt8Lj3FQ1IyTTI5aOFVqT5yvpBzJ45alRZIzo+jVRNkq564/J/x86cvGd+d3RxzDD2LENCGaXkhI85Qm8+76Ri3vkvdRW9qsGUm6w+mr9sRC3F6vMGt7hpRTtcaJedoDALDuwprIO2ZOywc+y9zSRIlucCmvuWIm80eqOyaqBA59cn/6W7MNBywwAnV7/3ctqCYCEfaYU5P1zndgNpgna+AMsYBmelTsfpiyyjaRdI+0hdhKkgcZbgmxpwWNaFYgf9J5M5xif/c5czq0aukLfHhgOX8o/9XHi0c4MOk0wFNXDZ0SDrc4CyJTlfUNLq2roA== 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=iP9o5A+zo7bJweh4Rc7yXQPSG4GKmkDno5NX83EjreQ=; b=kInNYkIH2IM8KceOBH5gXw0vTqkn57iyIvADmIGkFhmf3xNje0xpZVVKWspoMLrvGB2/AkhfhVXWld2xoXPU/qLB0o2gt++JtfCQyoc8ah8V2yiuVYKlR7gRnQM4pHQib5cotwy35ZTSmQ2oYDyTPPw0FCrwVm0/RVMDyn1Khl6e+19xpIwbhnDuSFXGr7zQtJs9pPdnasrooEPEHh+i2sMu5ulOoKyALAtx+RNjn5rl5FcPqFRMJVE2QTGRkJpX4lePwoxdD6dBRF6k4TB6MKvc6ouB8NltCyWKV01DqoDjJFUOH08PnMst5siNjtu5WTA4CSIX9VpKCihunRLkMQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 216.228.117.160) smtp.rcpttodomain=redhat.com smtp.mailfrom=nvidia.com; dmarc=pass (p=reject sp=reject pct=100) action=none header.from=nvidia.com; dkim=none (message not signed); 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=iP9o5A+zo7bJweh4Rc7yXQPSG4GKmkDno5NX83EjreQ=; b=tn1RRm8DLqjXU9UiTJQcDt3h+2O93Ygo0GojKlWt5cLnqFiEclhj+N48pUNAvjd5FgwHS8bR4scn06vOgAN+sEma039o3MDCUp6yblJWyt+JjfKScoVrYp02w0/NekzyrkyQvxfICejzOSluV+UFXkNpRAITjTl+t0qmMJluWnhEVPBmo0Efq5FWNz9qOD5Q8qPZMLpUqAfgYe8GpVKDVicge+C955lYuIkLN3RcHcADdgTtuuyedeU/act2pLzy+OCbGIrtD2vQWum3Mga8MsCW43l7qYjGx7qgQOHJH6pTsjC2/X5J0SV98kxs2KMSQFva+XSIE8Pec4fDt0lkSA== Received: from SJ0PR13CA0076.namprd13.prod.outlook.com (2603:10b6:a03:2c4::21) by LV2PR12MB5990.namprd12.prod.outlook.com (2603:10b6:408:170::16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6500.37; Tue, 20 Jun 2023 01:17:30 +0000 Received: from DM6NAM11FT069.eop-nam11.prod.protection.outlook.com (2603:10b6:a03:2c4:cafe::c9) by SJ0PR13CA0076.outlook.office365.com (2603:10b6:a03:2c4::21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6521.20 via Frontend Transport; Tue, 20 Jun 2023 01:17:29 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 216.228.117.160) smtp.mailfrom=nvidia.com; dkim=none (message not signed) header.d=none;dmarc=pass action=none header.from=nvidia.com; Received-SPF: Pass (protection.outlook.com: domain of nvidia.com designates 216.228.117.160 as permitted sender) receiver=protection.outlook.com; client-ip=216.228.117.160; helo=mail.nvidia.com; pr=C Received: from mail.nvidia.com (216.228.117.160) by DM6NAM11FT069.mail.protection.outlook.com (10.13.173.202) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6500.37 via Frontend Transport; Tue, 20 Jun 2023 01:17:29 +0000 Received: from rnnvmail203.nvidia.com (10.129.68.9) by mail.nvidia.com (10.129.200.66) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.986.5; Mon, 19 Jun 2023 18:17:21 -0700 Received: from rnnvmail204.nvidia.com (10.129.68.6) by rnnvmail203.nvidia.com (10.129.68.9) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.986.37; Mon, 19 Jun 2023 18:17:21 -0700 Received: from blueforge.nvidia.com (10.127.8.13) by mail.nvidia.com (10.129.68.6) with Microsoft SMTP Server id 15.2.986.37 via Frontend Transport; Mon, 19 Jun 2023 18:17:21 -0700 From: John Hubbard To: David Hildenbrand , Oscar Salvador CC: Andrew Morton , LKML , , John Hubbard , Peter Xu Subject: [PATCH v2 01/11] selftests/mm: fix uffd-stress unused function warning Date: Mon, 19 Jun 2023 18:17:09 -0700 Message-ID: <20230620011719.155379-3-jhubbard@nvidia.com> X-Mailer: git-send-email 2.41.0 In-Reply-To: <20230620011719.155379-1-jhubbard@nvidia.com> References: <20230620011719.155379-1-jhubbard@nvidia.com> MIME-Version: 1.0 X-NVConfidentiality: public X-NV-OnPremToCloud: ExternallySecured X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: DM6NAM11FT069:EE_|LV2PR12MB5990:EE_ X-MS-Office365-Filtering-Correlation-Id: 9e5db98e-4a20-4a4b-e01d-08db712c1db1 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: cbrTX2hbqEXVUecY2Sx225TXnfoF7a/S+9KcMbgPWgUprG2wzUd94jaelHG3U+/4+MCifGTBbPaJl5/51WVXzNXphRCoE3BIZOENPWdaKnrT+tnLaIjDZejSAKmHmdMM1ldrGM9ujvjmnNLLny7USwLGrk4dMQTHh7GLxx3HHoUWxaJaiqdD2QpXVCxCzhECrelsjE7kHKhijzlvB5Jx83/jruUzeAghgPdW2TJaOeP6ZLpCvaU/Mw0ziLLTIlZlHIHehNZzu/WW4WQD2iPMZ/nnsgzLNJEIai1iYcMRvTK28Bt1nOAPbKRqXV4O2AQGbP2IhxthzLkJUlCeplYB3SuaufwP3xBJLRykNRu0R9WFiq+sXo45DOXH34UV3KGHKE899sYDuvivQMACwE0UVHghWOQl6MEgxE2YM/e5tH9Jd7N1txcMdqMLzNvIjrRk+NIXdWmEmyv4vAsIlzJClKWroSnH6m0l6IQhNK8q5nYcxVECL9BMPKl/EkygMHgXARDVdLikqHqlNMB1mkB5FnXCp0u4z5TO2I9tmjFD9M6HMwjRaddBB+he8Bm+jzhFSfNd3gx/puqwlx1hvsxgCHClS8O0RWAUkycvtgYMYzvnZJh8GBpfKxN+i+pgYAV/oC12956G6M4Im2kKqofpqSZogB1noX/ce+u8kHL9+NXksE0uaNXlMCkeqzQfbnxghVCeMCa31riDI0fTTM8oA2B/4cbsYp08GIqRtMvNNKIL5Jmf4T/k7nrtrCOOljrC X-Forefront-Antispam-Report: CIP:216.228.117.160;CTRY:US;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:mail.nvidia.com;PTR:dc6edge1.nvidia.com;CAT:NONE;SFS:(13230028)(4636009)(39860400002)(136003)(396003)(346002)(376002)(451199021)(36840700001)(46966006)(40470700004)(4744005)(2906002)(36860700001)(40480700001)(8936002)(8676002)(5660300002)(316002)(6666004)(7696005)(41300700001)(36756003)(54906003)(110136005)(82310400005)(4326008)(70206006)(70586007)(40460700003)(478600001)(2616005)(83380400001)(82740400003)(356005)(7636003)(47076005)(336012)(186003)(426003)(1076003)(26005)(86362001);DIR:OUT;SFP:1101; X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 20 Jun 2023 01:17:29.2347 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 9e5db98e-4a20-4a4b-e01d-08db712c1db1 X-MS-Exchange-CrossTenant-Id: 43083d15-7273-40c1-b7db-39efd9ccc17a X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=43083d15-7273-40c1-b7db-39efd9ccc17a;Ip=[216.228.117.160];Helo=[mail.nvidia.com] X-MS-Exchange-CrossTenant-AuthSource: DM6NAM11FT069.eop-nam11.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: LV2PR12MB5990 X-Rspamd-Queue-Id: 195C540005 X-Rspam-User: X-Rspamd-Server: rspam05 X-Stat-Signature: rzkc7wuiywqjf1ishtdr5qygcjk3whq8 X-HE-Tag: 1687223852-95241 X-HE-Meta: U2FsdGVkX19caKGJZH47WFcVGQAot95vrm75Sg2bQ4g5z+PDgTl5Ych1FAZaQx3XoncYYnPWwKvv/5EPO25mBlgWi1PzpgAxuMkYDBCdWpgRftnYoSUXqWUz5WH7Y3bzPJqBJesMOvDzOQSaC49QI+hVUkEqeZUoUh1sOSMxCdFQzB9J5XB5th3zEf7iefKgguIqhvd1D+8dJZgDirQeEGCXaDBGX5hElHe8G3RB8i+p0PrXoyH0eOvhW1XHn6p9c0tdiZBCyFjgoZUNEJ6J5K8++YAn5yYPBwCAky5R13jRgvfLHHLv25mgjxGFNW1V45oCcqrj8i3MCMECVMTfi5WM4b076y6vuWSR1NRVJDS66TsHrx/DTTX+D4EQmv9+HBqGskQzDc86bKNZImc8lftuMx3XLZENGg5V2Ag7GJbbZYGh9opCPLGKeedEtomBzXoqByf/Lqs0sQIpKt7eojEx5XGvx0QpapOKLwBZQ494YkAQbk7F/pbc5C2vnAgwH2eOJrDWtsH5wY071uCYzYURP0J2WyjidYTDkN4GhIOGetkw0reGctAPU0CS5x9vPmnLVdtZTnViRXtZnTc0jSlVZuj+cagIqE58Y/WLnDYeVqEAcVMvI7LEw9BBrbSrj7ZODCrk6tSRP7hyCASbDNYDoIxypSg3Go7rwqD5RtMqS81Ho/5b+omJcvXYtPGCeXMFve+ne5OUo6f3+x78yOCSAaB1hYrQ1qQ1/KWryXXUmcQchcVucEufww2OBKyBv4sAZ5rT4gQeypPZth0yk2HL6SKU6nyT7MuoLvjcyHGoqCbYynir6kC0rFfkEWHZcydpVbjamR4KULvu5gdb+oBSyMkGezoPaMI9WtysA4ADQbMSr2yclOpaDVPAGEBuVIgoZ6uh2g+lfjvWbh1/Z8uzGWCGUuzLO0rhODRG6ZOQWI6ymY985y4zeGKrsGaH7ttae64gKzSqCKORoLP xND83kiO VLRSAdLT7hP/zM8ylYUG6lWiQEVFgc3nEGVRw/ChinGOSXhA4b9Go3sx5Z22MZ5vluAmdjwG6ud5PSYg4jgbAveKsIC6P7YOtniMj/p2uY1QFNhuE3P/39PjW5j7KH/utcUXJ51mR3xzyVtUVaCMKfd7WdOIr/3IBskMlbkOAVjl42FkHsSYZAQZQEKEwdLa7201qrDojEdmNNcXiCvqeLJK5RrHK1Q0clzTJi2HMzIo1Xz22oNJ8NCW7E6jykZz/jp0sbHWpxTp2L8U= X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: uffd_minor_feature() was unused. Remove it in order to fix the associated clang build warning. Reviewed-by: David Hildenbrand Reviewed-by: Peter Xu Signed-off-by: John Hubbard --- tools/testing/selftests/mm/uffd-stress.c | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/tools/testing/selftests/mm/uffd-stress.c b/tools/testing/selftests/mm/uffd-stress.c index f1ad9eef1c3a..995ff13e74c7 100644 --- a/tools/testing/selftests/mm/uffd-stress.c +++ b/tools/testing/selftests/mm/uffd-stress.c @@ -88,16 +88,6 @@ static void uffd_stats_reset(struct uffd_args *args, unsigned long n_cpus) } } -static inline uint64_t uffd_minor_feature(void) -{ - if (test_type == TEST_HUGETLB && map_shared) - return UFFD_FEATURE_MINOR_HUGETLBFS; - else if (test_type == TEST_SHMEM) - return UFFD_FEATURE_MINOR_SHMEM; - else - return 0; -} - static void *locking_thread(void *arg) { unsigned long cpu = (unsigned long) arg;