From patchwork Thu Sep 1 11:43:31 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Baoyou Xie X-Patchwork-Id: 75197 Delivered-To: patch@linaro.org Received: by 10.140.29.8 with SMTP id a8csp249027qga; Thu, 1 Sep 2016 04:45:15 -0700 (PDT) X-Received: by 10.66.123.42 with SMTP id lx10mr25541812pab.95.1472730315014; Thu, 01 Sep 2016 04:45:15 -0700 (PDT) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id xq1si5316976pab.11.2016.09.01.04.45.14; Thu, 01 Sep 2016 04:45:15 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-serial-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org; spf=pass (google.com: best guess record for domain of linux-serial-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-serial-owner@vger.kernel.org; dmarc=fail (p=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755004AbcIALpO (ORCPT + 2 others); Thu, 1 Sep 2016 07:45:14 -0400 Received: from mail-pf0-f170.google.com ([209.85.192.170]:34333 "EHLO mail-pf0-f170.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754657AbcIALpM (ORCPT ); Thu, 1 Sep 2016 07:45:12 -0400 Received: by mail-pf0-f170.google.com with SMTP id p64so30705185pfb.1 for ; Thu, 01 Sep 2016 04:44:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id; bh=e2AZaP2cOWhQwWxPdHojdys+O0L1MjR/bfFDlw44Ysw=; b=bP/GuqFVsuYX6wB9CpBYWSqjF8r87nJBbthvUZ+LZeq6tKYr2Og4+/7EyEKQ8j8vVt QkongnzKJPOoJ614ku90Ju9m4k9WtCABHnISx/zLFpmfO3+0sKPJp4zIYwwqxwcMb3Rg 86mUH3hhm/HelUskQU7cr+wQ0S49fM1s3oZWI= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=e2AZaP2cOWhQwWxPdHojdys+O0L1MjR/bfFDlw44Ysw=; b=B/qkYLgyoe5n5EiN2dnSdG0FSyRJS/oPVIuJhzsL8E5GMrRTQwgwnQSvu7V52ZL/P8 CJFCtdcK2uZnfYYWvznuMLvHITHVVO+SLcijS2qKsxbkR5Gh0plQL4u5v4AfKQ9n1SlS 6gl32doES1fdyikibiri/PRbMmLFi2QOmBLy08wIP5kKtjrXs+XO0/NHyDoZjGgX+Vls SKghdCTwjd8SiABk/qjaujEDZoN+amw3Wj7RiBlfStpQs6cHCCZYc7+wDPe1uJQleA8e JQF0p9dE449nfUdce9OruZAJi0T5o37qb3OcJMkDrQarUYokEY0GXlKJA7WHeS0wmbo9 CGoQ== X-Gm-Message-State: AE9vXwMuC7U5IJvPX9dUXAWvwKvWXxtoQpXRxTk4ObzJC5cwRsB3abA1bTkT1613JYA7LYQE X-Received: by 10.98.137.211 with SMTP id n80mr5640628pfk.80.1472730255756; Thu, 01 Sep 2016 04:44:15 -0700 (PDT) Received: from localhost.localdomain ([104.237.91.82]) by smtp.gmail.com with ESMTPSA id 184sm7119688pfg.20.2016.09.01.04.44.07 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 01 Sep 2016 04:44:15 -0700 (PDT) From: Baoyou Xie To: gregkh@linuxfoundation.org, jslaby@suse.com Cc: linux-serial@vger.kernel.org, linux-kernel@vger.kernel.org, arnd@arndb.de, baoyou.xie@linaro.org, xie.baoyou@zte.com.cn Subject: [PATCH] tty/serial: mark __init early_smh_setup() static Date: Thu, 1 Sep 2016 19:43:31 +0800 Message-Id: <1472730211-17288-1-git-send-email-baoyou.xie@linaro.org> X-Mailer: git-send-email 2.7.4 Sender: linux-serial-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-serial@vger.kernel.org We get 1 warning when building kernel with W=1: drivers/tty/serial/earlycon-arm-semihost.c:56:12: warning: no previous prototype for 'early_smh_setup' [-Wmissing-prototypes] In fact, this function is only used in the file in which it is declared and don't need a declaration, but can be made static. so this patch marks this function with 'static'. Signed-off-by: Baoyou Xie --- drivers/tty/serial/earlycon-arm-semihost.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) -- 2.7.4 -- To unsubscribe from this list: send the line "unsubscribe linux-serial" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html diff --git a/drivers/tty/serial/earlycon-arm-semihost.c b/drivers/tty/serial/earlycon-arm-semihost.c index 383db10..6bbeb69 100644 --- a/drivers/tty/serial/earlycon-arm-semihost.c +++ b/drivers/tty/serial/earlycon-arm-semihost.c @@ -53,7 +53,8 @@ static void smh_write(struct console *con, const char *s, unsigned n) uart_console_write(&dev->port, s, n, smh_putc); } -int __init early_smh_setup(struct earlycon_device *device, const char *opt) +static int +__init early_smh_setup(struct earlycon_device *device, const char *opt) { device->con->write = smh_write; return 0;