From patchwork Mon Jul 29 18:38:44 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: David Hildenbrand X-Patchwork-Id: 13745584 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 975C5C3DA61 for ; Mon, 29 Jul 2024 18:39:34 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 31DAE6B009A; Mon, 29 Jul 2024 14:39:34 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 2CD7C6B009B; Mon, 29 Jul 2024 14:39:34 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 1968C6B009C; Mon, 29 Jul 2024 14:39:34 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0013.hostedemail.com [216.40.44.13]) by kanga.kvack.org (Postfix) with ESMTP id EF8746B009A for ; Mon, 29 Jul 2024 14:39:33 -0400 (EDT) Received: from smtpin02.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay08.hostedemail.com (Postfix) with ESMTP id 9983F14055E for ; Mon, 29 Jul 2024 18:39:33 +0000 (UTC) X-FDA: 82393653426.02.36C17DA Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by imf19.hostedemail.com (Postfix) with ESMTP id EABFF1A000C for ; Mon, 29 Jul 2024 18:39:31 +0000 (UTC) Authentication-Results: imf19.hostedemail.com; dkim=pass header.d=redhat.com header.s=mimecast20190719 header.b=YwyMUAFi; spf=pass (imf19.hostedemail.com: domain of david@redhat.com designates 170.10.133.124 as permitted sender) smtp.mailfrom=david@redhat.com; dmarc=pass (policy=none) header.from=redhat.com ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1722278344; a=rsa-sha256; cv=none; b=tooZFUVz1PtzJv/Fc3usgGBHoBNkBpnyP+Zt1DJThoRAB+H7H+8ZHyYvyw1BxBrhcNqoqL DQIK13DbHtNyp8APj4sKSUp2FbgcBZ3mJRKH+pMH7LnAzsVT40PeYxqANzaf2zGUtBc1si sG+fJVa3VqlDB88TRJRP7d2J5cQNkmg= ARC-Authentication-Results: i=1; imf19.hostedemail.com; dkim=pass header.d=redhat.com header.s=mimecast20190719 header.b=YwyMUAFi; spf=pass (imf19.hostedemail.com: domain of david@redhat.com designates 170.10.133.124 as permitted sender) smtp.mailfrom=david@redhat.com; dmarc=pass (policy=none) header.from=redhat.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1722278344; 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=9H38+PlxDPb0B2kVTxHGHrLppqPJ/7ePtq7mF29j+5Q=; b=k2t/WSwxg1q9oRUUGQX5KEmzCUc54D6KvtHN51GRbyyav7oRur/rS8Ca6R7w6zxV7g0h7Z CPYIozEQEIQD9AjcKXgic56Dbi5GnINjqR5JFJXCUavR75/B/qMdYpgsEtJoqkcCWrkR4E OuI/wLWJURx/o8fZk72YGcNm/aJUQns= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1722278371; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=9H38+PlxDPb0B2kVTxHGHrLppqPJ/7ePtq7mF29j+5Q=; b=YwyMUAFiqHaIjAfSSdi9ADnLGQlliCC1azpqqR29gxVdqaxueDRmXtkK/mxZjoAZSTyuiT ZMAMPq0pwuHxVztQxRE/SV0y7wIXMORWACuf+Ojn9ok0n33e+IK3sjOnF0QZO4/jw3WvDP 7zxetUfuDZkGrEeG75gV3gqWMOPLnDY= Received: from mx-prod-mc-05.mail-002.prod.us-west-2.aws.redhat.com (ec2-54-186-198-63.us-west-2.compute.amazonaws.com [54.186.198.63]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-274-TyEAJ39yMBCJknv_CsRGMA-1; Mon, 29 Jul 2024 14:39:22 -0400 X-MC-Unique: TyEAJ39yMBCJknv_CsRGMA-1 Received: from mx-prod-int-02.mail-002.prod.us-west-2.aws.redhat.com (mx-prod-int-02.mail-002.prod.us-west-2.aws.redhat.com [10.30.177.15]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mx-prod-mc-05.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTPS id 8C61E19560A1; Mon, 29 Jul 2024 18:39:19 +0000 (UTC) Received: from t14s.fritz.box (unknown [10.39.192.25]) by mx-prod-int-02.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTP id 5EF6D1955D42; Mon, 29 Jul 2024 18:39:13 +0000 (UTC) From: David Hildenbrand To: linux-kernel@vger.kernel.org Cc: linux-mm@kvack.org, linux-s390@vger.kernel.org, kvm@vger.kernel.org, David Hildenbrand , Andrew Morton , Matthew Wilcox , Heiko Carstens , Vasily Gorbik , Alexander Gordeev , Christian Borntraeger , Sven Schnelle , Janosch Frank , Claudio Imbrenda Subject: [PATCH v1 3/3] s390/uv: drop arch_make_page_accessible() Date: Mon, 29 Jul 2024 20:38:44 +0200 Message-ID: <20240729183844.388481-4-david@redhat.com> In-Reply-To: <20240729183844.388481-1-david@redhat.com> References: <20240729183844.388481-1-david@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 3.0 on 10.30.177.15 X-Stat-Signature: 1wpezqqww5bnawnrdhy6yhehu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Q3FG n4JCe05zre6G2oXcOd2+ORWV8YVKqFL+sqnKarQUH6yetKY0GcqHJqDEjYSop2AxnFu0NUQhiUdaq/s3gR4k0G2iJOV0CxsWZc6ZfNarANUzqqAKBUxjLcTFbLGMZtJeM/jtnxZSwt3Rkh19Zmm51GqBhW6rpQq2GlgIR28IkyiRgAWcYtRAam/jsHvDogMADWM4GJDZ0ssCDbsKo3RiRBp+VXgwVnUivm4KqJ8IO0bL/XB0Z3orFKO4AIPBbGlAtFxlzCWTJfhRR0FM3LIqu74oMmanLoXC28E9duE0f0oUX7dfApsUVVjz+hfANthaoPkx/wjGBGOBiGIvP4qAi/ZQO52y2v+mYn+BU 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 code was converted to using arch_make_folio_accessible(), let's drop arch_make_page_accessible(). Signed-off-by: David Hildenbrand --- arch/s390/include/asm/page.h | 2 -- arch/s390/kernel/uv.c | 5 ----- include/linux/mm.h | 7 ------- 3 files changed, 14 deletions(-) diff --git a/arch/s390/include/asm/page.h b/arch/s390/include/asm/page.h index 06416b3f94f59..515db8241eb6b 100644 --- a/arch/s390/include/asm/page.h +++ b/arch/s390/include/asm/page.h @@ -176,8 +176,6 @@ static inline int devmem_is_allowed(unsigned long pfn) int arch_make_folio_accessible(struct folio *folio); #define HAVE_ARCH_MAKE_FOLIO_ACCESSIBLE -int arch_make_page_accessible(struct page *page); -#define HAVE_ARCH_MAKE_PAGE_ACCESSIBLE struct vm_layout { unsigned long kaslr_offset; diff --git a/arch/s390/kernel/uv.c b/arch/s390/kernel/uv.c index 36db065c7cf75..35ed2aea88918 100644 --- a/arch/s390/kernel/uv.c +++ b/arch/s390/kernel/uv.c @@ -548,11 +548,6 @@ int arch_make_folio_accessible(struct folio *folio) } EXPORT_SYMBOL_GPL(arch_make_folio_accessible); -int arch_make_page_accessible(struct page *page) -{ - return arch_make_folio_accessible(page_folio(page)); -} -EXPORT_SYMBOL_GPL(arch_make_page_accessible); static ssize_t uv_query_facilities(struct kobject *kobj, struct kobj_attribute *attr, char *buf) { diff --git a/include/linux/mm.h b/include/linux/mm.h index bab689ec77f94..07b478952bb02 100644 --- a/include/linux/mm.h +++ b/include/linux/mm.h @@ -2205,13 +2205,6 @@ static inline bool folio_likely_mapped_shared(struct folio *folio) return atomic_read(&folio->_mapcount) > 0; } -#ifndef HAVE_ARCH_MAKE_PAGE_ACCESSIBLE -static inline int arch_make_page_accessible(struct page *page) -{ - return 0; -} -#endif - #ifndef HAVE_ARCH_MAKE_FOLIO_ACCESSIBLE static inline int arch_make_folio_accessible(struct folio *folio) {