From patchwork Tue Sep 10 09:04:09 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Anshuman Khandual X-Patchwork-Id: 13798131 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 588D7ECE582 for ; Tue, 10 Sep 2024 09:04:23 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id C12248D0036; Tue, 10 Sep 2024 05:04:22 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id BC14F8D0002; Tue, 10 Sep 2024 05:04:22 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id AD8AC8D0036; Tue, 10 Sep 2024 05:04:22 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0012.hostedemail.com [216.40.44.12]) by kanga.kvack.org (Postfix) with ESMTP id 8EED88D0002 for ; Tue, 10 Sep 2024 05:04:22 -0400 (EDT) Received: from smtpin23.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay05.hostedemail.com (Postfix) with ESMTP id F40B6413CC for ; Tue, 10 Sep 2024 09:04:21 +0000 (UTC) X-FDA: 82548242322.23.9E78992 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by imf01.hostedemail.com (Postfix) with ESMTP id 3A8EC40006 for ; Tue, 10 Sep 2024 09:04:20 +0000 (UTC) Authentication-Results: imf01.hostedemail.com; dkim=none; dmarc=pass (policy=none) header.from=arm.com; spf=pass (imf01.hostedemail.com: domain of anshuman.khandual@arm.com designates 217.140.110.172 as permitted sender) smtp.mailfrom=anshuman.khandual@arm.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1725958946; 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-transfer-encoding:content-transfer-encoding: in-reply-to:references; bh=9YZMYEg1zW60RPae0tMgG2CrjuP2X92XCiK/y1XG1ik=; b=M2uKi0Oa3DOWHebE+sAU+tDerp6/BXz+nkSFT5JHkJLUv5aFVtqDNfc4ZyGtESs/se85Ai XwfwHC8xuUu436BiDRUoP81BA8IEnxLOMpf507+7HvbVmmy7COYH0IYCCfP3vutWpBQoe0 YL2OhVrsLdku2HBCF3q65YE2UWx9970= ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1725958946; a=rsa-sha256; cv=none; b=48qOtPriNmnFT5yAg53e6AaRh+snWovIg1nl9SStzvRcQ/ckpc/C1uxdgiVUan9Mw9VTru 8OEC+dLreWZqtTs8n3ifHD3c9ynUv0tB/wg81rduAWANMnof7QUnfoAmFzg6jeeRG68Siy fyFAWO+YcU/oMrbRuvyWwKEs+jpX+p4= ARC-Authentication-Results: i=1; imf01.hostedemail.com; dkim=none; dmarc=pass (policy=none) header.from=arm.com; spf=pass (imf01.hostedemail.com: domain of anshuman.khandual@arm.com designates 217.140.110.172 as permitted sender) smtp.mailfrom=anshuman.khandual@arm.com Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 46256113E; Tue, 10 Sep 2024 02:04:48 -0700 (PDT) Received: from a077893.arm.com (unknown [10.163.63.106]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPA id 8EB473F66E; Tue, 10 Sep 2024 02:04:15 -0700 (PDT) From: Anshuman Khandual To: linux-mm@kvack.org Cc: Anshuman Khandual , Andrew Morton , David Hildenbrand , Ryan Roberts , "Mike Rapoport (IBM)" , linux-kernel@vger.kernel.org Subject: [PATCH] mm: Drop unused set_pte_safe() Date: Tue, 10 Sep 2024 14:34:09 +0530 Message-Id: <20240910090409.374424-1-anshuman.khandual@arm.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 X-Rspamd-Server: rspam07 X-Rspamd-Queue-Id: 3A8EC40006 X-Stat-Signature: dpsm36yutqerdd8gw19bqht4md8b8ggj X-Rspam-User: X-HE-Tag: 1725959060-439284 X-HE-Meta: U2FsdGVkX19gdHEYbP1sGGjGdw2Uf8tY6C/D0jQ1ldCeBG2AqH1pKZfRWBSkZbkMI0MUOftC+89YtiU676em+Rl9GPqHes3RP6dx5YZYuI2iBqZ3BlxcdzrsO+1aaYfC6jeV1sUNU65zUohQboOAVummiecjy4YUaKisUT/KcqJq/QKd+pQcn093vd5F8hOS6bxBgxnkSFmN3cAIyy4gkvE5OX32t94H9O4B7iMBgIXSaWQODOKiPrDGHn/pz+uyQic6X4QDpITfLlRaNcb0VaroC4cjZolL7/pxjbfCU/tX1zfRuA0StEoTvJn0kebqYXj0c8pSK/zOr1q9La/xWJsl7Cg5IStj4SG5MlekINtFcoTFp1jWmwwdFQGNoGoOll5l7q79kqq9iLRc1LFUTxVE6F4cJPiwwj+CDV+HKffMSeuznBXE/odIgEKYBZDU6zI28d10fl8ZIhx7zYBE7ecFTrrkRe/KacZDMvq/+zAJglg54L3uA7O1w0a4YQqMci/bfyWYMMSb+zptosDwIA74T3QAZQ59o9AdJRoPmSJYFXsKbc/EOYPm/IJqSHwfUVjkmCn0iqO2DKtIURJ9QGC3+ZNZdWXDQJuWMy70BqtYe7TdPZQ8tyrW5p3rm/eSyobSLF2R4BNuut6iizdjashDXvMmTYGcvb2eEp9aolJ68V1E8Ls0JfMWJTPLEaUMVvvsk6cLTI2VpDna/Vva9sqOeV4wzzY9IhHx+DcYFi4woAz3QVkMFCIut7FjB4Vk8wqo29wBgyeuoFF1mcI0lAYtlIvtcWcv3eu7gL3K4xT1GFcro9p/ZTX34GN5IlP0abPgDtooSIpY8yY73R6dtW0PypmBksthx4Bi+FM05d91KZFiosz7gDwwIt9i9dqpZhUuEwkOic+7RhxWywOjqv7WMpEPrrgWDjMphsLUWy3Pj6nrpb4eBmoF8OHLNO/2epnjqE9e8cXuJHcIOXM xrsAJ+7B ejmDI3p9TIIruYj4iotQDCcIgrZ3orIdGA5NA6DR20D/0FfdVvlxnefEZ9mr9QjYsoVAooP8pGgB0Djisxe+5XeXzFmdqvVedPkIQHSsBFyY6flw2Pyy7MNLgbCgMcNGqcwpz92tbAEyTkONHol35ZAGR9hjJRqQxrxuM7l+gtvJ2YWVj7HKwmUKpEmRjfINOPiqeALNr5FQXo+Wq2bVP7nYYygS40IhX3TBrgPkSQBvwaTFt99jKvZFrOipEmiL/tISei5c3MC9D9bgBlF2X2Y2M1e8vi4F6Ju0LkoQz347M7iEO9BdXHmxBD5kXM19xyr4ESXlwthpk2vSlT7I/n9orOZx6Tzq1DQ7pF5w9I1HSH5E= 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: List-Subscribe: List-Unsubscribe: All set_pte_safe() usage have been dropped after the commit eccd906484d1 ("x86/mm: Do not use set_{pud, pmd}_safe() when splitting a large page") This just drops now unused helper set_pte_safe(). Cc: Andrew Morton Cc: David Hildenbrand Cc: Ryan Roberts Cc: "Mike Rapoport (IBM)" Cc: linux-mm@kvack.org Cc: linux-kernel@vger.kernel.org Signed-off-by: Anshuman Khandual Reviewed-by: Ryan Roberts Reviewed-by: David Hildenbrand Reviewed-by: Mike Rapoport (Microsoft) --- include/linux/pgtable.h | 6 ------ 1 file changed, 6 deletions(-) diff --git a/include/linux/pgtable.h b/include/linux/pgtable.h index 2a6a3cccfc36..aeabbf0db7c8 100644 --- a/include/linux/pgtable.h +++ b/include/linux/pgtable.h @@ -1058,12 +1058,6 @@ static inline int pgd_same(pgd_t pgd_a, pgd_t pgd_b) * same value. Otherwise, use the typical "set" helpers and flush the * TLB. */ -#define set_pte_safe(ptep, pte) \ -({ \ - WARN_ON_ONCE(pte_present(*ptep) && !pte_same(*ptep, pte)); \ - set_pte(ptep, pte); \ -}) - #define set_pmd_safe(pmdp, pmd) \ ({ \ WARN_ON_ONCE(pmd_present(*pmdp) && !pmd_same(*pmdp, pmd)); \