Received: by 10.223.164.202 with SMTP id h10csp526475wrb; Tue, 14 Nov 2017 05:33:58 -0800 (PST) X-Google-Smtp-Source: AGs4zMYqSoIShxalrrlQJmM770jEhIzNjTF9vqLm9uckwp3lwq5Z1oCGN++h2XB3ROG281LKSOAn X-Received: by 10.99.174.68 with SMTP id e4mr12110423pgp.367.1510666437917; Tue, 14 Nov 2017 05:33:57 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1510666437; cv=none; d=google.com; s=arc-20160816; b=D06tDfRkET9WhdxM59oyOUPUPbvx7YVmGk7ni4kAIRYOPx9N0eIgzL0XNHmbMO6zNE 4m9tzUikA96KgPT3WTH/pVvYzDFJfZpHOSoZ/YFEzo+om9ARxgsmWjIij1/1WfkTKXIJ AEGVM33Fk8cb3K0XY7+EU9ZZXOkHai3a8qqgwafx1GgyYxRnRyFvI/oPGXj7E6mAlcR3 TXfe2fJho2APU81/oUImWL2UO/UBS6lxHou2cx5nnQ6eIBBQLz8X9umXH//Mkek0ygNh C9zeRHhXTaXXEuKY+4y44Dd/dIDD5rieS5YDZy8AHFWL8zv2NOWmdpetVwyVGH+n0HtN Cq+Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:message-id:date:subject:cc :to:from:arc-authentication-results; bh=Z50bZwmBXXDJD5/6eXekUER3PTsNV/mG9XnLxp10+Ns=; b=EZCLjnF/7S5cQNfip5c9N6uOM2aGjXCQx4GTXCJXRdNM/r0ormu34g6Ej1NCXPwaO+ xBsixkD/xkGMS7bEmpqY/cQm/kwJGd0SmMLcfo8rU5zy/czuzjVaGgXBobbv1TfWWIRS hbt1+IXjieyHJXrzBuwpCxU4jz3e734UGr/TSvTzGd+EzHKQzGWN4Zl97fYm3kDChdrt Do/hdkLkTVhbqSiKBVaaIiMaTPWbGs566GkELFsgkRk0tmlMrQEoxqIYe8HOeJ7yUaZ4 sRk+f3/sv9tewXcgq5yFFcQkx0dfnRURP1tug8vuj4afxQuYldXl3l3U46P5tF80Hvzx MjUQ== 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 g6si15500842pgq.135.2017.11.14.05.33.45; Tue, 14 Nov 2017 05:33:57 -0800 (PST) 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 S1755413AbdKNNba (ORCPT + 88 others); Tue, 14 Nov 2017 08:31:30 -0500 Received: from 19pmail.ess.barracuda.com ([64.235.154.231]:35481 "EHLO 19pmail.ess.barracuda.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754125AbdKNNbX (ORCPT ); Tue, 14 Nov 2017 08:31:23 -0500 Received: from MIPSMAIL01.mipstec.com (mailrelay.mips.com [12.201.5.28]) by mx1401.ess.rzc.cudaops.com (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NO); Tue, 14 Nov 2017 13:31:11 +0000 Received: from mredfearn-linux.mipstec.com (10.150.130.83) by MIPSMAIL01.mipstec.com (10.20.43.31) with Microsoft SMTP Server (TLS) id 14.3.361.1; Tue, 14 Nov 2017 05:29:24 -0800 From: Matt Redfearn To: Ralf Baechle , James Hogan CC: , Matt Redfearn , , Thomas Gleixner , Philippe Ombredanne , Kate Stewart , Greg Kroah-Hartman Subject: [PATCH] MIPS: ath25: Avoid undefined early_serial_setup() without SERIAL_8250_CONSOLE Date: Tue, 14 Nov 2017 13:29:17 +0000 Message-ID: <1510666157-27252-1-git-send-email-matt.redfearn@mips.com> X-Mailer: git-send-email 2.7.4 MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.150.130.83] X-BESS-ID: 1510666270-321457-20023-78747-2 X-BESS-VER: 2017.14-r1710272128 X-BESS-Apparent-Source-IP: 12.201.5.28 X-BESS-Outbound-Spam-Score: 0.00 X-BESS-Outbound-Spam-Report: Code version 3.2, rules version 3.2.2.186914 Rule breakdown below pts rule name description ---- ---------------------- -------------------------------- 0.00 BSF_BESS_OUTBOUND META: BESS Outbound X-BESS-Outbound-Spam-Status: SCORE=0.00 using account:ESS59374 scores of KILL_LEVEL=7.0 tests=BSF_BESS_OUTBOUND X-BESS-BRTS-Status: 1 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Currently MIPS allnoconfig with CONFIG_ATH25=y fails to link due to missing support for early_serial_setup(): LD vmlinux arch/mips/ath25/devices.o: In function ath25_serial_setup': devices.c:(.init.text+0x68): undefined reference to 'early_serial_setup' Rather than adding dependencies to the platform to force inclusion of SERIAL_8250_CONSOLE together with it's dependencies like TTY, HAS_IOMEM, etc, just make ath25_serial_setup() a no-op when the dependency is not selected in the kernel config. Signed-off-by: Matt Redfearn --- arch/mips/ath25/devices.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/mips/ath25/devices.c b/arch/mips/ath25/devices.c index e1156347da53..301a9028273c 100644 --- a/arch/mips/ath25/devices.c +++ b/arch/mips/ath25/devices.c @@ -73,6 +73,7 @@ const char *get_system_type(void) void __init ath25_serial_setup(u32 mapbase, int irq, unsigned int uartclk) { +#ifdef CONFIG_SERIAL_8250_CONSOLE struct uart_port s; memset(&s, 0, sizeof(s)); @@ -85,6 +86,7 @@ void __init ath25_serial_setup(u32 mapbase, int irq, unsigned int uartclk) s.uartclk = uartclk; early_serial_setup(&s); +#endif /* CONFIG_SERIAL_8250_CONSOLE */ } int __init ath25_add_wmac(int nr, u32 base, int irq) -- 2.7.4 From 1584088040363154322@xxx Wed Nov 15 00:01:19 +0000 2017 X-GM-THRID: 1583901091567037028 X-Gmail-Labels: Inbox,Category Forums,HistoricalUnread