Message ID | 20240814154427.162475-6-willy@infradead.org (mailing list archive) |
---|---|
State | New |
Headers | show
Return-Path: <owner-linux-mm@kvack.org> 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 0E5C5C52D7B for <linux-mm@archiver.kernel.org>; Wed, 14 Aug 2024 15:44:39 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 93C146B0092; Wed, 14 Aug 2024 11:44:38 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 890F86B0082; Wed, 14 Aug 2024 11:44:38 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 730036B008A; Wed, 14 Aug 2024 11:44:38 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0014.hostedemail.com [216.40.44.14]) by kanga.kvack.org (Postfix) with ESMTP id 50B196B0082 for <linux-mm@kvack.org>; Wed, 14 Aug 2024 11:44:38 -0400 (EDT) Received: from smtpin17.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay02.hostedemail.com (Postfix) with ESMTP id F068B121079 for <linux-mm@kvack.org>; Wed, 14 Aug 2024 15:44:37 +0000 (UTC) X-FDA: 82451273394.17.44C11D1 Received: from casper.infradead.org (casper.infradead.org [90.155.50.34]) by imf15.hostedemail.com (Postfix) with ESMTP id 3E766A000B for <linux-mm@kvack.org>; Wed, 14 Aug 2024 15:44:36 +0000 (UTC) Authentication-Results: imf15.hostedemail.com; dkim=pass header.d=infradead.org header.s=casper.20170209 header.b=vm4v2bc1; spf=none (imf15.hostedemail.com: domain of willy@infradead.org has no SPF policy when checking 90.155.50.34) smtp.mailfrom=willy@infradead.org; dmarc=none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1723650205; 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:in-reply-to:references:references:dkim-signature; bh=ImVhDDZvGKdMvHRXKWtBY7b1k/mxkNbLUAPdKjzQZA4=; b=Eu5UBeLGfRLABclu3/3j3hnRXcDIehMrIOerwDBGS5rLYzOOjMpC3tscs7FuTKBGLAsfGR Jx9mnWX0vrzU3hYKTAtOE8p1pT1ZllllLCLg7SzGSBd+rD0DEO9RBrPIAsmaK/o+mpiHpu Dict+M8iNyvHhibOlzP+d51I1VO8Sag= ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1723650205; a=rsa-sha256; cv=none; b=oAt3JcUOgmoeJGv7J0QPyx4xmbp7nUOlbWFkBI//kyA/1GYg2JmWXE3sLuMj0lUj8syH7I mDAEwZqrLqIu1kkTrhZbtTyBJBhyCDCDU4uwyJU+ET65TdqxQWi5d9qblq3cMBuIzIc0fQ 6Qz+6Tv3vnLQQvvAgq6IlIpaW3unQbw= ARC-Authentication-Results: i=1; imf15.hostedemail.com; dkim=pass header.d=infradead.org header.s=casper.20170209 header.b=vm4v2bc1; spf=none (imf15.hostedemail.com: domain of willy@infradead.org has no SPF policy when checking 90.155.50.34) smtp.mailfrom=willy@infradead.org; dmarc=none DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; h=Content-Transfer-Encoding:MIME-Version: References:In-Reply-To:Message-ID:Date:Subject:Cc:To:From:Sender:Reply-To: Content-Type:Content-ID:Content-Description; bh=ImVhDDZvGKdMvHRXKWtBY7b1k/mxkNbLUAPdKjzQZA4=; b=vm4v2bc1RJWujLJZeuHTO2tTsQ r9TLvhRGZHshO+cnttcm3iLy974IWx6T811ohmQwtnkXjc3sCZkSRvrTVT/gR9nkri6yeC707ghwJ Bh1bmjfmYR0tTcecAL4mF+rr6iy3ahkAozOJf1TqTanDkuXZmQXqfPxMOfu2lC3wBDD1Bl2AxnxTi tLvueUBRhx2Yljo6YI2vWB60Ha40L4FgOjsz7Ly3zHPmvRBwfRbjAJgWdFcwILeE/J2+nWDSyaOxr WowQrt9wNTEQv7Go8sxdc2Qep7gI0w3W6K+x60EZuFdRON7IxbDs6/aVGC1P2klBWA8+azfqVgUVj SOSl8zGQ==; Received: from willy by casper.infradead.org with local (Exim 4.97.1 #2 (Red Hat Linux)) id 1seGAs-00000000gHd-25s5; Wed, 14 Aug 2024 15:44:34 +0000 From: "Matthew Wilcox (Oracle)" <willy@infradead.org> To: linux-mm@kvack.org, linux-arch@vger.kernel.org Cc: "Matthew Wilcox (Oracle)" <willy@infradead.org>, linux-s390@vger.kernel.org, linux-um@lists.infradead.org, x86@kernel.org Subject: [PATCH 5/5] mm: Make mk_pte() definition unconditional Date: Wed, 14 Aug 2024 16:44:25 +0100 Message-ID: <20240814154427.162475-6-willy@infradead.org> X-Mailer: git-send-email 2.45.2 In-Reply-To: <20240814154427.162475-1-willy@infradead.org> References: <20240814154427.162475-1-willy@infradead.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Rspamd-Queue-Id: 3E766A000B X-Stat-Signature: x8g6qt1rfwupqi4fiefsqwf63z66i6o5 X-Rspamd-Server: rspam09 X-Rspam-User: X-HE-Tag: 1723650276-317149 X-HE-Meta: U2FsdGVkX18SgoMSkW9R6dPzKbJsAfxvFpU1ag4Cmi9gdIwezc6iN2q6RjlpuRr36hk+Cz2y3iX6zNDzQRW3XfjWSz/Wdc2nUkHIl342GV+lK7hSflLCHIqiyFMEP34F6vSJ/5rYgCc5sh3PbFhlwoGXW4iS8Np/QMhYO+7hWuvB1i4vwZmJA3CTZO4G111G4af+l6gEb8EiHaSIejsny1bMoAMRxQSYE249XtFGWDz9PhXzLi7K7mXECebiVUPPY5DTba/NWKGswcfwrFSz4rm9VqGg9DBw6Zc0HiXbvdLIFAe75Cj8hsRqublQ6HrGg0tmzzlRGzqVyuIHfOjazXKv8GAxLOQPeV27vGW5Vl34jcn0fOT99MjhYDQ/FQXp7Xqk+oPsboIetol/70anJU7yBUjTUDDXeF7RXoMiSruBppMkigvaQyRRLFzVggYZmXZ7XPgFCwQ+VSY1lUZJhdbGj1x+GNLfaRLzZOQVyCCZ4E7/w8dDFp/j8aoxv4jjdBelBj99rraH+7bgXIbaxecE/sZY/J+xqMT5eLLCc3IOgFVC3D9bIz6Ob+qV7jwRhPjF1Ole5h9pN8s+08WB2l2KT71iI6Hj0obo/75fjC9biM4/gWMKZQfhniN4a9zYdXO8sraDhsPlfJ1cZbj0c1lHD4H5qc5rXDItuqwFw/iAkO6YihqyE+BrtamQ+DD6z63xlzzaBENZyd9eI3sURDCrHxsJgKQlg6jQM5Eb9gliSnAwLmyfgvJNHetplWAsF/c7S2H/bXQq3ilyraDoSpRBHwi/Lu4eLwaKnB1nBnZbPMPkT7Qk5gM75zvkZ6fF2MuQ6ROcWY/6tRHsKPbNHUYxcdP5+lbkbBvn/69XCas2oSjRnGjV0CBCroobvDQavnPXhzPhLX3p11GjIPS9rdORXAWv9ofdvRXesB878I6LaTcVXlcc53JaIjX983t7vp9P0qpN2dyYIWJrPeM aKTQFFWe a2xNKgBrBiC4XGZSLIQVCptv/u2PdYrWj3xPVtYbu/BXexShYJoUtkQ4UiqWxYEnBetyIsKnM8VPDgAzXF1gzkbxz4//HShoFbW0LPvqDuO9WPepho5jNOT5DUHIK7lLNzyrORS6BCcXE3irg3UqcfbmLxyOR1e9e9RCQfWfCurm95NE8QjZbnlHjcjqJdfF5CSD5obyzI6GWSXGHhv/PHV8XNwl/8+2Wd5R6EliCxKeYV7Jb7AgfteBS2UKtMgohJZOP 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: <linux-mm.kvack.org> List-Subscribe: <mailto:majordomo@kvack.org> List-Unsubscribe: <mailto:majordomo@kvack.org> |
Series | Provide a single definition of mk_pte() | expand |
diff --git a/include/linux/pgtable.h b/include/linux/pgtable.h index 8204ffd87d74..1d46422b79cc 100644 --- a/include/linux/pgtable.h +++ b/include/linux/pgtable.h @@ -41,12 +41,10 @@ #define FIRST_USER_ADDRESS 0UL #endif -#ifndef mk_pte static inline pte_t mk_pte(struct page *page, pgprot_t pgprot) { return pfn_pte(page_to_pfn(page), pgprot); } -#endif /* * This defines the generic helper for accessing PMD page
All architectures now use the common mk_pte() definition, so we can remove the condition. Signed-off-by: Matthew Wilcox (Oracle) <willy@infradead.org> --- include/linux/pgtable.h | 2 -- 1 file changed, 2 deletions(-)