From patchwork Thu Jan 24 11:16:29 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alexandru Elisei X-Patchwork-Id: 10778749 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id B64F313BF for ; Thu, 24 Jan 2019 11:17:05 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id A6C792EA87 for ; Thu, 24 Jan 2019 11:17:05 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 9AB212EB83; Thu, 24 Jan 2019 11:17:05 +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=-7.9 required=2.0 tests=BAYES_00,MAILING_LIST_MULTI, RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 4E61A2EA87 for ; Thu, 24 Jan 2019 11:17:05 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727622AbfAXLRC (ORCPT ); Thu, 24 Jan 2019 06:17:02 -0500 Received: from usa-sjc-mx-foss1.foss.arm.com ([217.140.101.70]:54770 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726014AbfAXLRB (ORCPT ); Thu, 24 Jan 2019 06:17:01 -0500 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.72.51.249]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 97C5B165C; Thu, 24 Jan 2019 03:17:01 -0800 (PST) Received: from login12.euhpc.arm.com (login12.euhpc.arm.com [10.6.27.168]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPA id 7F8443F237; Thu, 24 Jan 2019 03:17:00 -0800 (PST) From: Alexandru Elisei To: kvm@vger.kernel.org Cc: drjones@redhat.com, kvmarm@lists.cs.columbia.edu, andre.przywara@arm.com, vladimir.murzin@arm.com Subject: [kvm-unit-tests PATCH 2/7] lib: arm: Remove warning about uart0_base mismatch Date: Thu, 24 Jan 2019 11:16:29 +0000 Message-Id: <20190124111634.4727-3-alexandru.elisei@arm.com> X-Mailer: git-send-email 2.17.0 In-Reply-To: <20190124111634.4727-1-alexandru.elisei@arm.com> References: <20190124111634.4727-1-alexandru.elisei@arm.com> Sender: kvm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: kvm@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP A warning is displayed if uart0_base is different from what the code expects qemu to generate for the pl011 UART in the device tree. However, now we support the ns16550a UART emulated by kvmtool, which has a different address. This leads to the warning being displayed even though the UART is configured and working as expected. Now that we support multiple UARTs, the warning serves no purpose, so remove it. Signed-off-by: Alexandru Elisei --- lib/arm/io.c | 6 ------ 1 file changed, 6 deletions(-) diff --git a/lib/arm/io.c b/lib/arm/io.c index 35fc05aeb4db..87435150f73e 100644 --- a/lib/arm/io.c +++ b/lib/arm/io.c @@ -61,12 +61,6 @@ static void uart0_init(void) } uart0_base = ioremap(base.addr, base.size); - - if (uart0_base != (u8 *)UART_EARLY_BASE) { - printf("WARNING: early print support may not work. " - "Found uart at %p, but early base is %p.\n", - uart0_base, (u8 *)UART_EARLY_BASE); - } } void io_init(void)