Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp4773791ybi; Mon, 15 Jul 2019 14:42:18 -0700 (PDT) X-Google-Smtp-Source: APXvYqwFXeJLOB9257juUFM9H3hdszpzpdLxTKc5E7RmwWo7R9mCPZJrX+xvIygGwCR7Q7qxvIf5 X-Received: by 2002:a17:902:b713:: with SMTP id d19mr30952877pls.267.1563226938541; Mon, 15 Jul 2019 14:42:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1563226938; cv=none; d=google.com; s=arc-20160816; b=Zz+rZ6XTYfrBboex1drcYqR5uhMdUPrnphL51XbfcmhaGmPijjXc21ejtAzqrHiEgm cMUWuGgnWqZOkyDkuH7tMFfxR9dwTN8w1lBI0iljCZ85Xo5FmLA1Eg0AWvAtPYM2HR8x RJL/9rwJAK7mQTUnKOVw5Rq0fVtIB861fQUhnUATKYRVOhrs9gz1WpzaN4FL/TPn3+KN 7++XK1s0ICsBXC0p5IztGNo2oytRlyxXzVZT8U0GoQeO2/Cyd2GWrxps3IgHndGGau+A RjXRiufKs2gaYpXZkdYLQ/LzxCu8B14pB9XlH1yMM3rGb6CmJ/CA2Won40M8Fn2JqFEG BIEg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=G7pXdTM0nJCK/U/d3udYCjSZFiGilJhkAIvapaAu+bs=; b=bcS+pYOrpeMuJl/KJW+mHC+Kz9fdHfDPSH96/H91YGHg6HFbNIVVFSrQJqmrJLUamz 44ow1YdwGbeeVKuxvfHRoxWDhFqJKkszLPd6+bFIqn8LvHOIF4tdhmlXd2Ik690DhjWF Ewiwr7JPhRzC2EXyQDG8MHuaKWrR/7Zw4SbYau/z9XgBtV2gW1Perk21sNdNK1ppf74n CI96OneJutKPKdfZP/GQ2/SyFTfJQQ++gP14Qr9IKwkYH+mO+b+Naqihk3ZmTMq8GKjF kLf4+coHYXsdRJTXwzYPR4RqI7xWLbqjsgOhMNlS1N4HXTY+7ZYYFL+fa97s9Q8jgYjI KVCw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@crapouillou.net header.s=mail header.b=tYArbzcU; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=crapouillou.net Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id b5si18003078pfd.273.2019.07.15.14.42.02; Mon, 15 Jul 2019 14:42:18 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=fail header.i=@crapouillou.net header.s=mail header.b=tYArbzcU; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=crapouillou.net Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1732761AbfGOVkn (ORCPT + 99 others); Mon, 15 Jul 2019 17:40:43 -0400 Received: from outils.crapouillou.net ([89.234.176.41]:34620 "EHLO crapouillou.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1732540AbfGOVkn (ORCPT ); Mon, 15 Jul 2019 17:40:43 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=crapouillou.net; s=mail; t=1563226825; 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; bh=G7pXdTM0nJCK/U/d3udYCjSZFiGilJhkAIvapaAu+bs=; b=tYArbzcU+BsZbqywzOdgYshQPlxVtkL2u25SFcTo/S5Z/Un0vijf02p1jIKL/kBxXdaNsx Nr/lZXl5AsxOAPT3tdPFHuLtxbgDZ2LLXYtn4wCr6/dF7gTO2tX+2fXsc6sYiEsF4ToI79 0cCS9s1dBiKdlBJv9YrLPLB3xXKkGpk= From: Paul Cercueil To: Ralf Baechle , Paul Burton , James Hogan Cc: od@zcrc.me, linux-mips@vger.kernel.org, linux-kernel@vger.kernel.org, Daniel Silsby , Paul Cercueil Subject: [PATCH 5/5] MIPS: Undefine PMD_ORDER for 32-bit builds Date: Mon, 15 Jul 2019 17:40:03 -0400 Message-Id: <20190715214003.9714-5-paul@crapouillou.net> In-Reply-To: <20190715214003.9714-1-paul@crapouillou.net> References: <20190715214003.9714-1-paul@crapouillou.net> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Daniel Silsby During an update long ago to conform to 4-level page code, PMD_ORDER was changed from 0 to 1, despite the fact that a PMD table is not used at all in a 32-bit MIPS build. PMD_ORDER does not seem to be used in these builds. Now, it matches PUD_ORDER, a nonsense #define to give a build failure with informative error. The older commit that had redefined PMD_ORDER was commit c6e8b587718c ("Update MIPS to use the 4-level pagetable code thereby getting rid of the compacrapability headers.") Signed-off-by: Daniel Silsby Signed-off-by: Paul Cercueil --- arch/mips/include/asm/pgtable-32.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/mips/include/asm/pgtable-32.h b/arch/mips/include/asm/pgtable-32.h index b0a78c9b6434..e600570789f4 100644 --- a/arch/mips/include/asm/pgtable-32.h +++ b/arch/mips/include/asm/pgtable-32.h @@ -83,7 +83,7 @@ extern int add_temporary_entry(unsigned long entrylo0, unsigned long entrylo1, #define PGD_ORDER (__PGD_ORDER >= 0 ? __PGD_ORDER : 0) #define PUD_ORDER aieeee_attempt_to_allocate_pud -#define PMD_ORDER 1 +#define PMD_ORDER aieeee_attempt_to_allocate_pmd #define PTE_ORDER 0 #define PTRS_PER_PGD (USER_PTRS_PER_PGD * 2) -- 2.21.0.593.g511ec345e18