From patchwork Fri Aug 13 16:59:28 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tom Lendacky X-Patchwork-Id: 12435967 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-18.7 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER, INCLUDES_PATCH,MAILING_LIST_MULTI,MSGID_FROM_MTA_HEADER,SPF_HELO_NONE, SPF_PASS,URIBL_BLOCKED,USER_AGENT_GIT autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id D74FBC4320E for ; Fri, 13 Aug 2021 17:01:09 +0000 (UTC) Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 9BCB361106 for ; Fri, 13 Aug 2021 17:01:09 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org 9BCB361106 Authentication-Results: mail.kernel.org; dmarc=fail (p=quarantine dis=none) header.from=amd.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=lists.freedesktop.org Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 41D666E8A2; Fri, 13 Aug 2021 17:01:08 +0000 (UTC) Received: from NAM02-BN1-obe.outbound.protection.outlook.com (mail-bn1nam07on2043.outbound.protection.outlook.com [40.107.212.43]) by gabe.freedesktop.org (Postfix) with ESMTPS id F2D666E8A8; Fri, 13 Aug 2021 17:01:06 +0000 (UTC) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=IGRZJcPy6P5tF1JUO5XcwXANZ3wLbqu9Mzdwp3/jqNtMBnChgJHPUEmgXlRrw+rFryMrye9e0ItZuIFC1xw99+dkpWlMKx7+cx6ZFVRSLtG0roDeOhfjL2FJ3RiNaw/gu+jxRPzFAjyPS8LqXhFdL1CKedeX0zDR5fQP/wHQCDtTzp2yDTaZr5JEkhAAqzQqcGv2J0T1QWyRBkZmQ+qiHktML8FX6PonOB+eQjWpH29Jmm4Synms5aZryeR2khgFMXy15pKTqIML0NqbA8dF7IpOTaui491oqTN/37uILJs+oYlWUXRWXWPlVSePahiRl3cg6W7Xm3vGeMK1s8NySQ== 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-SenderADCheck; bh=r4M8Xyn5Mawk/DMXQ+3RqHw1cVkBCe7o51wVYlspL74=; b=ad70PkG1HbketO00GR6OYsp0DlPRDnmCZBn7KuMBCuEdUe11elF4g49vC366ZR5/QnH85q8YMjYyYGdu1MNTsvQzoc/NX0ccJWCHdi3zntQEYvIv/Hi2qnWYHGQzz9gObYcNwk3gfbQLHxlZZPK8adGWlJ03liLxg7QL53DoPtPPO9p1UCdGLQXKkma8ilup166DbolurPrXR9BHBfEH7+ig/M+niktsmi62NofZDlOiAY9uhC0rpaTJXhU1z+cYucGSAG83dBzpJadU8aQmi94kXVt561h25sClHdyg9T5h44M6vNcrAPafrvHHRqovnPukUEKMzD+KUBfy0RKOEg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=amd.com; dmarc=pass action=none header.from=amd.com; dkim=pass header.d=amd.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amd.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=r4M8Xyn5Mawk/DMXQ+3RqHw1cVkBCe7o51wVYlspL74=; b=OI3NOJ6xgsYOfRLc7GVIhAvYHLW3XHCCHbHCXBBVz2AUaKNrRqpSiMuXbc/ij5I/FJtRPEncMTCBvOjsZ23hTHLUYOTJXUdK/SMcUVcHfqeT6q8lsKque3MkUHjhQnfQChnq6XOnr3TVp5Kcrxu2RRdgys9r/Z0rBjWj4B36Hzk= Authentication-Results: vger.kernel.org; dkim=none (message not signed) header.d=none;vger.kernel.org; dmarc=none action=none header.from=amd.com; Received: from DM4PR12MB5229.namprd12.prod.outlook.com (2603:10b6:5:398::12) by DM4PR12MB5341.namprd12.prod.outlook.com (2603:10b6:5:39e::18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4415.16; Fri, 13 Aug 2021 17:01:05 +0000 Received: from DM4PR12MB5229.namprd12.prod.outlook.com ([fe80::d560:d21:cd59:9418]) by DM4PR12MB5229.namprd12.prod.outlook.com ([fe80::d560:d21:cd59:9418%6]) with mapi id 15.20.4415.019; Fri, 13 Aug 2021 17:01:05 +0000 From: Tom Lendacky To: linux-kernel@vger.kernel.org, x86@kernel.org, linuxppc-dev@lists.ozlabs.org, linux-s390@vger.kernel.org, iommu@lists.linux-foundation.org, kvm@vger.kernel.org, linux-efi@vger.kernel.org, platform-driver-x86@vger.kernel.org, linux-graphics-maintainer@vmware.com, amd-gfx@lists.freedesktop.org, dri-devel@lists.freedesktop.org, kexec@lists.infradead.org, linux-fsdevel@vger.kernel.org Cc: Borislav Petkov , Brijesh Singh , Joerg Roedel , Andi Kleen , Sathyanarayanan Kuppuswamy , Tianyu Lan , Joerg Roedel Subject: [PATCH v2 09/12] mm: Remove the now unused mem_encrypt_active() function Date: Fri, 13 Aug 2021 11:59:28 -0500 Message-Id: <83e4a62108eec470ac0b3f2510b982794d2b7989.1628873970.git.thomas.lendacky@amd.com> X-Mailer: git-send-email 2.32.0 In-Reply-To: References: X-ClientProxiedBy: SA9PR13CA0145.namprd13.prod.outlook.com (2603:10b6:806:27::30) To DM4PR12MB5229.namprd12.prod.outlook.com (2603:10b6:5:398::12) MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 Received: from tlendack-t1.amd.com (165.204.77.1) by SA9PR13CA0145.namprd13.prod.outlook.com (2603:10b6:806:27::30) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4436.9 via Frontend Transport; Fri, 13 Aug 2021 17:01:03 +0000 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: e6fbfaa6-dda4-49a6-4d7b-08d95e7befe3 X-MS-TrafficTypeDiagnostic: DM4PR12MB5341: X-MS-Exchange-Transport-Forked: True X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:1107; X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: UsRZPUIl67uI750ilxgHe6DIXAmWRO5kypnhEq2k1RUnQErZB8nyHisrmBcnURRrT/j9z3I8G1crJXkGLzEj2TNLfcztYPRwuNk2IYgR9AeYoHlUAk5BTiEapp46hCzcnA1XUmzyUoYKLiDxjIcU7Y7dr2XZmSUXcyqxJMo8GPnc2ivqdlgVuWqw0H5THWO5JDBhj2KwWbQet/Ez+PozdqRR91D+6j4SUZ83wS6rb8G1fgxnaUomxMtdEsiUcHwx04sZYubT2NJKCWG3aAGndx+v2qLBO2/4izX8FMPRYSQXx/PckI1GeVaMzw4Qv0LSUm6x4pWnS92uwSA7AcSncm17Y1Upv+j+H1rMIs0z4s0OaFatH+Hzq96V4uC3grC/1CgHiIvH3EEqEK597YdRrWXG65yjKidyd1wifEMVapTywKfdaBCFfapONptAjPqz/tK8KecWzWSgMQR3tETvIA3xf++dOB+YBJeJfNnGDV8FCVgdRqd+m8TZIWZDGMeOEW3f5/qve5A0p9rGuKo+YsT/oVgP23H3MJaZDyAqhKp9bEXcVz/M3WEy2H51+5P3I2qFWCGxYAv0Vf4HWugT9NbifeqmU8/h5NhBho59pq5bFFVK11T9FwbDLXkg99h3t3xu3nqjDfQXC9adTgnN6MQafp03FYQzjAHg2EKlaxxojNUhJ40S+WhZuiPLSpRcMdaNGpO+gt2Geodp+tOxHfQ3A/gFpM6sIBlQPmy43EQ= X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:DM4PR12MB5229.namprd12.prod.outlook.com; PTR:; CAT:NONE; SFS:(4636009)(39860400002)(136003)(366004)(346002)(376002)(396003)(86362001)(8676002)(2616005)(4744005)(5660300002)(6666004)(54906003)(36756003)(38100700002)(7696005)(38350700002)(921005)(52116002)(8936002)(2906002)(478600001)(83380400001)(4326008)(186003)(6486002)(7416002)(26005)(956004)(66476007)(66556008)(316002)(66946007); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: B6ar5e+Ojeb3PldAJH8Q+kPp57d/P2Iu6+UENf89dF1v2YHuDyzkA7FgbzpWHtKaHYzMqK6x78PFUdnYMXtbiLbicJF2JQrmBu58mcSifzTGPBfCnAUvdtCDsO+cZ/WCSC1WK15KofMD3vTCxroYwIBX6gyTOiJjyhsZVcofr3JVdV+ZHElHbmzFhjVNozfYDlWbPgaSH8D1zErZuf7Tu7lHh1rn19GjBEtEWWoGw6+vmpbNmt7iFkRRrXR4zZ9MqG2LflZG1D/N7tHqkdFJOV85pyEFiOftztWLGR1b7HyQ/nYLNHkgOltSd8t1umzvfA2kxaN1PbWBHYTX6hPw/hpdmHStFZBZkG46lwdvJhKuu9fy72WSSR90noteT8WenrvaELFHFu6tmb7BoWsOnYxZ1aUiBM0I7scv4DIpPiOXhTQfnWK6cT0RBlWCNnPqcdN6Jt+QCCRMDSb1fyQNZS24SsVYisTfC1aSotjWE22U/ncrHiXZ7H6vE4WfEow1bFoQbkyXx42o7fMfelc8xi8qIg1M86sK7FVDV7WjApE8NPXwyXTTJsPEK996l4sxZhqP7Vqg7I/Z7NZ9M+735E9tdyp4O1G4sIyFmCrLuqLMjrlFZL1BSdv22ublL3NFYhTE1ruLNXGrTKpjsLDRHB+UOzwbxV2YJXfaubN9w0lQs+K+kpMlKX6x2c3rhf8Hgl59GfpcAjzc1LarQhe0p8VR8Ea47yG0RPmKa7TjJ2nGV0Hd3oj8nYruZN4LaQeGHDd7UdlxHDPZX56TvLOFFC/wov/i+zqFPLZ5RuqKg64ovyHGXB1M/iVyrHjch+1Avw60EYzno+Pa+efhzcueZrff1XSAcxSFaIKu6Yybvbbb9P8w0XikeuguU1waI4I/Tk05+aKhkVv3zGrpwk6bOo1yNKTtwhM4oa8fGXS3oJ3/2kJKo7bIm54BNv9+mpQULj1amIKxoCrx8nV+dFS+FcDSTbm9A8NSDrOaugMOOU6NE5vQLuF4wHPjN14d7NV2MnVgdm3/qKylDsvQfHm4EBa+UqVRvPCJUShE8N9aCF+ssswRub6aMLccfCTFNfHJr2CyCG9eA57yQYr7MgaWz1qY8Z6THhh44Fj37rT7bsPbKXXD/hxNIWuTU9lPYS7jynYAyJ8Nf8+0SCaiQmnh85fxd/arJfhQxP79X5Df1wVCI0LTat/Wc3qfE+UGxUd9Ss7xOz5pOOL+JQ9fgSyqnt8RO6KTXO05cuI7GAw3UmTdYnZjp7ZkrrrvRdDtRqilLZxsLDGkz670Z7hBrb0Qn2rWrYv9RgA4b6zmaj22qPMshIMOJqpEEfODG32Zi6Qn X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-Network-Message-Id: e6fbfaa6-dda4-49a6-4d7b-08d95e7befe3 X-MS-Exchange-CrossTenant-AuthSource: DM4PR12MB5229.namprd12.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 13 Aug 2021 17:01:05.0107 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 3dd8961f-e488-4e60-8e11-a82d994e183d X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: iNNo5l1Xy/99nFOfZ7LPRQ2GEYF/10iEoMuYmMWPDKhWsythOAaJWMFV7nInBuTIOfKdoEtdeQ9ttdZGyhncMg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM4PR12MB5341 X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" The mem_encrypt_active() function has been replaced by prot_guest_has(), so remove the implementation. Reviewed-by: Joerg Roedel Signed-off-by: Tom Lendacky --- include/linux/mem_encrypt.h | 4 ---- 1 file changed, 4 deletions(-) diff --git a/include/linux/mem_encrypt.h b/include/linux/mem_encrypt.h index 5c4a18a91f89..ae4526389261 100644 --- a/include/linux/mem_encrypt.h +++ b/include/linux/mem_encrypt.h @@ -16,10 +16,6 @@ #include -#else /* !CONFIG_ARCH_HAS_MEM_ENCRYPT */ - -static inline bool mem_encrypt_active(void) { return false; } - #endif /* CONFIG_ARCH_HAS_MEM_ENCRYPT */ #ifdef CONFIG_AMD_MEM_ENCRYPT