Received: by 2002:ac0:a594:0:0:0:0:0 with SMTP id m20-v6csp382200imm; Thu, 10 May 2018 23:02:06 -0700 (PDT) X-Google-Smtp-Source: AB8JxZqJ48Z5WnSacMKX+wszE7inMavf2R9RZg1Qj9/xf6R5nuITGpKaZXeKM7+HuU7zht8+lI1J X-Received: by 2002:a17:902:8a82:: with SMTP id p2-v6mr4224628plo.244.1526018526659; Thu, 10 May 2018 23:02:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1526018526; cv=none; d=google.com; s=arc-20160816; b=yk+TvGOcJdbFbGdsvqFQ/w8yiXRwWVzjxooFk7/zMDvadUh7LhWfhUUVkvT0uLmlIM LruFKqtgWs5YtcnZb90w8DNa9TifQOhI8X4VlOASd3imgPK/H35pabVqsXOPZarpsEr8 EJV01O0cfZZyojrC9veJSq8hkEGm2JRRd64/qE1ZAFWV3oXC+7UiUr3VExl/Hr7pHUcM +bN4Mo0Gj4fTSK1h97DezbuOpEJFbyCjgSZ/Wpz4AGwSIVK25oIiOGCjeP6HOM/c74bQ /C/fz13GvE3sEaSxoug/W7X3I5qS7xlieIE1Dx6+P9mXyCumIgkGIDQKFQQL2CZngAwr 2e8A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:date:references:in-reply-to:subject:cc:to:from :arc-authentication-results; bh=Y3iGc8t9w3Up7ZSOjrv401e8tOK42qsYgC3UOu+dlic=; b=seWLUpW5vKtDNhKVIMu0bZxDX3dYn+rPFlESI+jfVObHFF8WoWNbNNjM88yJNuzy3n Q7m7HorcQJ5S9k1j4/PXxvAXaHmPCtbmDGzrFjAQMIjoaQx51crvASwX6vf9ouMI2lN1 BKfOFg2LArAskR/JUCUlmDzDFIosITN2N5gFaSzWSNi6dhL4lSdRttHCb04UO+S6Prrk dmzMB+Xxp/AW5E6Y1bCrJKeJSvhYLBJXX80vqz064LMNmpMz6+dmDnJBcS04iLzVgK/d ONCmfkbSXR71j0dQLH0B0vlcwVsdpGTHASRwVcfAouk1uQCNph0xNUP1nf2Y0zPUJkqp 04QQ== 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 g18-v6si2575713plo.586.2018.05.10.23.01.51; Thu, 10 May 2018 23:02:06 -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 S1752209AbeEKGBj convert rfc822-to-8bit (ORCPT + 99 others); Fri, 11 May 2018 02:01:39 -0400 Received: from ozlabs.org ([203.11.71.1]:55103 "EHLO ozlabs.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750927AbeEKGBi (ORCPT ); Fri, 11 May 2018 02:01:38 -0400 Received: from authenticated.ozlabs.org (localhost [127.0.0.1]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPSA id 40hzxX3hL9z9s16; Fri, 11 May 2018 16:01:36 +1000 (AEST) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=ellerman.id.au 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 Content-Transfer-Encoding: 8BIT Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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/Documentation/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 ‘ioremap_wc’: ../arch/powerpc/mm/ioremap.c:290:6: error: ‘ppc_md’ undeclared (first use in this function) if (ppc_md.ioremap) ^~~~~~ cheers