Return-Path: Received: from ozlabs.org (ozlabs.org [IPv6:2401:3900:2:1::2]) (using TLSv1.2 with cipher ADH-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by lists.ozlabs.org (Postfix) with ESMTPS id 40hzxY35f6zF2DX for ; Fri, 11 May 2018 16:01:37 +1000 (AEST) From: Michael Ellerman To: Christophe Leroy , Benjamin Herrenschmidt , Paul Mackerras , aneesh.kumar@linux.vnet.ibm.com Cc: linux-kernel@vger.kernel.org, linuxppc-dev@lists.ozlabs.org Subject: Re: [PATCH 05/17] powerpc: move io mapping functions into ioremap.c In-Reply-To: References: Date: Fri, 11 May 2018 16:01:36 +1000 Message-ID: <87y3gqrarj.fsf@concordia.ellerman.id.au> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Christophe Leroy writes: > diff --git a/arch/powerpc/mm/ioremap.c b/arch/powerpc/mm/ioremap.c > new file mode 100644 > index 000000000000..5d2645193568 > --- /dev/null > +++ b/arch/powerpc/mm/ioremap.c > @@ -0,0 +1,350 @@ > +/* > + * This file contains the routines for mapping IO areas > + * > + * Derived from arch/powerpc/mm/pgtable_32.c and > + * arch/powerpc/mm/pgtable_64.c > + * > + * SPDX-License-Identifier: GPL-2.0 This goes at the top of the file as: // SPDX-License-Identifier: GPL-2.0 See: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/D= ocumentation/process/license-rules.rst?#n56 > +#include > +#include > +#include > +#include > +#include > +#include > +#include > +#include > +#include > + > +#include > +#include > +#include > +#include > +#include > +#include I needed: +#include To fix: ../arch/powerpc/mm/ioremap.c: In function =E2=80=98ioremap_wc=E2=80=99: ../arch/powerpc/mm/ioremap.c:290:6: error: =E2=80=98ppc_md=E2=80=99 undecla= red (first use in this function) if (ppc_md.ioremap) ^~~~~~ cheers