From patchwork Wed Dec 7 06:08:30 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Greg Ungerer X-Patchwork-Id: 9463985 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id D75D260459 for ; Wed, 7 Dec 2016 06:11:44 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id C700C28448 for ; Wed, 7 Dec 2016 06:11:44 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id BBE3828467; Wed, 7 Dec 2016 06:11:44 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-4.2 required=2.0 tests=BAYES_00, RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (using TLSv1.2 with cipher AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 79D9C28448 for ; Wed, 7 Dec 2016 06:11:44 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.85_2 #1 (Red Hat Linux)) id 1cEVQr-0004vI-P1; Wed, 07 Dec 2016 06:10:21 +0000 Received: from icp-osb-irony-out2.external.iinet.net.au ([203.59.1.155]) by bombadil.infradead.org with esmtp (Exim 4.85_2 #1 (Red Hat Linux)) id 1cEVQf-00047q-TR for linux-arm-kernel@lists.infradead.org; Wed, 07 Dec 2016 06:10:11 +0000 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: A2DEBgBqpkdY/zXSMGdeHAEBBAEBCgEBgzkBAQEBAR+BYKM0BpFQgjyCD4IHGYYJAoIkQRIBAgEBAQEBAQFiKEISAYQUBiMPAUYQGA0CGA4CAlcZiG6pC4IpKgKLETGBC4RpijmCOIJdBZpmkRqKJ4YWSZFIJgsleBMOhWcsNIZegmgBAQE X-IPAS-Result: A2DEBgBqpkdY/zXSMGdeHAEBBAEBCgEBgzkBAQEBAR+BYKM0BpFQgjyCD4IHGYYJAoIkQRIBAgEBAQEBAQFiKEISAYQUBiMPAUYQGA0CGA4CAlcZiG6pC4IpKgKLETGBC4RpijmCOIJdBZpmkRqKJ4YWSZFIJgsleBMOhWcsNIZegmgBAQE X-IronPort-AV: E=Sophos;i="5.33,310,1477929600"; d="scan'208";a="581573887" Received: from unknown (HELO goober.accelecon.com) ([103.48.210.53]) by icp-osb-irony-out2.iinet.net.au with ESMTP; 07 Dec 2016 14:09:22 +0800 From: Greg Ungerer To: linux-arm-kernel@lists.infradead.org Subject: [PATCH 2/4] ARM: versatile: define empty debug_ll_io_init() for no-MMU Date: Wed, 7 Dec 2016 16:08:30 +1000 Message-Id: <1481090912-29835-3-git-send-email-gerg@uclinux.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1481090912-29835-1-git-send-email-gerg@uclinux.org> References: <1481090912-29835-1-git-send-email-gerg@uclinux.org> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20161206_221010_305275_7B8767F3 X-CRM114-Status: UNSURE ( 8.33 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: wangkefeng.wang@huawei.com, arnd@arndb.de, linus.walleij@linaro.org, nicolas.ferre@atmel.com, linux@armlinux.org.uk, Greg Ungerer Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP No-MMU configured targets have no definition for debug_ll_io_init(). Not all machines use this and it will only be required if CONFIG_DEBUG_LL is enabled. But when compiling for a target that uses it and it is configured for no-MMU (!CONFIG_MMU), for example the versatile machine, you will get: CC arch/arm/mach-versatile/versatile_dt.o arch/arm/mach-versatile/versatile_dt.c: In function ‘versatile_map_io’: arch/arm/mach-versatile/versatile_dt.c:283:2: error: implicit declaration of function ‘debug_ll_io_init’ [-Werror=implicit-function-declaration] debug_ll_io_init(); ^ Fix by adding a macro for it to the !CONFIG_MMU path in map.h. Signed-off-by: Greg Ungerer --- arch/arm/include/asm/mach/map.h | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm/include/asm/mach/map.h b/arch/arm/include/asm/mach/map.h index 9b7c328..b1fe9c8 100644 --- a/arch/arm/include/asm/mach/map.h +++ b/arch/arm/include/asm/mach/map.h @@ -62,6 +62,7 @@ extern int ioremap_page(unsigned long virt, unsigned long phys, #else #define iotable_init(map,num) do { } while (0) #define vm_reserve_area_early(a,s,c) do { } while (0) +#define debug_ll_io_init() do { } while (0) #endif #endif