Received: by 2002:ac0:a582:0:0:0:0:0 with SMTP id m2-v6csp1328629imm; Sat, 6 Oct 2018 00:50:54 -0700 (PDT) X-Google-Smtp-Source: ACcGV61RbzqXnvET5smKYo15PcwktIkePP6c0JzWNyRnbR/aH1jbZJ3PrGV4ZjAbT774/0zrsVH2 X-Received: by 2002:a17:902:8e8b:: with SMTP id bg11-v6mr14743919plb.219.1538812254487; Sat, 06 Oct 2018 00:50:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1538812254; cv=none; d=google.com; s=arc-20160816; b=ThUf7kUZk1mCrDTfY5eHluOfjsGROaYsGXUypLwAzSOHo9uTNOyLSCxk4A9zo0VFCw 84eicQbWdDzHXua+AOrcb5HQlnIgBoyJPXMMYLX1xDuREqJTYTQ9uz6HEp3gfIQgFOVN dVEDDpPkIQpYtj4v3dUwMZsgkrrVGO1L0RILRMvEBlrOQNJhYlqdkent7rItDEfOL+O9 MTcacclqLZP+Xn9rmzk4yNmAwP3kjkwG/rdxUPPwISI6mWrvsnM64CORp5vpv+aNwrBt 1F0nMBBjWCwsr+FbuQsQGqRJKjhJ7dr4Ih7N3fiFDOvqg+S2X3N7tqMDPK1CxrfvCV6a UMug== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=WTOYmd5AgS5XLIdUuV4WJcdPN9WTM8YF8DHf2OEN+eg=; b=ZKCLC8D1D2GU35BTMoYqqHgiyMc6cawNZnUSb539lQZwOMSf2JAs6a7zMPmVpEUqGY yEvE0rtj26i06C9oIiJAWVUwH8amvEDuHxlKxZvbbbaxAKNLgAz7yV0VTT8N3b3w0v74 YUWNBf6h4jWVpQg8m+4CEsjVIdq/2kpV5Yi3RsVjIFlVp8c+tRQXqrrf/nUiVjAOuDRi 3HLDU6URw6pc51gDoVICHWQNaAHkc6iuUhd543z+JX7VDvM1aBLt7oQT6QRb5oImapYg 4OHOn5hH324DOW8aHGIXIrgtp1Mfdj44YYgLWSQ0DPFTn89PVXfysbmSAqOgI8jPjHLD j4kQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=SNJMH9Gt; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id a7-v6si10801057pls.229.2018.10.06.00.50.23; Sat, 06 Oct 2018 00:50:54 -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=@linaro.org header.s=google header.b=SNJMH9Gt; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727719AbeJFOwi (ORCPT + 99 others); Sat, 6 Oct 2018 10:52:38 -0400 Received: from mail-lf1-f68.google.com ([209.85.167.68]:39318 "EHLO mail-lf1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727588AbeJFOwi (ORCPT ); Sat, 6 Oct 2018 10:52:38 -0400 Received: by mail-lf1-f68.google.com with SMTP id w21-v6so10854882lff.6 for ; Sat, 06 Oct 2018 00:50:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=WTOYmd5AgS5XLIdUuV4WJcdPN9WTM8YF8DHf2OEN+eg=; b=SNJMH9Gtz4wR7/jRzfs++V5jSBpWL82F/T55dVDUDkx5PRc0tKpqxK1TnZqqnbE/4X Uigb/CIPXwX+HQnioqVDSaXwGPmHKHkP2RDQIqrXrXcC43kUy9XN8J18WunNpudpTP2Z 6jS2X3NHcAxaO/I6h/BiAQOiHAsz4gXVXUP1w= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=WTOYmd5AgS5XLIdUuV4WJcdPN9WTM8YF8DHf2OEN+eg=; b=t9qHQ3NBwhZx2mmjAcPwfQETLiGABU51JFriTtsAh3oI5egb8hshmOEBssH1OACwg/ exO2VpycB41LJyTOW3qVOg4AxEq072QtR9K51cTIkKzHmbFrYk9hhCiMuBMgJAEiUfGv 6+36hdz7H2sjMyHTASPn+hNYqTOmSBGv+29OmgdNL5LbxMyRK1087n2wIH9v+Nex+NVz 96CWKHjMrHkNxbmpTE7jIlaP4N9keDqS/ghgLBBr5afvJ/dKBQbVjWpXCSr6bvifjBrL 1Uuk3Q2s8dNUSeGHf+W3JeBHsKyuYBvU8tjDdIX4uKijEcj0lmAtFgevuk98dt/HOSeI /WDg== X-Gm-Message-State: ABuFfoh464+iOnGC11mE35nMQNfGjS29qcz5zFReP5oSwrUNYz/We7A+ 31mNZ81PkB5o8/RRnMnraYr92jrCbCIxA5rWRsiO5Q== X-Received: by 2002:a19:735d:: with SMTP id o90-v6mr8730585lfc.45.1538812217785; Sat, 06 Oct 2018 00:50:17 -0700 (PDT) MIME-Version: 1.0 References: <20181005161722.904274-1-arnd@arndb.de> In-Reply-To: <20181005161722.904274-1-arnd@arndb.de> From: Naresh Kamboju Date: Sat, 6 Oct 2018 00:50:05 -0700 Message-ID: Subject: Re: [PATCH] hugetlb: fix ARM 3level page tables To: Arnd Bergmann Cc: Andrew Morton , alex@ghiti.fr, lcapitulino@redhat.com, mike.kravetz@oracle.com, Russell King - ARM Linux , Stephen Rothwell , linux-arm-kernel@lists.infradead.org, open list Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Arnd, On Fri, 5 Oct 2018 at 09:17, 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 I have noticed this build error on linux next tree for arm32 build. Thanks for the fix. - Naresh