From patchwork Thu Nov 12 10:58:55 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Lee Jones X-Patchwork-Id: 324154 Delivered-To: patch@linaro.org Received: by 2002:a05:6e02:5ce:0:0:0:0 with SMTP id l14csp233580ils; Thu, 12 Nov 2020 02:59:32 -0800 (PST) X-Google-Smtp-Source: ABdhPJyZIQQki1711HZDaUONxjZijU+v7P0Wk/vzveDC3ha4TH9ibX6KhZ1qhg6ZmXGP/pMSLcpf X-Received: by 2002:a50:d784:: with SMTP id w4mr4499538edi.201.1605178772068; Thu, 12 Nov 2020 02:59:32 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1605178772; cv=none; d=google.com; s=arc-20160816; b=Qt2FFWZ/GLSCJTtoALZq3jHti0ZpGO8XxqqPloEjx8zjFOEyfAU+9XM2GRlhmxzyPZ fmXmsbA+c4b4f/U/NFvJhOrc6Iao2bncZ40/eHtgW7KT/AQ3A046eq8Z3f8zwLAj40+H 8HMYTLkWZVEjKJt23/9kymHsNm49tBQn71dP8eeDvuxmCLu3Rzkqd/iahdoldNbkMvEs kdcsxALJVzYoTW1CbeQsw8hfK2a9i1fWaCNdPPIBKaGdTlSzZyWwFFEByP8xftsiqhP7 x5pCSOy4WQENiOqpSclBVhdD/HCrWKhDBvF1LCIS83HQvoMVkzkaVBqQMTEOTiOAPTDt YmNg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=4MHJyDo+dkqaA5w+YXjlvk3XVBhsjDZYqsJp3LUhS8A=; b=kHvjkLhZsAfdlZJOSc/mc11sNT619dCJH3Bqb9woT0TN1RiQ9J3qdw/TTA/ZzlJMHV JjXGjpeOyj3biGnk82UBSSmPKVzGairAaWO1PcgTCKrDGFHP1I9Wy6Avfyt2Gl+2lxUA SPJYE4qRC+c2274Z805ZQghb5nEpYuDV46raHhMWgOzJyAWr++eCWKfUZVWyCwM1YteB H4IDBBRh8ia4Wp1qgj3PzMwgjst04fF8G1NJvZ3T/FgoQueJVLB36yt0AKDTRGEyA+vB sGf+zxYTAbmiUDoTjtjz6zgYmJCZHjPz1U/zz/D/ISuVQiSU9scye5iLVoeCNTTyBLL8 E+EA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=KQSSQ3Ix; spf=pass (google.com: domain of linux-serial-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-serial-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id v7si3262358ejg.393.2020.11.12.02.59.31; Thu, 12 Nov 2020 02:59:32 -0800 (PST) Received-SPF: pass (google.com: domain of linux-serial-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=KQSSQ3Ix; spf=pass (google.com: domain of linux-serial-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-serial-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727954AbgKLK7J (ORCPT + 2 others); Thu, 12 Nov 2020 05:59:09 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54556 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727920AbgKLK7E (ORCPT ); Thu, 12 Nov 2020 05:59:04 -0500 Received: from mail-wr1-x443.google.com (mail-wr1-x443.google.com [IPv6:2a00:1450:4864:20::443]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 01753C0617A6 for ; Thu, 12 Nov 2020 02:59:04 -0800 (PST) Received: by mail-wr1-x443.google.com with SMTP id l1so5499772wrb.9 for ; Thu, 12 Nov 2020 02:59:03 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=4MHJyDo+dkqaA5w+YXjlvk3XVBhsjDZYqsJp3LUhS8A=; b=KQSSQ3IxHes0Saggsokj8bCjKruLsA4X//7w68uYX/6pFvJ7su4wLIpBC3gFdlWQjN 1j1Vlo/8+Ll859yHWvPEiVEctu0EqX0rCxdYRqgbWObpqeOIIf/aF5wMW0hH3a6eYOxc SS+k7VN8rM17sSJcS5+p3h30MXt/llycgXhBKQS8OwhZFaG2mfeEktgMbW9lC9EH3/9i Jfy33Gdj60/fpKdjmDAYa9MEU1WEk0S7/pMiwWhVScqgSu71Xq65pnmFEyXUugGS/vsK nZpFJj9gXEytzLZvzlxxwNvlpRksEoQQ3EEwKjSYl5PYIQlw7k4pfPydJcCDxEY8+hPv Mnvg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=4MHJyDo+dkqaA5w+YXjlvk3XVBhsjDZYqsJp3LUhS8A=; b=IVEapjrsy4rftVWlQf30Fk68QB/eSZEuypGOY6lrd/UDHrI6JPOn3pf5wB3Gpo9kVJ kv4UsNxa4UU1gOMwuzLHM30f1KpA2eDaGdHD1iuI9AvP/r3pa+Y+9fyJ+o0CcK8C9CqD QRa7yU6gEciTDRnjZx+nR8W6fFy5p/4ElHA/z48HcjibRKPIE7lfG89DjwhOgD9SeUDc qse3BYcpA7Q0fdWpSHqdTXwW3Lw+5lgXxe5Gfs77jN6jzf0cgtAVJqMOinrxuBB3Oyuv R67y+U3RJFGG9t4OBjMM7CaeNlyyrTOSX0FJYD6z4f2v5uIXJI/0txQqMgz8QSP3qu68 HLVA== X-Gm-Message-State: AOAM531uKlLe5m8Jkg0jyJqv9Fx5YNZO+He4ORYcGOqYQ4Yc7q44ZM7g iyV6/3VE6x3wgs1qt5g4FUchCA== X-Received: by 2002:adf:f04b:: with SMTP id t11mr7092763wro.147.1605178742777; Thu, 12 Nov 2020 02:59:02 -0800 (PST) Received: from dell.default ([91.110.221.159]) by smtp.gmail.com with ESMTPSA id u5sm1167239wro.56.2020.11.12.02.59.01 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 12 Nov 2020 02:59:02 -0800 (PST) From: Lee Jones To: lee.jones@linaro.org Cc: linux-kernel@vger.kernel.org, Greg Kroah-Hartman , Jiri Slaby , Mike Hudson , linux-serial@vger.kernel.org Subject: [PATCH v2 2/4] tty: serial: 8250: 8250_port: Move prototypes to shared location Date: Thu, 12 Nov 2020 10:58:55 +0000 Message-Id: <20201112105857.2078977-3-lee.jones@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20201112105857.2078977-1-lee.jones@linaro.org> References: <20201112105857.2078977-1-lee.jones@linaro.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-serial@vger.kernel.org Fixes the following W=1 kernel build warning(s): drivers/tty/serial/8250/8250_port.c:349:14: warning: no previous prototype for ‘au_serial_in’ [-Wmissing-prototypes] drivers/tty/serial/8250/8250_port.c:359:6: warning: no previous prototype for ‘au_serial_out’ [-Wmissing-prototypes] Cc: Greg Kroah-Hartman Cc: Jiri Slaby Cc: Mike Hudson Cc: linux-serial@vger.kernel.org Signed-off-by: Lee Jones --- drivers/tty/serial/8250/8250_early.c | 3 --- include/linux/serial_8250.h | 5 +++++ 2 files changed, 5 insertions(+), 3 deletions(-) -- 2.25.1 diff --git a/drivers/tty/serial/8250/8250_early.c b/drivers/tty/serial/8250/8250_early.c index 70d7826788f53..c171ce6db6910 100644 --- a/drivers/tty/serial/8250/8250_early.c +++ b/drivers/tty/serial/8250/8250_early.c @@ -204,9 +204,6 @@ OF_EARLYCON_DECLARE(omap8250, "ti,omap4-uart", early_omap8250_setup); #ifdef CONFIG_SERIAL_8250_RT288X -unsigned int au_serial_in(struct uart_port *p, int offset); -void au_serial_out(struct uart_port *p, int offset, int value); - static int __init early_au_setup(struct earlycon_device *dev, const char *opt) { dev->port.serial_in = au_serial_in; diff --git a/include/linux/serial_8250.h b/include/linux/serial_8250.h index 2b70f736b091d..9e655055112d9 100644 --- a/include/linux/serial_8250.h +++ b/include/linux/serial_8250.h @@ -187,4 +187,9 @@ extern void serial8250_set_isa_configurator(void (*v) (int port, struct uart_port *up, u32 *capabilities)); +#ifdef CONFIG_SERIAL_8250_RT288X +unsigned int au_serial_in(struct uart_port *p, int offset); +void au_serial_out(struct uart_port *p, int offset, int value); +#endif + #endif