Received: by 2002:ac0:bc90:0:0:0:0:0 with SMTP id a16csp403435img; Wed, 20 Mar 2019 03:09:38 -0700 (PDT) X-Google-Smtp-Source: APXvYqwzbTkwepD8yiQ/GMuk13kdUuiCZLeKwFob2vNN1a1jTCikmaYCcJr8uSV/FT+1gaDCoho6 X-Received: by 2002:a65:41ca:: with SMTP id b10mr7016802pgq.146.1553076578732; Wed, 20 Mar 2019 03:09:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1553076578; cv=none; d=google.com; s=arc-20160816; b=Uw2VzSNyAczUaXmvok9TqFrLhnYTYCcgSrEFlP5XshdhcuZMREa+j4AIYsvQUbAaMv V1JhsNn51hPzNAlY8teakSsGnZk9KfJLUejApS7GfHdYXQcywVyKfY7heZCMFwA+eiiJ b9lXpSicWOOlkfe6HVgs9Qnh2mVm9Vc38T2silIOuhLOcyyaFzpDvJtmK525I/7FCpKm QZDSUfIBAl4PkIcBkF3ZDi+xdn1kHc4o9vLe4/mDCn9Ed5m1WgAFSDuMV2b8V6iIBsnB gzHp3RMwXxtxGNQ9cTkwXUzJofxlhxG13IVn4VUrw8zxY0LGgIK4fh5LdNDq50VSfZPC YD/w== 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=XrFU9+s19I/PqLJ/l7h2r2P99TknaN3XNHVH3vsvpHs=; b=sA9j7WKjIlBmMsbkYvU+Slu1ZYm5K9bBrkro24+sgrEkfhGH5L7BNtHCS6VG5US8+g Kr6wqYkCjKdlk68M9aglHHbfhPIiUafAhR7cwr8D7LxDerEdrjjB66ZsKXrnJSBMYC3u Wun8GHw7z1+aiJ30qxMQIHnItdNbPnGVVrmVF9aNQHxlplLMShtmnDe5IWtgcbBrWavm 9ZZkHFl5WrLtT4alBhr9j/c0ksewsUqQQ79+dpYlOEmHWcYw1avki2wGBi6EnvWTMqK3 8XIIEqNPxrEItQOmQGzUM8ScVa1MQiSdRhx80WAUIYej06GEHGN96SXkRY1/WFKrvr/b P/Iw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@c-s.fr header.s=mail header.b=JxhGkzxj; 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 q13si1428796pgc.362.2019.03.20.03.09.23; Wed, 20 Mar 2019 03:09:38 -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=JxhGkzxj; 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 S1727986AbfCTKH5 (ORCPT + 99 others); Wed, 20 Mar 2019 06:07:57 -0400 Received: from pegase1.c-s.fr ([93.17.236.30]:37117 "EHLO pegase1.c-s.fr" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727732AbfCTKGy (ORCPT ); Wed, 20 Mar 2019 06:06:54 -0400 Received: from localhost (mailhub1-int [192.168.12.234]) by localhost (Postfix) with ESMTP id 44PQZ350x5z9vC03; Wed, 20 Mar 2019 11:06:51 +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=JxhGkzxj; 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 bAZmZiKkuzdg; Wed, 20 Mar 2019 11:06:51 +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 44PQZ33ZNHz9vByx; Wed, 20 Mar 2019 11:06:51 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=c-s.fr; s=mail; t=1553076411; bh=XrFU9+s19I/PqLJ/l7h2r2P99TknaN3XNHVH3vsvpHs=; h=In-Reply-To:References:From:Subject:To:Cc:Date:From; b=JxhGkzxjvxTnveWNajGUdv0VyQXqq1IsoO2cRLyzpBescLwmKkXofRl8K/W6mE2PF /3O60BRFb6TKM00KgAXGK7j83A8/egD6BEO5GgiZt9w4cnp4ksIzR5+4hFragd1oBL BK78O9L7aKYuX41cvs6T2KZZpR+aX+10dZhyuo0E= Received: from localhost (localhost [127.0.0.1]) by messagerie.si.c-s.fr (Postfix) with ESMTP id 99DD08B918; Wed, 20 Mar 2019 11:06:52 +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 S0y-DllwjSTs; Wed, 20 Mar 2019 11:06:52 +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 7EE458B911; Wed, 20 Mar 2019 11:06:52 +0100 (CET) Received: by po16846vm.idsi0.si.c-s.fr (Postfix, from userid 0) id 5BC1663AEF; Wed, 20 Mar 2019 10:06:52 +0000 (UTC) Message-Id: In-Reply-To: References: From: Christophe Leroy Subject: [PATCH v1 16/27] powerpc/mm: move hugetlb_disabled into asm/hugetlb.h 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:52 +0000 (UTC) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org No need to have this in asm/page.h, move it into asm/hugetlb.h Signed-off-by: Christophe Leroy --- arch/powerpc/include/asm/hugetlb.h | 2 ++ arch/powerpc/include/asm/page.h | 1 - arch/powerpc/kernel/fadump.c | 1 + arch/powerpc/mm/hash_utils_64.c | 1 + 4 files changed, 4 insertions(+), 1 deletion(-) diff --git a/arch/powerpc/include/asm/hugetlb.h b/arch/powerpc/include/asm/hugetlb.h index fd5c0873a57d..84598c6b0959 100644 --- a/arch/powerpc/include/asm/hugetlb.h +++ b/arch/powerpc/include/asm/hugetlb.h @@ -13,6 +13,8 @@ #include #endif /* CONFIG_PPC_BOOK3S_64 */ +extern bool hugetlb_disabled; + void flush_dcache_icache_hugepage(struct page *page); int slice_is_hugepage_only_range(struct mm_struct *mm, unsigned long addr, diff --git a/arch/powerpc/include/asm/page.h b/arch/powerpc/include/asm/page.h index ed870468ef6f..0c11a7513919 100644 --- a/arch/powerpc/include/asm/page.h +++ b/arch/powerpc/include/asm/page.h @@ -29,7 +29,6 @@ #ifndef __ASSEMBLY__ #ifdef CONFIG_HUGETLB_PAGE -extern bool hugetlb_disabled; extern unsigned int HPAGE_SHIFT; #else #define HPAGE_SHIFT PAGE_SHIFT diff --git a/arch/powerpc/kernel/fadump.c b/arch/powerpc/kernel/fadump.c index 45a8d0be1c96..25f063f56ec5 100644 --- a/arch/powerpc/kernel/fadump.c +++ b/arch/powerpc/kernel/fadump.c @@ -36,6 +36,7 @@ #include #include #include +#include #include #include diff --git a/arch/powerpc/mm/hash_utils_64.c b/arch/powerpc/mm/hash_utils_64.c index 0a4f939a8161..16ce13af6b9c 100644 --- a/arch/powerpc/mm/hash_utils_64.c +++ b/arch/powerpc/mm/hash_utils_64.c @@ -37,6 +37,7 @@ #include #include #include +#include #include #include -- 2.13.3