Received: by 10.223.164.202 with SMTP id h10csp683705wrb; Tue, 14 Nov 2017 08:01:44 -0800 (PST) X-Google-Smtp-Source: AGs4zMZ9eLHF/FANldImavRnc3guStWoUMiuQvIi8bIaaB1H0JemTHn4IT4L0QdinNG0QM2yJBf+ X-Received: by 10.159.254.4 with SMTP id r4mr13079520pls.229.1510675304598; Tue, 14 Nov 2017 08:01:44 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1510675304; cv=none; d=google.com; s=arc-20160816; b=pIdD3AfuZLyU4A842AwCoJQYoNmw2jtxWBhJuQVnAD9JSoyqztGT1TWh9M8LOyrEvM lB5gi3IFZjhCv9QnUxChTy8I/bYub3kxoxlCwFd7KA8pEmdh5fzYwePIG8+Fn5MesFZr 3ofxRu/qYYySM5dfdYdrIF1RncEamVkj6LLX/LPJ0PNihWYqigzrTL9Fd3TDp4gE6/TS B4XmgfYZS7Ew9/ns1Zm8YfyPJxVQaily+1oRguKpCiBcJEtXBj9fH8liyGkH+AOtCNk4 gQrOzjGkWkgQly3PIeYkC+TZdD0K4HlW4dQvSgqkz9ioFR6qQ127FPxK2XoNm53+AaaQ sCMw== 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=lmU680nXSLK/04gOGbKDNIjadfQILFJRzKbfnKjPpaU=; b=nulkc8aYeFLa4ceYUGLGYSM4dJN0Fru0H5AY2sGbcw+nWeN4ixbY0seX+iR8lsyrpw vBapH2lYatY6/rELJzg0wyKYNfGLUEyc2D70NRulUOpNLmJxyvoBD0tZ100fhJMllG83 Jtk/+CJkio048dkMSwQE82C7IJ9ZxosqkxMmkyxOlnwbQv1yHHZIaK8yOrJ7UUhoNpF1 1gEclN8sEbgyS0PHC6yJQ7qzPjvr6NVzUwHzaeHaaE6xPLk5vM5lBAV1BFauYZy5SOTN lDBQuHn50wPVnbdQFZiA7DF4Z7TYk7Dqy1/8183ECSbY9RoqfIsYABOwW2AY+2wjTim/ GhGA== 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 y3si15461304pgp.202.2017.11.14.08.01.31; Tue, 14 Nov 2017 08:01:44 -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 S1755550AbdKNPqj (ORCPT + 88 others); Tue, 14 Nov 2017 10:46:39 -0500 Received: from 19pmail.ess.barracuda.com ([64.235.154.231]:35379 "EHLO 19pmail.ess.barracuda.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754872AbdKNPqe (ORCPT ); Tue, 14 Nov 2017 10:46:34 -0500 Received: from MIPSMAIL01.mipstec.com (mailrelay.mips.com [12.201.5.28]) by mx1403.ess.rzc.cudaops.com (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NO); Tue, 14 Nov 2017 15:46:29 +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 07:44:59 -0800 From: Matt Redfearn To: Ralf Baechle , James Hogan CC: , Matt Redfearn , Subject: [PATCH 1/2] MIPS: RB532: Avoid undefined early_serial_setup() without SERIAL_8250_CONSOLE Date: Tue, 14 Nov 2017 15:44:22 +0000 Message-ID: <1510674263-14065-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: 1510674389-321459-22243-73736-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.186917 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_MIKROTIK_RB532=y fails to link due to missing support for early_serial_setup(): LD vmlinux arch/mips/rb532/serial.o: In function `setup_serial_port': serial.c:(.init.text+0x14): 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 exclude arch/mips/rb532/serial.c from the build when it's dependency is not selected in the kernel config. Reported-by: Ralf Baechle Signed-off-by: Matt Redfearn --- arch/mips/rb532/Makefile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/arch/mips/rb532/Makefile b/arch/mips/rb532/Makefile index efdecdb6e3ea..8186afca2234 100644 --- a/arch/mips/rb532/Makefile +++ b/arch/mips/rb532/Makefile @@ -2,4 +2,6 @@ # Makefile for the RB532 board specific parts of the kernel # -obj-y += irq.o time.o setup.o serial.o prom.o gpio.o devices.o +obj-$(CONFIG_SERIAL_8250_CONSOLE) += serial.o + +obj-y += irq.o time.o setup.o prom.o gpio.o devices.o -- 2.7.4 From 1584087775223355607@xxx Tue Nov 14 23:57:06 +0000 2017 X-GM-THRID: 1583901006045663523 X-Gmail-Labels: Inbox,Category Forums,HistoricalUnread