Received: by 2002:ac0:bc90:0:0:0:0:0 with SMTP id a16csp402575img; Wed, 20 Mar 2019 03:08:45 -0700 (PDT) X-Google-Smtp-Source: APXvYqwsC/jXnJJZFZVPLpw0CUGqGGFD5L7hJYpmq8ydq/b1/6hLqTDWMRmxY+FezBGLDEZH//II X-Received: by 2002:a62:2c91:: with SMTP id s139mr7290971pfs.196.1553076524740; Wed, 20 Mar 2019 03:08:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1553076524; cv=none; d=google.com; s=arc-20160816; b=dNUiYhmVLnsN2W+OjsxeY6z76LDLXAr8vu3Pl5RFh6+xgh8WiLztFjIpIxwf9QTmMc 6mayZ1lF5EfMuLFrc2Quzlqrren3dfaHbDumic74VIG03WwMk7z/ijxtoNdM7LG1IRf9 3OTHSC0YRZlEILd9DfsWq9nQPD7aOIL8pHCLmx0cASrEASkQ2B/jRO7vjldEJydzV3m4 Hv/ve3XBfVW370PqN+gb3drBBQh6VtsUahSyDYY3rMmCO4kJK2J6y+OUfbcJ7M94NwlI hWAhFYcFhk/6Ty5SHA/Ldg4syVTj6JemhsZ8QtT4x8W+S8oRcSrfxU4RscqZQPY0AcmW DSXQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:date:cc:to:subject:from:references :in-reply-to:message-id:dkim-signature; bh=ULxgnQpCSQbiN3N1ejsuE5GZ54FA7/d869B1KN+MJkI=; b=HyLbFSVG7n8fU4rKA9XtFMd9JdMe6fWbV6zdBtJ7iAseMMKcSirBunzorGLmxkfgk0 a0FucxO/0qrMOnGfaxA5EO1JycPVSHmtgtfft1l4SIZHU1GZFfvKZo16Oxb2Z0YyX83T BtCYRviuI6XQBHgJEhGoaa0tmhMkzyRDRyfMjVzY2IqfTc4jwsoEUxMPUdoabRt1tAmJ aBdmUYcsLEYLqfQoncWuuAZzZEzkwOu+JpCsDkK6yYUiFMtBai/vOS3qJLgjHaOD7VEp YYked6EjrN6r/LJ/RRGIZcjwQA59TE4XjP9oLZJZbR9PyOdwh1gkd9AlOLPUTNM3OZ+7 lt2A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@c-s.fr header.s=mail header.b=MOXmu1mW; 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 q11si1519465plr.379.2019.03.20.03.08.29; Wed, 20 Mar 2019 03:08:44 -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=pass header.i=@c-s.fr header.s=mail header.b=MOXmu1mW; 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 S1727894AbfCTKHC (ORCPT + 99 others); Wed, 20 Mar 2019 06:07:02 -0400 Received: from pegase1.c-s.fr ([93.17.236.30]:12978 "EHLO pegase1.c-s.fr" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727813AbfCTKG6 (ORCPT ); Wed, 20 Mar 2019 06:06:58 -0400 Received: from localhost (mailhub1-int [192.168.12.234]) by localhost (Postfix) with ESMTP id 44PQZ76ccNz9vC06; Wed, 20 Mar 2019 11:06:55 +0100 (CET) Authentication-Results: localhost; dkim=pass reason="1024-bit key; insecure key" header.d=c-s.fr header.i=@c-s.fr header.b=MOXmu1mW; dkim-adsp=pass; dkim-atps=neutral X-Virus-Scanned: Debian amavisd-new at c-s.fr Received: from pegase1.c-s.fr ([192.168.12.234]) by localhost (pegase1.c-s.fr [192.168.12.234]) (amavisd-new, port 10024) with ESMTP id 7Go5EndgADZn; Wed, 20 Mar 2019 11:06:55 +0100 (CET) Received: from messagerie.si.c-s.fr (messagerie.si.c-s.fr [192.168.25.192]) by pegase1.c-s.fr (Postfix) with ESMTP id 44PQZ75R8Cz9vByx; Wed, 20 Mar 2019 11:06:55 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=c-s.fr; s=mail; t=1553076415; bh=ULxgnQpCSQbiN3N1ejsuE5GZ54FA7/d869B1KN+MJkI=; h=In-Reply-To:References:From:Subject:To:Cc:Date:From; b=MOXmu1mWORUsvnfk9ArQOo5/GugyslLynuVoI6YM9Gl4MiZSZUpS/reqPf7YbDS8D Ixuq8wYbc4utWiViH5e4k3+xXpQzvequ8846wZVH9a3krqDAtM8ahPgdfZqSenGnNH 76pI/BsdJ5BkxGyHMFcof4Yl8Mj6AfXc4yZIor0U= Received: from localhost (localhost [127.0.0.1]) by messagerie.si.c-s.fr (Postfix) with ESMTP id DBA178B918; Wed, 20 Mar 2019 11:06:56 +0100 (CET) X-Virus-Scanned: amavisd-new at c-s.fr Received: from messagerie.si.c-s.fr ([127.0.0.1]) by localhost (messagerie.si.c-s.fr [127.0.0.1]) (amavisd-new, port 10023) with ESMTP id Kini57lOiY3W; Wed, 20 Mar 2019 11:06:56 +0100 (CET) Received: from po16846vm.idsi0.si.c-s.fr (unknown [172.25.231.2]) by messagerie.si.c-s.fr (Postfix) with ESMTP id B5A5E8B911; Wed, 20 Mar 2019 11:06:56 +0100 (CET) Received: by po16846vm.idsi0.si.c-s.fr (Postfix, from userid 0) id 8B2C563AEF; Wed, 20 Mar 2019 10:06:56 +0000 (UTC) Message-Id: In-Reply-To: References: From: Christophe Leroy Subject: [PATCH v1 20/27] powerpc/mm: remove unnecessary #ifdef CONFIG_PPC64 To: Benjamin Herrenschmidt , Paul Mackerras , Michael Ellerman , aneesh.kumar@linux.ibm.com Cc: linux-kernel@vger.kernel.org, linuxppc-dev@lists.ozlabs.org Date: Wed, 20 Mar 2019 10:06:56 +0000 (UTC) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org For PPC32 that's a noop, but gcc is smart enough ignore it. Signed-off-by: Christophe Leroy --- arch/powerpc/mm/slice.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/arch/powerpc/mm/slice.c b/arch/powerpc/mm/slice.c index 99983dc4e484..f98b9e812c62 100644 --- a/arch/powerpc/mm/slice.c +++ b/arch/powerpc/mm/slice.c @@ -96,13 +96,11 @@ static int slice_high_has_vma(struct mm_struct *mm, unsigned long slice) unsigned long start = slice << SLICE_HIGH_SHIFT; unsigned long end = start + (1ul << SLICE_HIGH_SHIFT); -#ifdef CONFIG_PPC64 /* Hack, so that each addresses is controlled by exactly one * of the high or low area bitmaps, the first high area starts * at 4GB, not 0 */ if (start == 0) - start = SLICE_LOW_TOP; -#endif + start = (unsigned long)SLICE_LOW_TOP; return !slice_area_is_free(mm, start, end - start); } -- 2.13.3