From patchwork Wed Mar 1 01:39:43 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Greg Ungerer X-Patchwork-Id: 733990 Return-Path: X-Original-To: incoming-imx@patchwork.ozlabs.org Delivered-To: patchwork-incoming-imx@bilbo.ozlabs.org Received: from bombadil.infradead.org (bombadil.infradead.org [65.50.211.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 3vXyny1kNsz9s8N for ; Wed, 1 Mar 2017 12:40:53 +1100 (AEDT) Authentication-Results: ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="M81fFL5R"; dkim-atps=neutral DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=qH0Q9BSO6Q86nzAm2w/cW8Wmkln05Na7PHMJj1CYnBk=; b=M81fFL5Rfs+14K rWwcPOU1D+yDO2iVVWjWAqFMd9QoRxgGy698yI3SQzFuhOXLOBGW6KC2v8drbo+42uQlrcMvrRzSf 1HL7/dBiL/m/krexvoSTjZzsFTRZBlHaQp2zRjg8lyqBXITieKHx7JYxvqd/Kxkih0e4PaGHTq85d j5gMUSZNhjmp1BXK7CJNEZTLfrc+5crC17Lk7I8CAxxGskBFk0G+pLReCRvX2z20VCIaB9qA9Cm2P xYrckdi4NxXJnOx6f4gSZt4BLHk2WXsTqaNCm67f/HJiaT50BfKv4NZdkUz9m9wr5NjsEGG6W5Q1z A+J6Jq2nSfARqfUudd1w==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.87 #1 (Red Hat Linux)) id 1citG7-0006cQ-6D; Wed, 01 Mar 2017 01:40:51 +0000 Received: from icp-osb-irony-out9.external.iinet.net.au ([203.59.1.226]) by bombadil.infradead.org with esmtp (Exim 4.87 #1 (Red Hat Linux)) id 1citFg-0005zR-Rw for linux-arm-kernel@lists.infradead.org; Wed, 01 Mar 2017 01:40:27 +0000 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: A2ABCAALJrZY/zXSMGdeHAEBBAEBCgEBg1CBaoMNTppAAQEBAQaSBIZgGoYIAoIuVwECAQEBAQECYiiEcQYjDwFGEBgNAhgOAgJXGYlqDLFygiYmAop/MoELhHyKVII6gl8FnCOSLopghjZIkmpXgQEhFAgkCIcdLjWJcAEBAQ X-IPAS-Result: A2ABCAALJrZY/zXSMGdeHAEBBAEBCgEBg1CBaoMNTppAAQEBAQaSBIZgGoYIAoIuVwECAQEBAQECYiiEcQYjDwFGEBgNAhgOAgJXGYlqDLFygiYmAop/MoELhHyKVII6gl8FnCOSLopghjZIkmpXgQEhFAgkCIcdLjWJcAEBAQ X-IronPort-AV: E=Sophos;i="5.35,222,1483977600"; d="scan'208";a="179219667" Received: from unknown (HELO goober.accelecon.com) ([103.48.210.53]) by icp-osb-irony-out9.iinet.net.au with ESMTP; 01 Mar 2017 09:40:03 +0800 From: Greg Ungerer To: linux-arm-kernel@lists.infradead.org Subject: [PATCHv3 2/4] ARM: versatile: define empty debug_ll_io_init() for no-MMU Date: Wed, 1 Mar 2017 11:39:43 +1000 Message-Id: <1488332385-3367-3-git-send-email-gerg@uclinux.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1488332385-3367-1-git-send-email-gerg@uclinux.org> References: <1488332385-3367-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-20170228_174025_175993_9D6A6A15 X-CRM114-Status: UNSURE ( 8.46 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -2.6 (--) X-Spam-Report: SpamAssassin version 3.4.1 on bombadil.infradead.org summary: Content analysis details: (-2.6 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.7 RCVD_IN_DNSWL_LOW RBL: Sender listed at http://www.dnswl.org/, low trust [203.59.1.226 listed in list.dnswl.org] 0.0 SPF_FAIL SPF: sender does not match SPF record (fail) [SPF failed: Please see http://www.openspf.org/Why?s=mfrom; id=gerg%40uclinux.org; ip=203.59.1.226; r=bombadil.infradead.org] -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: robh@kernel.org, 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+incoming-imx=patchwork.ozlabs.org@lists.infradead.org List-Id: linux-imx-kernel.lists.patchwork.ozlabs.org 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 Reviewed-by: Vladimir Murzin --- arch/arm/include/asm/mach/map.h | 1 + 1 file changed, 1 insertion(+) v2: no change v3: rebase on top of linux-4.10 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