Received: by 2002:a05:6a10:c604:0:0:0:0 with SMTP id y4csp269616pxt; Fri, 6 Aug 2021 01:20:29 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwxwsEOkRZioq7rrd1TtAz2fOlMYLMMJLk4FfjwY4G/qnC2zmvyyfZOI3VcmRg+w8HPR8Zl X-Received: by 2002:a05:6402:1766:: with SMTP id da6mr11398624edb.322.1628238029754; Fri, 06 Aug 2021 01:20:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1628238029; cv=none; d=google.com; s=arc-20160816; b=c6aFUkE7nmR4VVfvx8UCzSEKqHf2waW6F/BSTs4oACc8b6iODBds5LmKmRKCcCPphb 8ko87HUGFnbNsC6ZDjuJYfydRCqquKML45lTpJHvoG5J+Wx9uKjWhNwybmS3vD0eiSwV eaHCoq8zKH0PkFgvPFml1YUsEv2EdUw4jOkWJuNyr6UqZ5FJT4pEXwwrpNi8VmcWlEVY RqiWTJNK18uZmpJ0TqmCyuNfWw1TKXqIC9Wjiew16NEL6PLtciX5aigQTkZ24X5cfWDP wqRhR6LN33LMEUpCW2WCykBVjUBtaSlp+L5uTyh1ji5JAOXSdAHXzmdJSS8cAUSRLR7A I1pw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=82v8k5WCytfnknqaYr9f7tqs0sfjvgXeF/7J0N8OftI=; b=hyAIee9rnS31UUodG13jTX0tgqTtd6+jNQLL8RpZolF+aFEMdCTMpZ/bGGst8p767m 0KqDJlmaMWJ8H5haj7KsVg4d5DoxZ+1y35/5+laZ3SALvABajxvI03PPCIKullygWQl9 poVeSTkA5NwAroeqwhcR9yIUu1uxc/oNG+dblMAF0FIYxhJSwGubIEZC9Ldv66vT8ZXQ ZZOUxLqd9U12iuqn1K/Dat2zj65LIbG9NMdjxJerPSWwAFnBRD9zB2X9Zd9x8Z4Ni/oV inAPOD3GLupdfaGi8x5n5I1HO5IqVFKApl59bHeICgS6JVLdGNhMvKotyxbEHyEdWiuj ZWkQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=SRNePBXJ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id p11si8360951ejo.734.2021.08.06.01.20.03; Fri, 06 Aug 2021 01:20:29 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=SRNePBXJ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231681AbhHFHyz (ORCPT + 99 others); Fri, 6 Aug 2021 03:54:55 -0400 Received: from us-smtp-delivery-124.mimecast.com ([216.205.24.124]:35886 "EHLO us-smtp-delivery-124.mimecast.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230364AbhHFHyz (ORCPT ); Fri, 6 Aug 2021 03:54:55 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1628236479; 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; bh=82v8k5WCytfnknqaYr9f7tqs0sfjvgXeF/7J0N8OftI=; b=SRNePBXJgZaW5XXaKV+tkqAOt3j2+UmwzrzheXSW+kzwYbpURY6/MQEyH0xDvSXD0ZqcN9 rYOXnSEvHCH1kynSq7oFaDcbqD/G7q2rqXNABEJqwvK2/eLuRKTKjiuKyLQL+VHVPMYcUA HB+logFPT4ssyRnk3aMSeqQW7t8GwiI= Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-445-rtPZvFOKPueb6w-bzLMvEA-1; Fri, 06 Aug 2021 03:54:38 -0400 X-MC-Unique: rtPZvFOKPueb6w-bzLMvEA-1 Received: from smtp.corp.redhat.com (int-mx08.intmail.prod.int.phx2.redhat.com [10.5.11.23]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 11144801AE7; Fri, 6 Aug 2021 07:54:37 +0000 (UTC) Received: from t480s.redhat.com (unknown [10.39.192.224]) by smtp.corp.redhat.com (Postfix) with ESMTP id BA87C19C44; Fri, 6 Aug 2021 07:54:31 +0000 (UTC) From: David Hildenbrand To: linux-kernel@vger.kernel.org Cc: David Hildenbrand , Heiko Carstens , Vasily Gorbik , Christian Borntraeger , linux-s390@vger.kernel.org Subject: [PATCH v1] s390/mm: remove unused cmma functions Date: Fri, 6 Aug 2021 09:54:30 +0200 Message-Id: <20210806075430.6103-1-david@redhat.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Scanned-By: MIMEDefang 2.84 on 10.5.11.23 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The last user of arch_set_page_states(), arch_set_page_nodat() and arch_test_page_nodat() was removed in commit 394216275c7d ("s390: remove broken hibernate / power management support"), let's remove these functions. Cc: Heiko Carstens Cc: Vasily Gorbik Cc: Christian Borntraeger Cc: linux-s390@vger.kernel.org Signed-off-by: David Hildenbrand --- arch/s390/include/asm/page.h | 3 --- arch/s390/mm/page-states.c | 43 ------------------------------------ 2 files changed, 46 deletions(-) diff --git a/arch/s390/include/asm/page.h b/arch/s390/include/asm/page.h index 3ba945c6b9dc..d98d17a36c7b 100644 --- a/arch/s390/include/asm/page.h +++ b/arch/s390/include/asm/page.h @@ -144,9 +144,6 @@ struct page; void arch_free_page(struct page *page, int order); void arch_alloc_page(struct page *page, int order); void arch_set_page_dat(struct page *page, int order); -void arch_set_page_nodat(struct page *page, int order); -int arch_test_page_nodat(struct page *page); -void arch_set_page_states(int make_stable); static inline int devmem_is_allowed(unsigned long pfn) { diff --git a/arch/s390/mm/page-states.c b/arch/s390/mm/page-states.c index 68b153083a92..18a6381097a9 100644 --- a/arch/s390/mm/page-states.c +++ b/arch/s390/mm/page-states.c @@ -228,46 +228,3 @@ void arch_set_page_dat(struct page *page, int order) return; set_page_stable_dat(page, order); } - -void arch_set_page_nodat(struct page *page, int order) -{ - if (cmma_flag < 2) - return; - set_page_stable_nodat(page, order); -} - -int arch_test_page_nodat(struct page *page) -{ - unsigned char state; - - if (cmma_flag < 2) - return 0; - state = get_page_state(page); - return !!(state & 0x20); -} - -void arch_set_page_states(int make_stable) -{ - unsigned long flags, order, t; - struct list_head *l; - struct page *page; - struct zone *zone; - - if (!cmma_flag) - return; - if (make_stable) - drain_local_pages(NULL); - for_each_populated_zone(zone) { - spin_lock_irqsave(&zone->lock, flags); - for_each_migratetype_order(order, t) { - list_for_each(l, &zone->free_area[order].free_list[t]) { - page = list_entry(l, struct page, lru); - if (make_stable) - set_page_stable_dat(page, order); - else - set_page_unused(page, order); - } - } - spin_unlock_irqrestore(&zone->lock, flags); - } -} base-commit: c500bee1c5b2f1d59b1081ac879d73268ab0ff17 -- 2.31.1