From patchwork Mon Jun 18 14:19:03 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Greg Ungerer X-Patchwork-Id: 10471689 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 E752460532 for ; Mon, 18 Jun 2018 14:21:48 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id D677D28931 for ; Mon, 18 Jun 2018 14:21:48 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id CB13228AAC; Mon, 18 Jun 2018 14:21:48 +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=-2.9 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 8026428931 for ; Mon, 18 Jun 2018 14:21:48 +0000 (UTC) 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=2OI6uuLdURfg6Qo1p0bD2jv1nvzml5S27WmqZyQOCe4=; b=ox8iPDwTE2PDw+ 0xgKgvkSvZIV6dbWfRJcKzml4KjhE8FmSTfkPN884qK/Ohsg6d3qS8fn9WCQda7k7h1IdMBPxIm48 hTGFnKx4FRj0+CmrIWn+yzVMHzXxQIfKS/UOKNRs/ek8aZuqtwHdJ+FL5+rKU8r0kB/Q+qMV8yrL+ 2HUlfShmFbW1r8Khcb5lJ7rrED9aNHNnqb+0A7GYTG4e0vjDbAvtDP3SbXqsHyTqq5vJD1e2pZu22 RpFgdibQZwWeJ1O8z6E0Rk2izGm92QGp56RVy30KYYQoEi+l5mEF7EkoGKi0lKK8jb79ETJYQdO0u 6w8ynFvtg4U2KvJAC7ng==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1fUv2G-000604-0C; Mon, 18 Jun 2018 14:21:36 +0000 Received: from icp-osb-irony-out3.external.iinet.net.au ([203.59.1.153]) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1fUv0b-0003bP-66 for linux-arm-kernel@lists.infradead.org; Mon, 18 Jun 2018 14:20:01 +0000 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: =?us-ascii?q?A2AsAQDdvidb/zXSMGdbGgEBAQEBAgEBA?= =?us-ascii?q?QEIAQEBAYNIgU8SKIN5iASMT0sGgT+QOIQogXgeGAGEQAKCWyE0GAECAQEBAQE?= =?us-ascii?q?BAm0ohSkGIw8BRhAYDQIYDgICVwcSgyWBdAypGYIcGgKEP4NogWiBC4dJgQyBB?= =?us-ascii?q?4NmiCuCVQKZFggBjn6II4UjK5JjOIFSMxoIKAiCfpBhLTB6AQGPVQEB?= X-IPAS-Result: =?us-ascii?q?A2AsAQDdvidb/zXSMGdbGgEBAQEBAgEBAQEIAQEBAYNIgU8?= =?us-ascii?q?SKIN5iASMT0sGgT+QOIQogXgeGAGEQAKCWyE0GAECAQEBAQEBAm0ohSkGIw8BR?= =?us-ascii?q?hAYDQIYDgICVwcSgyWBdAypGYIcGgKEP4NogWiBC4dJgQyBB4NmiCuCVQKZFgg?= =?us-ascii?q?Bjn6II4UjK5JjOIFSMxoIKAiCfpBhLTB6AQGPVQEB?= X-IronPort-AV: E=Sophos;i="5.51,239,1526313600"; d="scan'208";a="88321298" Received: from unknown (HELO goober.digi.com) ([103.48.210.53]) by icp-osb-irony-out3.iinet.net.au with ESMTP; 18 Jun 2018 22:19:41 +0800 From: Greg Ungerer To: linux-arm-kernel@lists.infradead.org, linux@armlinux.org.uk Subject: [PATCHv4 2/4] ARM: versatile: define empty debug_ll_io_init() for no-MMU Date: Tue, 19 Jun 2018 00:19:03 +1000 Message-Id: <20180618141905.7789-3-gerg@linux-m68k.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20180618141905.7789-1-gerg@linux-m68k.org> References: <20180618141905.7789-1-gerg@linux-m68k.org> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20180618_071953_507178_29109740 X-CRM114-Status: UNSURE ( 8.09 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: vladimir.murzin@arm.com, 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 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 v4: rebase in top of linux-4.17 diff --git a/arch/arm/include/asm/mach/map.h b/arch/arm/include/asm/mach/map.h index 9b7c328fb207..b1fe9c8b5c3e 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