Received: by 2002:a25:e74b:0:0:0:0:0 with SMTP id e72csp1976180ybh; Fri, 24 Jul 2020 00:58:23 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxcGSdSeAU9YF6zt+SsIVzfa1c3yZSN+bSjq4pRNha2IxRKL//gYxYPdT5XQ/69tnNFzEJq X-Received: by 2002:aa7:d283:: with SMTP id w3mr7842032edq.76.1595577503407; Fri, 24 Jul 2020 00:58:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1595577503; cv=none; d=google.com; s=arc-20160816; b=zGpnooFNzSOX/9ZyRu5OPB1ByQaYVF6e4fG0xRxuWNwE/2SPuwDhcHJ93ZR6bb8ioQ az/jbx0DoCZTrsHbGvdNn0C1TPZXaQQ4WeKNT7dfvjcEvyrGXduHsEruXu6CJwtf1nD3 kpQtSdFYT/hXSMIpyGUfysnxPXiUBE604lbYTe21R50WY3EgZmXYzaAnASv5XrOSfVvy GwbjlM3RVYjOFEbLaTLWs0fXkQXr6n7mOltGcixqERi3FTXq804KR6rzaG3b51DyEpcK FmaIDphRgLcJBBi2a3YwJZt4DGsxm12OBVhi24Zb3QNyJnMg4drDLKOM6GdI/ydil3wC EdPw== 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 :robot-unsubscribe:robot-id:message-id:mime-version:references :in-reply-to:cc:subject:to:reply-to:from:dkim-signature :dkim-signature:date; bh=4SIg3/SYrGlu5FpEqesZYPYgojA1f2D2OGjki95TLKw=; b=imc2pBCE1mN4duPbU0aX8t2g/9VEPRiw9Ms267VxI/91HT3m6s09L2NjIn0s35qnU8 bJWhuKLphhkxwFrwxrAin1N6B4IcLLsxj9rX/DnNk0U35LJlkw8cbLUcEuxsNWQFAaiz zWspXz/+EJE7lNJXArg6RbWT9VqNDLltXLpPFtoXneV60IiiNrabgne1w8aL54Qpr/Fo Q4KQB6kPVVNDNwz/KhoR/WZlh3f+1RAL2MRRnkaT1g5Yu83Z+yk4Y1hIkDvaTY3nZzmX Pwayr9DTQrwn+t3pBRLIH/UIraDLop0Lu6Yxl+JN5P5oxvgDZcTgZHx+tmBNu/u8DGEc kv2A== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linutronix.de header.s=2020 header.b=va7aB1yx; dkim=neutral (no key) header.i=@vger.kernel.org header.s=2020e; 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=fail (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id do14si174152ejc.39.2020.07.24.00.57.57; Fri, 24 Jul 2020 00:58:23 -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=fail header.i=@linutronix.de header.s=2020 header.b=va7aB1yx; dkim=neutral (no key) header.i=@vger.kernel.org header.s=2020e; 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=fail (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726703AbgGXH45 (ORCPT + 99 others); Fri, 24 Jul 2020 03:56:57 -0400 Received: from Galois.linutronix.de ([193.142.43.55]:36184 "EHLO galois.linutronix.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726543AbgGXH44 (ORCPT ); Fri, 24 Jul 2020 03:56:56 -0400 Date: Fri, 24 Jul 2020 07:56:53 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1595577414; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=4SIg3/SYrGlu5FpEqesZYPYgojA1f2D2OGjki95TLKw=; b=va7aB1yxMW15tsDKQFVecBf70B/wUHAsP+1T0NCD1gggE9heF10Jz0DdrWFYoCGsggfMiP CWKyP5bi6QM9UC4KGjZBCjYZkHIJkyp10TRfaaxqM0IiTIQmJZhEaavNpov95fugt7nj9o zOZX3i7ujeiLuEU2RDrsxtXgpW/+AaX7xuktED1mMESE81/DYJVl4oAw30+0Na8fwt3EUy YW7tVTmpt2to3deF9qT/wcNgCcatqO0059/esUV5L0O1dYDqDumcaNHIg5mOnM6wII7Zwm t6wMYtfU37D1lvfN8B1P3bNXA/tE106jBcT4RY6sn9sKi36oUzRe7RgfmEautQ== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1595577414; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=4SIg3/SYrGlu5FpEqesZYPYgojA1f2D2OGjki95TLKw=; b=Ozkt+gD15AL70cyR2PLbBgSKsCV8kROc+oaslZGEg5eDL7GgMahfq50nrwtyUlLUOxapla cbxC35rvKHLzJ6AQ== From: "tip-bot2 for Arvind Sankar" Reply-to: linux-kernel@vger.kernel.org To: linux-tip-commits@vger.kernel.org Subject: [tip: x86/cleanups] x86/mm: Drop unused MAX_PHYSADDR_BITS Cc: Arvind Sankar , Thomas Gleixner , x86 , LKML In-Reply-To: <20200723231544.17274-2-nivedita@alum.mit.edu> References: <20200723231544.17274-2-nivedita@alum.mit.edu> MIME-Version: 1.0 Message-ID: <159557741311.4006.10642517822235710788.tip-bot2@tip-bot2> Robot-ID: Robot-Unsubscribe: Contact to get blacklisted from these emails Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The following commit has been merged into the x86/cleanups branch of tip: Commit-ID: 0a787b28b7a375ad9d5c77bc3922ae1a8305239e Gitweb: https://git.kernel.org/tip/0a787b28b7a375ad9d5c77bc3922ae1a8305239e Author: Arvind Sankar AuthorDate: Thu, 23 Jul 2020 19:15:42 -04:00 Committer: Thomas Gleixner CommitterDate: Fri, 24 Jul 2020 09:53:06 +02:00 x86/mm: Drop unused MAX_PHYSADDR_BITS The macro is not used anywhere, and has an incorrect value (going by the comment) on x86_64 since commit c898faf91b3e ("x86: 46 bit physical address support on 64 bits") To avoid confusion, just remove the definition. Signed-off-by: Arvind Sankar Signed-off-by: Thomas Gleixner Link: https://lkml.kernel.org/r/20200723231544.17274-2-nivedita@alum.mit.edu --- arch/x86/include/asm/sparsemem.h | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/arch/x86/include/asm/sparsemem.h b/arch/x86/include/asm/sparsemem.h index 1992187..6bfc878 100644 --- a/arch/x86/include/asm/sparsemem.h +++ b/arch/x86/include/asm/sparsemem.h @@ -10,24 +10,20 @@ * field of the struct page * * SECTION_SIZE_BITS 2^n: size of each section - * MAX_PHYSADDR_BITS 2^n: max size of physical address space - * MAX_PHYSMEM_BITS 2^n: how much memory we can have in that space + * MAX_PHYSMEM_BITS 2^n: max size of physical address space * */ #ifdef CONFIG_X86_32 # ifdef CONFIG_X86_PAE # define SECTION_SIZE_BITS 29 -# define MAX_PHYSADDR_BITS 36 # define MAX_PHYSMEM_BITS 36 # else # define SECTION_SIZE_BITS 26 -# define MAX_PHYSADDR_BITS 32 # define MAX_PHYSMEM_BITS 32 # endif #else /* CONFIG_X86_32 */ # define SECTION_SIZE_BITS 27 /* matt - 128 is convenient right now */ -# define MAX_PHYSADDR_BITS (pgtable_l5_enabled() ? 52 : 44) # define MAX_PHYSMEM_BITS (pgtable_l5_enabled() ? 52 : 46) #endif