From patchwork Wed Mar 24 23:28:25 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Nicholas Piggin X-Patchwork-Id: 12162557 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-13.5 required=3.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED,DKIM_INVALID,DKIM_SIGNED,FREEMAIL_FORGED_FROMDOMAIN, FREEMAIL_FROM,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER, INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id A4D88C433C1 for ; Wed, 24 Mar 2021 23:28:40 +0000 (UTC) Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.kernel.org (Postfix) with ESMTP id 0BB6161A16 for ; Wed, 24 Mar 2021 23:28:40 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 0BB6161A16 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=owner-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix) id 89F026B0036; Wed, 24 Mar 2021 19:28:39 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 84F076B006C; Wed, 24 Mar 2021 19:28:39 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 6EFF66B006E; Wed, 24 Mar 2021 19:28:39 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0056.hostedemail.com [216.40.44.56]) by kanga.kvack.org (Postfix) with ESMTP id 52B396B0036 for ; Wed, 24 Mar 2021 19:28:39 -0400 (EDT) Received: from smtpin36.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay05.hostedemail.com (Postfix) with ESMTP id 0D01D18097A49 for ; Wed, 24 Mar 2021 23:28:39 +0000 (UTC) X-FDA: 77956359558.36.513E0BD Received: from mail-pg1-f171.google.com (mail-pg1-f171.google.com [209.85.215.171]) by imf13.hostedemail.com (Postfix) with ESMTP id 1AF7AE0001B4 for ; Wed, 24 Mar 2021 23:28:37 +0000 (UTC) Received: by mail-pg1-f171.google.com with SMTP id l1so15865290pgb.5 for ; Wed, 24 Mar 2021 16:28:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=zMPjWd70KFrFjfBSIIPdDbtPfSy+a6K9fF4onrnkDLI=; b=Y3vMo6uIFgxM6sdit3Y48ZcwGsY0oUVwDnjkImrirSGAiBHwxO2pRYPkOgAiSCIIHk PHeuPo/MA63wo3rPPTNvxJh3p867PIXzlNgO5rjTDnULgIjSHJ3z4ZxzB9U+3PhrdSDS HDVOxqZPPK/Habrw6Js6l7sTcttLC0fmev4OFMiP8EHWdWGALqqUpXtXEtgaVUbFW7MZ wMpGVDOs/QFBHqFMzFqhHJW80aq8YqMhIQKUqUkuonOj9WbYVeV/dt0DfFRL/G0PRbXa 51f4T8WS43UlsJBeIJ/SJwDrr5jl/6S4Yx3nQ5O/bW2EPD02SnTZj4dnf5QlZ/+pvtS7 NV0A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=zMPjWd70KFrFjfBSIIPdDbtPfSy+a6K9fF4onrnkDLI=; b=j9jhrMC/9iKjnUIYu4PxoweEJjRvolUBUFu0RBHXyva/9JpAjUI/CxEbd2n3H6jPLr 4HWXEeyKnNNP6YXt2A8xJzaGwAFrQvlh9Cb4c3AYaQrurBx1ji3OwXiCAf5WUCJATnlI PQ3YQjRQdxsHCidkAW24erAgmNyIdxr2Q5RjNJPhb6qcI65gaM3LP4rbkXzJ/1UxWUmK MfpBuWjKcEZwMbRgpkbMfV5+QW2iUtKhCHP+/VGGyhEzOs8nKwT0sZt1R80VFtqnbZZQ Pd78gUqkvAyuM+EzJVm8VWJdfdSVOy7rgSbaw7oitKcbSqQwT06sAdXOXF/KASERx/dL fJwA== X-Gm-Message-State: AOAM531K3kt55TD2sQqf020e/ybFTP7xElcoDAjakDN2fnXhTNYvYPCz dLY2EzPXUVjAsW2aAlT2UPs= X-Google-Smtp-Source: ABdhPJyHdrEywyxkXSbrenUecLuYOoW1JE5yG8XhBwrAeuo5l3eE6M3sJCc9TuWU+sc1HXHTYNagcA== X-Received: by 2002:a62:3646:0:b029:205:2117:f339 with SMTP id d67-20020a6236460000b02902052117f339mr5242606pfa.32.1616628517581; Wed, 24 Mar 2021 16:28:37 -0700 (PDT) Received: from bobo.ibm.com ([1.132.133.45]) by smtp.gmail.com with ESMTPSA id u22sm3333292pgh.20.2021.03.24.16.28.34 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 24 Mar 2021 16:28:37 -0700 (PDT) From: Nicholas Piggin To: Andrew Morton Cc: Nicholas Piggin , "David S. Miller" , sparclinux@vger.kernel.org, linux-mm@kvack.org, Stephen Rothwell Subject: [PATCH] sparc32: add stub pud_page define for walking huge vmalloc page tables Date: Thu, 25 Mar 2021 09:28:25 +1000 Message-Id: <20210324232825.1157363-1-npiggin@gmail.com> X-Mailer: git-send-email 2.23.0 MIME-Version: 1.0 X-Stat-Signature: uwbnqxeqoekcysgab39ji6w67kwr5zd6 X-Rspamd-Server: rspam02 X-Rspamd-Queue-Id: 1AF7AE0001B4 Received-SPF: none (gmail.com>: No applicable sender policy available) receiver=imf13; identity=mailfrom; envelope-from=""; helo=mail-pg1-f171.google.com; client-ip=209.85.215.171 X-HE-DKIM-Result: pass/pass X-HE-Tag: 1616628517-706863 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: Similarly to the stub p4d_page in sparc64, add a stub pud_page, this is needed for hugepages in the vmap page tables to be walked without ifdefs, which should be no functional change for sparc32. Signed-off-by: Nicholas Piggin Acked-by: David S. Miller --- This should go in Andrew's mm tree which has a compile error on sparc32 introduced by the huge vmalloc pages, noticed by Stephen. Thanks, Nick arch/sparc/include/asm/pgtable_32.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/arch/sparc/include/asm/pgtable_32.h b/arch/sparc/include/asm/pgtable_32.h index 632cdb959542..a5cf79c149fe 100644 --- a/arch/sparc/include/asm/pgtable_32.h +++ b/arch/sparc/include/asm/pgtable_32.h @@ -321,6 +321,9 @@ static inline pte_t pte_modify(pte_t pte, pgprot_t newprot) pgprot_val(newprot)); } +/* only used by the huge vmap code, should never be called */ +#define pud_page(pud) NULL + struct seq_file; void mmu_info(struct seq_file *m);