Received: by 2002:ac0:a582:0:0:0:0:0 with SMTP id m2-v6csp2799604imm; Sun, 7 Oct 2018 12:03:25 -0700 (PDT) X-Google-Smtp-Source: ACcGV60q8P8iyij3lqNTneNFa0cD77g4Sr15+LlE/M6gKG8z+aK3D/gYppQPPLIG64hvTGSiQ5Jy X-Received: by 2002:aa7:8598:: with SMTP id w24-v6mr22214981pfn.77.1538939005240; Sun, 07 Oct 2018 12:03:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1538939005; cv=none; d=google.com; s=arc-20160816; b=qb43OEo+wOAq28MjbzeEUexsvx7O1UEPlQZFfxGGvncBexlC5Lbqha5FhLXA+yCKFn Im9+WErRFcVEjaayFRb/j6uzFJPkMMaj3DgL8gKQna7lZlPl+uunyPoJcYWJj2yCrLGB tnEbOHbxp7qjsBKYS0j2am5IrCAIGGT+3ecxXt+sYuuO6gu9C9DvmntTwlxN36oFqVC2 8DaeozkRv3xBzxBAgz5hre2PS/+8hC52gv77h7MD8qBYfwGkEHh0yQelQrV81WhDsy+t VrajohTTycexjCyyCbVbEF5VSerBsH/LUd04fcfAMP89LKV68T4BDLEUoXmbxSGs62Ii zhBg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-language :content-transfer-encoding:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject; bh=Qn3iJW9aLbvUMs2J3WffqqtF1YQzqNwakSQM/ep1QEw=; b=Yks0ZuL0YzqXJyMii96U79+b8sQkfmoGxPn6p8QXKkp5yrMWB+2xfQbtWOicsKxqpM GqW844RwMKeppaDnhJwPVzQvFKfjTvIP+pEnBtraoBclaJuEzZlS7jyBjlOCosoC8jFJ oR2rJ6niGp0PU/amLGgeMIn9u7YmcQGoV8PVHMhU9URCx9fpIeN6a8vSgyeCvxynOioV VQY5RxR8ozJc2+Zo5b483vHhxQePdjJ//jeSHqC3MTQMkNwnZfvGDxkFKLLGBYI953vu GSLXPG9fG33H40KJNLAlJTLOjp4Sxay4jEBZupZkQ0Rs8FxIM5gj9he26gHuJQsLwd1K K7Kg== 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 e1-v6si6564460pld.277.2018.10.07.12.03.09; Sun, 07 Oct 2018 12:03:25 -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 S1728277AbeJHCIE (ORCPT + 99 others); Sun, 7 Oct 2018 22:08:04 -0400 Received: from relay6-d.mail.gandi.net ([217.70.183.198]:60241 "EHLO relay6-d.mail.gandi.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726233AbeJHCID (ORCPT ); Sun, 7 Oct 2018 22:08:03 -0400 X-Originating-IP: 79.86.19.127 Received: from [192.168.0.11] (127.19.86.79.rev.sfr.net [79.86.19.127]) (Authenticated sender: alex@ghiti.fr) by relay6-d.mail.gandi.net (Postfix) with ESMTPSA id 671E5C0008; Sun, 7 Oct 2018 18:59:45 +0000 (UTC) Subject: Re: [PATCH] hugetlb: fix ARM 3level page tables To: Arnd Bergmann , Andrew Morton Cc: Luiz Capitulino , Mike Kravetz , Russell King , Stephen Rothwell , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org References: <20181005161722.904274-1-arnd@arndb.de> From: Alex Ghiti Message-ID: <65728e32-d527-5f38-a93c-5a8d9cfbd492@ghiti.fr> Date: Sun, 7 Oct 2018 18:59:44 +0000 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.7.0 MIME-Version: 1.0 In-Reply-To: <20181005161722.904274-1-arnd@arndb.de> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit Content-Language: fr Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Thanks Arnd, this change intervened in v5, that seemed straightforward enough...Sorry about that, and thanks for your fix. Alex On 10/05/2018 04:16 PM, Arnd Bergmann wrote: > The check for __HAVE_ARCH_HUGE_PTEP_GET comes before the definition, > leading to an extraneous definition of huge_ptep_get: > > In file included from arch/arm/include/asm/hugetlb.h:28, > from include/linux/hugetlb.h:456, > from arch/arm/kvm/../../../virt/kvm/arm/mmu.c:22: > arch/arm/include/asm/hugetlb-3level.h:33:21: error: redefinition of 'huge_ptep_get' > static inline pte_t huge_ptep_get(pte_t *ptep) > > Change the header file inclusions to be in the correct order for > this to work. > > Fixes: bb1d18ffc7ae ("hugetlb: introduce generic version of huge_ptep_get") > Signed-off-by: Arnd Bergmann > --- > arch/arm/include/asm/hugetlb.h | 3 +-- > 1 file changed, 1 insertion(+), 2 deletions(-) > > diff --git a/arch/arm/include/asm/hugetlb.h b/arch/arm/include/asm/hugetlb.h > index 3fcef21ff2c2..b67256c22b08 100644 > --- a/arch/arm/include/asm/hugetlb.h > +++ b/arch/arm/include/asm/hugetlb.h > @@ -23,9 +23,8 @@ > #define _ASM_ARM_HUGETLB_H > > #include > -#include > - > #include > +#include > > static inline int is_hugepage_only_range(struct mm_struct *mm, > unsigned long addr, unsigned long len)