Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp529268imm; Fri, 28 Sep 2018 02:34:12 -0700 (PDT) X-Google-Smtp-Source: ACcGV60MyuZ3j6opr90wv6R6hkcoKVgLJK4uMrcFkmpqBNWzP8NhCanPy8lplQ7Iusd6SUGRSzy1 X-Received: by 2002:a65:65c6:: with SMTP id y6-v6mr13921323pgv.233.1538127251997; Fri, 28 Sep 2018 02:34:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1538127251; cv=none; d=google.com; s=arc-20160816; b=OSfCTBPn2JlohdLv9h/F+69Mbce1K59D1+o38jtYeIqZ6IFDWaqOPviOk2Uu1dj+Jq qzquU5A3Nw473SfylaQF3Ce5PvlY51YNBrTb4sBaSX4OKEfZgLcFMHhB+QJnSGddjz5U AwkOqOe6OfO3js3hZT+uVMiyC+bK57cg3R3O9wMSlWH2hmBDnfitDh5mJm0KueX9uMo1 0xg1tCpcKY+QfdqDXOvbpy9P7pTxf5Wb47HXi0AIJW9fzYcPHw8FCREvn2p23XHahb8j eWJOAkNDkS/QA+ePU12Vk/VXjhplban7nntqU4XvdjZ9mPIfwol/0qXg07kVjl7d5Oj3 hHiQ== 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 :message-id:date:subject:cc:to:from; bh=p9GpAqQuwGtWsiYVooUtmEoSDltog7s/g3uyYr/G02I=; b=cdCwlsN6zEzhGK2TW2UNEp7YKZDTtr1ndfp3uxFumibPE7DzGQ3hmbsYfuK8aOErJN 2RIMhpPPFPSeFaZ/C1Fv47u2ZvxkqRJyS1GSRmQshkTgajTF93IRL/w4pjrllM2fhoHE 9GHbwjxxtD6lbSW6jXSOZ8dcD0NOXMC8Z+ysZWCS5u/ejMq2W7/ALxUROVEcISch++ZV YZQPfZ6bqucGRqIyRu7nxZUgfWH6C/shS75A/Z/6Hg6620HXh32i/uEx8IdrpoL0ZCPo Z6+eB4aCORszSueZua3j8fYmCJjgFT9gLRenVLcWjqcpNV69KfuBUU60mAT6gm+3rJGb HmBw== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id j7-v6si4469215pfk.203.2018.09.28.02.33.56; Fri, 28 Sep 2018 02:34:11 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729206AbeI1PzC (ORCPT + 99 others); Fri, 28 Sep 2018 11:55:02 -0400 Received: from mail.bootlin.com ([62.4.15.54]:49139 "EHLO mail.bootlin.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729008AbeI1PzB (ORCPT ); Fri, 28 Sep 2018 11:55:01 -0400 Received: by mail.bootlin.com (Postfix, from userid 110) id 4C25D20703; Fri, 28 Sep 2018 11:32:07 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on mail.bootlin.com X-Spam-Level: X-Spam-Status: No, score=-1.0 required=5.0 tests=ALL_TRUSTED,SHORTCIRCUIT shortcircuit=ham autolearn=disabled version=3.4.0 Received: from localhost (242.171.71.37.rev.sfr.net [37.71.171.242]) by mail.bootlin.com (Postfix) with ESMTPSA id 24404206D0; Fri, 28 Sep 2018 11:32:07 +0200 (CEST) From: Alexandre Belloni To: Paul Burton Cc: James Hogan , Ralf Baechle , Arnd Bergmann , linux-mips@linux-mips.org, linux-kernel@vger.kernel.org, Alexandre Belloni Subject: [PATCH] MIPS: stop using _PTRS_PER_PGD Date: Fri, 28 Sep 2018 11:32:02 +0200 Message-Id: <20180928093202.15426-1-alexandre.belloni@bootlin.com> X-Mailer: git-send-email 2.19.0 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 gcc 3.3 has been retired for a while, use PTRS_PER_PGD and remove the asm-offsets.h inclusion. Signed-off-by: Alexandre Belloni --- arch/mips/mm/init.c | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/arch/mips/mm/init.c b/arch/mips/mm/init.c index 400676ce03f4..15cae0f11880 100644 --- a/arch/mips/mm/init.c +++ b/arch/mips/mm/init.c @@ -32,7 +32,6 @@ #include #include -#include #include #include #include @@ -521,17 +520,13 @@ unsigned long pgd_current[NR_CPUS]; #endif /* - * gcc 3.3 and older have trouble determining that PTRS_PER_PGD and PGD_ORDER - * are constants. So we use the variants from asm-offset.h until that gcc - * will officially be retired. - * * Align swapper_pg_dir in to 64K, allows its address to be loaded * with a single LUI instruction in the TLB handlers. If we used * __aligned(64K), its size would get rounded up to the alignment * size, and waste space. So we place it in its own section and align * it in the linker script. */ -pgd_t swapper_pg_dir[_PTRS_PER_PGD] __section(.bss..swapper_pg_dir); +pgd_t swapper_pg_dir[PTRS_PER_PGD] __section(.bss..swapper_pg_dir); #ifndef __PAGETABLE_PUD_FOLDED pud_t invalid_pud_table[PTRS_PER_PUD] __page_aligned_bss; #endif -- 2.19.0