From patchwork Fri Jan 13 17:10:09 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: David Hildenbrand X-Patchwork-Id: 13101202 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 4E760C54EBD for ; Fri, 13 Jan 2023 17:11:59 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id D84DC900008; Fri, 13 Jan 2023 12:11:58 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id D0E35900004; Fri, 13 Jan 2023 12:11:58 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id BAED5900008; Fri, 13 Jan 2023 12:11:58 -0500 (EST) 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 A9C09900004 for ; Fri, 13 Jan 2023 12:11:58 -0500 (EST) Received: from smtpin15.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay03.hostedemail.com (Postfix) with ESMTP id 5951BA062F for ; Fri, 13 Jan 2023 17:11:58 +0000 (UTC) X-FDA: 80350418316.15.4AF72F1 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by imf06.hostedemail.com (Postfix) with ESMTP id B568B18001F for ; Fri, 13 Jan 2023 17:11:56 +0000 (UTC) Authentication-Results: imf06.hostedemail.com; dkim=pass header.d=redhat.com header.s=mimecast20190719 header.b=Goioif5M; spf=pass (imf06.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=1673629916; 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=PrJuijetzKzX9KpzIdAxk/Koal6C2qJYp3mLQ4v5lnk=; b=JcnR2IA2gNLLDsTw3sQVP3JBMS8pXcSS+b29uJDBNDr1nm4E/AObW/LwcdCEqp1XBj93sb 5XwEdoZv3wHDWmq25iOpiA3LtYlNmkz1Q4A1+kOrkoQ59RZh0/dFA1tCGI1QRnpOHBsxkb 64anF2hUBXn2cEenY0/ch0TuTI7UWeA= ARC-Authentication-Results: i=1; imf06.hostedemail.com; dkim=pass header.d=redhat.com header.s=mimecast20190719 header.b=Goioif5M; spf=pass (imf06.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=1673629916; a=rsa-sha256; cv=none; b=AAZmnnH9CVBJ4uGPKRbxsGIUjvXjXPiR3GrF/yeELyvXud8kGtY2UnF6wqnCgZuUmaJmYk f9krsGTuxonOkWNBkRW89rfo9jQQaSZ6CAvjpkPiNl4BnqnQlSVdOBaQMV6oujSdHbRUyN ghsEJv3ypk0PiXOL2x/9n0yuOHxfFA8= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1673629916; 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=PrJuijetzKzX9KpzIdAxk/Koal6C2qJYp3mLQ4v5lnk=; b=Goioif5MC4/v94WD0YpFrVlY19XvP4eNdcMj77K3jBw5ZPKHZ2gBIcVJ2oWC7WSJPmlx4c IUOu3ENEtOSMSyjHsSw54JLCojyqGBF5GIr40Bon69paA/1Rlbn9HyCcOQ38v9n97OCkO4 GfXqd43khAhNH5+g72OrwPI1hLrP3Ic= Received: from mimecast-mx02.redhat.com (mimecast-mx02.redhat.com [66.187.233.88]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-634-fV_i2j1xMOCJnkfjQ_cdLg-1; Fri, 13 Jan 2023 12:11:51 -0500 X-MC-Unique: fV_i2j1xMOCJnkfjQ_cdLg-1 Received: from smtp.corp.redhat.com (int-mx01.intmail.prod.int.rdu2.redhat.com [10.11.54.1]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 6276D1869B60; Fri, 13 Jan 2023 17:11:50 +0000 (UTC) Received: from t480s.fritz.box (unknown [10.39.193.196]) by smtp.corp.redhat.com (Postfix) with ESMTP id 7AB6A40C2064; Fri, 13 Jan 2023 17:11:42 +0000 (UTC) From: David Hildenbrand To: linux-kernel@vger.kernel.org Cc: Andrew Morton , Hugh Dickins , John Hubbard , Jason Gunthorpe , Mike Rapoport , Yang Shi , Vlastimil Babka , Nadav Amit , Andrea Arcangeli , Peter Xu , linux-mm@kvack.org, x86@kernel.org, linux-alpha@vger.kernel.org, linux-snps-arc@lists.infradead.org, linux-arm-kernel@lists.infradead.org, linux-csky@vger.kernel.org, linux-hexagon@vger.kernel.org, linux-ia64@vger.kernel.org, loongarch@lists.linux.dev, linux-m68k@lists.linux-m68k.org, linux-mips@vger.kernel.org, openrisc@lists.librecores.org, linux-parisc@vger.kernel.org, linuxppc-dev@lists.ozlabs.org, linux-riscv@lists.infradead.org, linux-s390@vger.kernel.org, linux-sh@vger.kernel.org, sparclinux@vger.kernel.org, linux-um@lists.infradead.org, linux-xtensa@linux-xtensa.org, David Hildenbrand , Geert Uytterhoeven , Greg Ungerer Subject: [PATCH mm-unstable v1 09/26] m68k/mm: remove dummy __swp definitions for nommu Date: Fri, 13 Jan 2023 18:10:09 +0100 Message-Id: <20230113171026.582290-10-david@redhat.com> In-Reply-To: <20230113171026.582290-1-david@redhat.com> References: <20230113171026.582290-1-david@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 3.1 on 10.11.54.1 X-Stat-Signature: ajuqpm7n31e4bmcafuwgyrzjez36eg6o X-Rspam-User: X-Rspamd-Queue-Id: B568B18001F X-Rspamd-Server: rspam06 X-HE-Tag: 1673629916-891480 X-HE-Meta: U2FsdGVkX18hZZ21o8FxJ74+W5s6Ke0VVMbMLgIVNFKzKHlH7XDVfsAenxfCm3ef2av3gEpAeT80bZDFQ9iAb1bP3MkBmyE5BCEfJvLv64S+bGan8JYcCzssin20ZitTKpXbNll39zAb42/ZemqRANQ0boDpdbP0+a0VYaGciuR12JZ3gJHVjVGQ570WXlgjzl2e1JCduXAL7R3F6xE7w+FBfoqWbumzm5YTvV4lCbCepIAiRzVKyLsGBQQpU+3DeHcEWLZLQ8LZHg3LOxQs3gPBStFoDA2atEH+eQP9XwV8v7TPelJ9bpT1K/j1DuXFAB+/9AkceVi64wcNqZd+gKuQRjNOHKWWc1e/dzogqUebyY0I0O15srzcBxJkGZ5L5kOlDSZbBZUHKKKTiX/RtFKyN9lb1gIuDpqX8ScrvYGuSBkHzn1AdLdPajUaZ/6pEbWfmYu3hnsWy97txPTpyqjvFH162XQI5L+ggkN4kmjmjLpLD4n+BcB5KbqqeLH+DVL1r7+EfgDB7IV9yahzSz7f4e9ufyF5rVzlbqEPkdbUbQPSMtk+Ne6G4Zc0QwjhU0yDRp7OiDnbp8X/qQjizvYtLhBac8yyB5GfwVNW8vBRvwMv8vKr/5F7hv/pT02TiLMzPpRYMhG9amuTLXwTEmZA0QjHHEaFB4vytbO2ws9gh4+VaHKzqtyli/dLA10Rch1IE48kcwKLmx82h2Zv5UYPqMabPWklwYB9WGYQWAYvjzAJm/wHXo7EZGRB/9idd0XRaFrk2IJ8ulpVs7JnxMShJld7OsuYdIaG4M9bk1pFjZCBUqCGzU9APP1QvAY7WaJDR2R+M3jdeIrgIcAwJN4B9+P+Te9GUvEMlwjbAWR8dOq3sVthSeq0MscjhEGNz2gSNLMuHKVmPUDXxwdAl56jYMtrL0raX4BJ3yXKZ3ndqhRLZgctTYITQYUxOdTFLYkwmj3dM/jJhv7+uXG 7iAcSNgM F8nWKD7bIggvzl9TAEdI6jZqkSsoRpVwZ0yZG 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: The definitions are not required, let's remove them. Cc: Geert Uytterhoeven Cc: Greg Ungerer Signed-off-by: David Hildenbrand --- arch/m68k/include/asm/pgtable_no.h | 6 ------ 1 file changed, 6 deletions(-) diff --git a/arch/m68k/include/asm/pgtable_no.h b/arch/m68k/include/asm/pgtable_no.h index fed58da3a6b6..fc044df52b96 100644 --- a/arch/m68k/include/asm/pgtable_no.h +++ b/arch/m68k/include/asm/pgtable_no.h @@ -31,12 +31,6 @@ extern void paging_init(void); #define swapper_pg_dir ((pgd_t *) 0) -#define __swp_type(x) (0) -#define __swp_offset(x) (0) -#define __swp_entry(typ,off) ((swp_entry_t) { ((typ) | ((off) << 7)) }) -#define __pte_to_swp_entry(pte) ((swp_entry_t) { pte_val(pte) }) -#define __swp_entry_to_pte(x) ((pte_t) { (x).val }) - /* * ZERO_PAGE is a global shared page that is always zero: used * for zero-mapped memory areas etc..