From patchwork Thu Jul 23 23:15:42 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arvind Sankar X-Patchwork-Id: 11681807 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 1A0C76C1 for ; Thu, 23 Jul 2020 23:16:06 +0000 (UTC) Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.kernel.org (Postfix) with ESMTP id E3FFE2071A for ; Thu, 23 Jul 2020 23:16:05 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org E3FFE2071A Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=alum.mit.edu Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=owner-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix) id 39C4D8D000B; Thu, 23 Jul 2020 19:16:05 -0400 (EDT) Delivered-To: linux-mm-outgoing@kvack.org Received: by kanga.kvack.org (Postfix, from userid 40) id 34DFC8D0003; Thu, 23 Jul 2020 19:16:05 -0400 (EDT) X-Original-To: int-list-linux-mm@kvack.org X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 23CDB8D000B; Thu, 23 Jul 2020 19:16:05 -0400 (EDT) X-Original-To: linux-mm@kvack.org X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0229.hostedemail.com [216.40.44.229]) by kanga.kvack.org (Postfix) with ESMTP id 09D1A8D0003 for ; Thu, 23 Jul 2020 19:16:05 -0400 (EDT) Received: from smtpin04.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay05.hostedemail.com (Postfix) with ESMTP id C08EE181AF5F7 for ; Thu, 23 Jul 2020 23:16:04 +0000 (UTC) X-FDA: 77070900648.04.party25_1a09ecf26f42 Received: from filter.hostedemail.com (10.5.16.251.rfc1918.com [10.5.16.251]) by smtpin04.hostedemail.com (Postfix) with ESMTP id 26A6C800343E for ; Thu, 23 Jul 2020 23:15:49 +0000 (UTC) X-Spam-Summary: 1,0,0,61372b573d302dcb,d41d8cd98f00b204,niveditas98@gmail.com,,RULES_HIT:41:355:379:541:800:960:968:973:988:989:1260:1311:1314:1345:1359:1437:1515:1534:1541:1711:1730:1747:1777:1792:2393:2559:2562:2840:3138:3139:3140:3141:3142:3352:3865:3866:3867:3868:3870:3871:3874:4321:5007:6261:7903:8603:10004:11026:11473:11657:11658:11914:12043:12048:12297:12517:12519:12533:12555:12895:12986:13069:13138:13161:13229:13231:13311:13357:13894:14093:14096:14181:14384:14394:14721:21080:21444:21451:21627:21990:30003:30054,0,RBL:209.85.222.196:@gmail.com:.lbl8.mailshell.net-62.18.0.100 66.100.201.100;04y8gn1sxroes9agzdair6npeaomeopt9ssqdsnz38tcpza7u31hzbqpqjzikub.hg1hsjdrjmxrzidhth7znbrztdzqg6nnsgapiuzzqgueeb1q99f1xdnuu8zfy5t.n-lbl8.mailshell.net-223.238.255.100,CacheIP:none,Bayesian:0.5,0.5,0.5,Netcheck:none,DomainCache:0,MSF:not bulk,SPF:fp,MSBL:0,DNSBL:neutral,Custom_rules:0:0:0,LFtime:24,LUA_SUMMARY:none X-HE-Tag: party25_1a09ecf26f42 X-Filterd-Recvd-Size: 3944 Received: from mail-qk1-f196.google.com (mail-qk1-f196.google.com [209.85.222.196]) by imf24.hostedemail.com (Postfix) with ESMTP for ; Thu, 23 Jul 2020 23:15:48 +0000 (UTC) Received: by mail-qk1-f196.google.com with SMTP id d14so7048474qke.13 for ; Thu, 23 Jul 2020 16:15:48 -0700 (PDT) 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:in-reply-to :references:mime-version:content-transfer-encoding; bh=x8IZbd4Fczf92kh5M3HwuHrI1z58wZWyf5U7NUnPhRY=; b=tB18Ag4n6R5TUMlXZYfo37jVeYFJ7hojbsIaFp2i+6vAzT6RPCwsiSsyPvNy004vAu kxmJ6qC/nre41OtVlFUqmF747ODQMqyuEjNJN1UMrrpmWC5C17ngDXcbeoAyS+VqDp4T C9vM1dOOHQqeLkbaoiw2uVkGlUbyJQrgmchMM/Y5FO1MItQAaEBYJTh/drjjwFG0MweF TLttaNVMCsJhocMG/PDl8e5UD/D6jYsYFQpDHeCmPkiKfwKEKC2hoaveQ2zhDYHWnfKz bkAZgHSta4P9x50abhNiOaRNXa8cF0uHroWjROwVfVDcRYEx/FASirLnufeI/U9WnIdA xCsA== X-Gm-Message-State: AOAM530yt77ExU/j5Y1KAYe/KDvbL+WdY3ox+gaE9JfU2HXaf6h15bGB Wdgaq+NVBr/pT+vSZl681QY= X-Google-Smtp-Source: ABdhPJwvgEjMKThPAs1a84yJgSsd+Py7vrCBvLV00/GpEFdmmEqp1wOoieVANE+LZeo7pqmMyDOwhQ== X-Received: by 2002:a37:7dc3:: with SMTP id y186mr6797518qkc.160.1595546147786; Thu, 23 Jul 2020 16:15:47 -0700 (PDT) Received: from rani.riverdale.lan ([2001:470:1f07:5f3::b55f]) by smtp.gmail.com with ESMTPSA id u58sm4196610qth.77.2020.07.23.16.15.46 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 23 Jul 2020 16:15:47 -0700 (PDT) From: Arvind Sankar To: x86@kernel.org, Dave Hansen , Andy Lutomirski , Peter Zijlstra , linux-sh@vger.kernel.org, Yoshinori Sato , Rich Felker , sparclinux@vger.kernel.org, "David S. Miller" Cc: Andrew Morton , linux-mm@kvack.org, linux-kernel@vger.kernel.org Subject: [PATCH 1/3] x86/mm: Drop unused MAX_PHYSADDR_BITS Date: Thu, 23 Jul 2020 19:15:42 -0400 Message-Id: <20200723231544.17274-2-nivedita@alum.mit.edu> X-Mailer: git-send-email 2.26.2 In-Reply-To: <20200723231544.17274-1-nivedita@alum.mit.edu> References: <20200723231544.17274-1-nivedita@alum.mit.edu> MIME-Version: 1.0 X-Rspamd-Queue-Id: 26A6C800343E X-Spamd-Result: default: False [0.00 / 100.00] X-Rspamd-Server: rspam04 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 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 Reviewed-by: David Hildenbrand --- 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 199218719a86..6bfc878f6771 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 From patchwork Thu Jul 23 23:15:43 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arvind Sankar X-Patchwork-Id: 11681797 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 9F2F6913 for ; Thu, 23 Jul 2020 23:15:51 +0000 (UTC) Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.kernel.org (Postfix) with ESMTP id 749C72071A for ; Thu, 23 Jul 2020 23:15:51 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 749C72071A Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=alum.mit.edu Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=owner-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix) id 6F81C8D0006; Thu, 23 Jul 2020 19:15:50 -0400 (EDT) Delivered-To: linux-mm-outgoing@kvack.org Received: by kanga.kvack.org (Postfix, from userid 40) id 6825F8D0003; Thu, 23 Jul 2020 19:15:50 -0400 (EDT) X-Original-To: int-list-linux-mm@kvack.org X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 548868D0006; Thu, 23 Jul 2020 19:15:50 -0400 (EDT) X-Original-To: linux-mm@kvack.org X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0244.hostedemail.com [216.40.44.244]) by kanga.kvack.org (Postfix) with ESMTP id 3BAF88D0003 for ; Thu, 23 Jul 2020 19:15:50 -0400 (EDT) Received: from smtpin27.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay04.hostedemail.com (Postfix) with ESMTP id AF49DA74E for ; Thu, 23 Jul 2020 23:15:49 +0000 (UTC) X-FDA: 77070900018.27.steam32_5f0484626f42 Received: from filter.hostedemail.com (10.5.16.251.rfc1918.com [10.5.16.251]) by smtpin27.hostedemail.com (Postfix) with ESMTP id 7349D3DF62 for ; Thu, 23 Jul 2020 23:15:49 +0000 (UTC) X-Spam-Summary: 1,0,0,7b1032ff4fc53f9b,d41d8cd98f00b204,niveditas98@gmail.com,,RULES_HIT:41:355:379:541:800:960:968:988:989:1260:1311:1314:1345:1359:1437:1515:1534:1540:1711:1714:1730:1747:1777:1792:2393:2559:2562:2693:3138:3139:3140:3141:3142:3351:3865:3870:3871:3874:5007:6261:10004:11026:11473:11657:11658:11914:12043:12048:12297:12517:12519:12533:12555:12895:13069:13161:13229:13311:13357:13894:14096:14181:14384:14394:14721:21080:21444:21451:21627:30003:30054,0,RBL:209.85.222.195:@gmail.com:.lbl8.mailshell.net-66.100.201.100 62.18.0.100;04yrph99wf73u45r39ctiifdcpui9ocgn3uc4455oo1r4ga51tqxz3xp1wf1nh7.igfy7c7imxp97544p3wixmg1tnjjrn7nx7887fyr3f8dkem5rsjezthciyubice.n-lbl8.mailshell.net-223.238.255.100,CacheIP:none,Bayesian:0.5,0.5,0.5,Netcheck:none,DomainCache:0,MSF:not bulk,SPF:fp,MSBL:0,DNSBL:neutral,Custom_rules:0:0:0,LFtime:24,LUA_SUMMARY:none X-HE-Tag: steam32_5f0484626f42 X-Filterd-Recvd-Size: 3367 Received: from mail-qk1-f195.google.com (mail-qk1-f195.google.com [209.85.222.195]) by imf10.hostedemail.com (Postfix) with ESMTP for ; Thu, 23 Jul 2020 23:15:49 +0000 (UTC) Received: by mail-qk1-f195.google.com with SMTP id g26so7114747qka.3 for ; Thu, 23 Jul 2020 16:15:49 -0700 (PDT) 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:in-reply-to :references:mime-version:content-transfer-encoding; bh=0p3sWjwoIaPmRFGxZVHxaWE9xgeZNDe6TS9EQLQfiVk=; b=G3tTikoBuksNq/iHsIgOjHvYJtQBF/hPm/qs/XxHeOL7o5SpsQYEQmGw1SYiUJMnZA jJBK/mvcb6BY9cG8wpY9aEJ6aZ+JLjXKy6h9qVRLTaETm43+vBXVliHPprOG8ed9ieLL EtHBCNevpHwTEY/iTS0DWQU+KV4DJs/vgC2Y2du8lUWi86eNgZNpR5VYm68tW3GEhGiB NdvVwQZ9mwP78RGPwm+WVKSF9wRmz9fCaEFZCZ+cJ3aHRTRh8e8n4CNW7YpYe0qoXaWd jqQkqsSB4FOlILGqhDICLZ+qF+MiaUnh1IvOHaZ7AFBFgJr4xhiifEvmpa8X5MUgJGjD Mcjw== X-Gm-Message-State: AOAM531RNejaO+Y4D50VHzZbjyNNhW2D6qv80I6/Qq/3saU4+GGkjc1g eqOa6JwG7dwjoBle8fiAxn8= X-Google-Smtp-Source: ABdhPJxRhrWyFuZm76eJyagUPBPagdoNvBL7r+lFd2f/JrZVqYCD5XYr6+Kk+vyZcZTbD12AbwR/Ug== X-Received: by 2002:a37:4d90:: with SMTP id a138mr7128415qkb.363.1595546148576; Thu, 23 Jul 2020 16:15:48 -0700 (PDT) Received: from rani.riverdale.lan ([2001:470:1f07:5f3::b55f]) by smtp.gmail.com with ESMTPSA id u58sm4196610qth.77.2020.07.23.16.15.47 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 23 Jul 2020 16:15:48 -0700 (PDT) From: Arvind Sankar To: x86@kernel.org, Dave Hansen , Andy Lutomirski , Peter Zijlstra , linux-sh@vger.kernel.org, Yoshinori Sato , Rich Felker , sparclinux@vger.kernel.org, "David S. Miller" Cc: Andrew Morton , linux-mm@kvack.org, linux-kernel@vger.kernel.org Subject: [PATCH 2/3] sh/mm: Drop unused MAX_PHYSADDR_BITS Date: Thu, 23 Jul 2020 19:15:43 -0400 Message-Id: <20200723231544.17274-3-nivedita@alum.mit.edu> X-Mailer: git-send-email 2.26.2 In-Reply-To: <20200723231544.17274-1-nivedita@alum.mit.edu> References: <20200723231544.17274-1-nivedita@alum.mit.edu> MIME-Version: 1.0 X-Rspamd-Queue-Id: 7349D3DF62 X-Spamd-Result: default: False [0.00 / 100.00] X-Rspamd-Server: rspam02 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 macro is not used anywhere, so remove the definition. Signed-off-by: Arvind Sankar Reviewed-by: David Hildenbrand --- arch/sh/include/asm/sparsemem.h | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/arch/sh/include/asm/sparsemem.h b/arch/sh/include/asm/sparsemem.h index 4eb899751e45..084706bb8cca 100644 --- a/arch/sh/include/asm/sparsemem.h +++ b/arch/sh/include/asm/sparsemem.h @@ -5,11 +5,9 @@ #ifdef __KERNEL__ /* * SECTION_SIZE_BITS 2^N: how big each section will be - * MAX_PHYSADDR_BITS 2^N: how much physical address space we have - * MAX_PHYSMEM_BITS 2^N: how much memory we can have in that space + * MAX_PHYSMEM_BITS 2^N: how much physical address space we have */ #define SECTION_SIZE_BITS 26 -#define MAX_PHYSADDR_BITS 32 #define MAX_PHYSMEM_BITS 32 #endif From patchwork Thu Jul 23 23:15:44 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arvind Sankar X-Patchwork-Id: 11681803 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 0A7E06C1 for ; Thu, 23 Jul 2020 23:15:54 +0000 (UTC) Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.kernel.org (Postfix) with ESMTP id D4AA02071A for ; Thu, 23 Jul 2020 23:15:53 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org D4AA02071A Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=alum.mit.edu Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=owner-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix) id 106038D0009; Thu, 23 Jul 2020 19:15:51 -0400 (EDT) Delivered-To: linux-mm-outgoing@kvack.org Received: by kanga.kvack.org (Postfix, from userid 40) id 0B5278D0003; Thu, 23 Jul 2020 19:15:51 -0400 (EDT) X-Original-To: int-list-linux-mm@kvack.org X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id EE4C38D0009; Thu, 23 Jul 2020 19:15:50 -0400 (EDT) X-Original-To: linux-mm@kvack.org X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0059.hostedemail.com [216.40.44.59]) by kanga.kvack.org (Postfix) with ESMTP id D87258D0003 for ; Thu, 23 Jul 2020 19:15:50 -0400 (EDT) Received: from smtpin27.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay05.hostedemail.com (Postfix) with ESMTP id 8F6A4181AF5F7 for ; Thu, 23 Jul 2020 23:15:50 +0000 (UTC) X-FDA: 77070900060.27.lead38_2504caf26f42 Received: from filter.hostedemail.com (10.5.16.251.rfc1918.com [10.5.16.251]) by smtpin27.hostedemail.com (Postfix) with ESMTP id 652513DF66 for ; Thu, 23 Jul 2020 23:15:50 +0000 (UTC) X-Spam-Summary: 1,0,0,85ffb5152067019a,d41d8cd98f00b204,niveditas98@gmail.com,,RULES_HIT:41:355:379:541:800:960:968:988:989:1260:1311:1314:1345:1359:1431:1437:1515:1534:1539:1566:1711:1714:1730:1747:1777:1792:2393:2559:2562:3138:3139:3140:3141:3142:3865:3871:4321:4605:5007:6261:8784:10004:11026:11473:11657:11658:11914:12043:12048:12297:12438:12517:12519:12533:12555:12895:12986:13069:13161:13229:13311:13357:13894:14181:14384:14394:14721:21080:21444:21451:21627:30054,0,RBL:209.85.222.195:@gmail.com:.lbl8.mailshell.net-66.100.201.100 62.18.0.100;04ygc8xm4y71wwrzkhim65ze9setgop86r15en888qu1rtmmycqr3pkjajzc31f.6hqsfot796h3nyy34jpr1wmurfbfpg4yewichyonynytbthhi91ahxd6tqbweoc.a-lbl8.mailshell.net-223.238.255.100,CacheIP:none,Bayesian:0.5,0.5,0.5,Netcheck:none,DomainCache:0,MSF:not bulk,SPF:fp,MSBL:0,DNSBL:neutral,Custom_rules:0:0:0,LFtime:24,LUA_SUMMARY:none X-HE-Tag: lead38_2504caf26f42 X-Filterd-Recvd-Size: 3166 Received: from mail-qk1-f195.google.com (mail-qk1-f195.google.com [209.85.222.195]) by imf16.hostedemail.com (Postfix) with ESMTP for ; Thu, 23 Jul 2020 23:15:49 +0000 (UTC) Received: by mail-qk1-f195.google.com with SMTP id l23so7125526qkk.0 for ; Thu, 23 Jul 2020 16:15:49 -0700 (PDT) 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:in-reply-to :references:mime-version:content-transfer-encoding; bh=6814H9LNFm7mNAgAbdABMO015b6dWxo/CiMH4s9kGpU=; b=OGkk36SWL9vVUaG4vWBU6N9cQaPi6ZUwRIDlpVF1ZvM4LFdx02x9596w9lbzeK6oe4 UoepYiunDCSVSgxUFYOy2sjxFmbZJs+3Fpm0xfA2KcYRUMSiIICLMxpn7KDL/WU0rf6C RLqJtJLOarI+7F8V3ahhbkSofiR8L52N0cmmDNX2gTuz3Djkih6YczweOxndSR6l6uIe L1xcNIgxQcLQK/PsTXhyZNcUP1XIInPoptBiKGbOHEKCdOIAVrmNwaznFpWo8bD3cKFC M+Ij9+C06GtKVZVGeapQz6yqB4WD1Hx7WgcWSzWEvxwcePwvMA785yBylLAxfzwEuYAk U1/w== X-Gm-Message-State: AOAM530dAVWJ3jI1JEVTErnUgnvjan6bhEFe66Md7bMlV82Lcmn0wJIz wLrqZhNO3n3daTHLF7DsEzg= X-Google-Smtp-Source: ABdhPJy5MXBWH5s3/fFypWtBdB8VuP3zU2BNO8/KzwtRWG7b7u/p/FSVMT5e4B3abtwckXpaKD/qgA== X-Received: by 2002:a37:b48:: with SMTP id 69mr6950053qkl.407.1595546149397; Thu, 23 Jul 2020 16:15:49 -0700 (PDT) Received: from rani.riverdale.lan ([2001:470:1f07:5f3::b55f]) by smtp.gmail.com with ESMTPSA id u58sm4196610qth.77.2020.07.23.16.15.48 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 23 Jul 2020 16:15:49 -0700 (PDT) From: Arvind Sankar To: x86@kernel.org, Dave Hansen , Andy Lutomirski , Peter Zijlstra , linux-sh@vger.kernel.org, Yoshinori Sato , Rich Felker , sparclinux@vger.kernel.org, "David S. Miller" Cc: Andrew Morton , linux-mm@kvack.org, linux-kernel@vger.kernel.org Subject: [PATCH 3/3] sparc: Drop unused MAX_PHYSADDR_BITS Date: Thu, 23 Jul 2020 19:15:44 -0400 Message-Id: <20200723231544.17274-4-nivedita@alum.mit.edu> X-Mailer: git-send-email 2.26.2 In-Reply-To: <20200723231544.17274-1-nivedita@alum.mit.edu> References: <20200723231544.17274-1-nivedita@alum.mit.edu> MIME-Version: 1.0 X-Rspamd-Queue-Id: 652513DF66 X-Spamd-Result: default: False [0.00 / 100.00] X-Rspamd-Server: rspam05 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 macro is not used anywhere, so remove the definition. Signed-off-by: Arvind Sankar Reviewed-by: David Hildenbrand Acked-by: David S. Miller --- arch/sparc/include/asm/sparsemem.h | 1 - 1 file changed, 1 deletion(-) diff --git a/arch/sparc/include/asm/sparsemem.h b/arch/sparc/include/asm/sparsemem.h index 1dd1b61432db..aa9a676bc341 100644 --- a/arch/sparc/include/asm/sparsemem.h +++ b/arch/sparc/include/asm/sparsemem.h @@ -7,7 +7,6 @@ #include #define SECTION_SIZE_BITS 30 -#define MAX_PHYSADDR_BITS MAX_PHYS_ADDRESS_BITS #define MAX_PHYSMEM_BITS MAX_PHYS_ADDRESS_BITS #endif /* !(__KERNEL__) */