From patchwork Sun Feb 12 09:08:43 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Masahiro Yamada X-Patchwork-Id: 93830 Delivered-To: patch@linaro.org Received: by 10.140.20.99 with SMTP id 90csp610031qgi; Sun, 12 Feb 2017 01:09:39 -0800 (PST) X-Received: by 10.28.62.144 with SMTP id l138mr13558478wma.50.1486890579327; Sun, 12 Feb 2017 01:09:39 -0800 (PST) Return-Path: Received: from theia.denx.de (theia.denx.de. [85.214.87.163]) by mx.google.com with ESMTP id q4si702965wma.39.2017.02.12.01.09.38; Sun, 12 Feb 2017 01:09:39 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of u-boot-bounces@lists.denx.de designates 85.214.87.163 as permitted sender) client-ip=85.214.87.163; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@nifty.com; spf=pass (google.com: best guess record for domain of u-boot-bounces@lists.denx.de designates 85.214.87.163 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id A15F5A79DF; Sun, 12 Feb 2017 10:09:38 +0100 (CET) Received: from theia.denx.de ([127.0.0.1]) by localhost (theia.denx.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id mxqitKfPVSqf; Sun, 12 Feb 2017 10:09:38 +0100 (CET) Received: from theia.denx.de (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 17F5EA79DB; Sun, 12 Feb 2017 10:09:38 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id C4F9BA79D9 for ; Sun, 12 Feb 2017 10:09:33 +0100 (CET) Received: from theia.denx.de ([127.0.0.1]) by localhost (theia.denx.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id WUDO4zPvVEjm for ; Sun, 12 Feb 2017 10:09:33 +0100 (CET) X-policyd-weight: NOT_IN_SBL_XBL_SPAMHAUS=-1.5 NOT_IN_SPAMCOP=-1.5 NOT_IN_BL_NJABL=-1.5 (only DNSBL check requested) Received: from conuserg-11.nifty.com (conuserg-11.nifty.com [210.131.2.78]) by theia.denx.de (Postfix) with ESMTPS id 1B524A79D5 for ; Sun, 12 Feb 2017 10:09:28 +0100 (CET) Received: from grover.sesame (FL1-111-169-71-157.osk.mesh.ad.jp [111.169.71.157]) (authenticated) by conuserg-11.nifty.com with ESMTP id v1C98lr3012027; Sun, 12 Feb 2017 18:08:50 +0900 DKIM-Filter: OpenDKIM Filter v2.10.3 conuserg-11.nifty.com v1C98lr3012027 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nifty.com; s=dec2015msa; t=1486890530; bh=MoYmqQgjxjCr0+twdwLhH56UMH2YsZ6KAz/Qmte7W/Q=; h=From:To:Cc:Subject:Date:From; b=v2BBoEv45wiqfNDSFC9f94PoYAMnQzVPEzNC+9QcfibV+Qtj6/lOwOPuJNFfbS4Tc mWxjN43oecdtJd7khyDtpaT1vf8ba0Oa4gAyhn997qivgVJo24IPp5EZZ2HVvfY0d4 ecnuNmoV3vObrLiUEZpR1bIYHK0RK2YXugOQHgKwmlyf3verq4W08vg25YrCMr/3A5 /QWB+jg1coQkLb5uLrNPgptlzrUYLaOfTQ/FY7ajn9KN/UEGt4mpLpb5cmi6QXjQJG TdjcFoIyR1KU4diTKs/3dYqQdHkzqWkppg1HekAUooWYFkkKIDVlhqTr5HFW9vEuoO VSci442MTacfQ== X-Nifty-SrcIP: [111.169.71.157] From: Masahiro Yamada To: u-boot@lists.denx.de Date: Sun, 12 Feb 2017 18:08:43 +0900 Message-Id: <1486890524-26918-1-git-send-email-yamada.masahiro@socionext.com> X-Mailer: git-send-email 2.7.4 Cc: Marek Vasut , Hans de Goede , Andre Przywara , Stefan Roese , Jagan Teki Subject: [U-Boot] [PATCH] tiny-printf: add static to locally used functions X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.15 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" These two functions are only used in lib/tiny-printf.c . Signed-off-by: Masahiro Yamada --- lib/tiny-printf.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) -- 2.7.4 _______________________________________________ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot Tested-by: Andreas Färber Reviewed-by: Stefan Roese diff --git a/lib/tiny-printf.c b/lib/tiny-printf.c index dfa8432..6def8f9 100644 --- a/lib/tiny-printf.c +++ b/lib/tiny-printf.c @@ -22,7 +22,7 @@ struct printf_info { void (*putc)(struct printf_info *info, char ch); }; -void putc_normal(struct printf_info *info, char ch) +static void putc_normal(struct printf_info *info, char ch) { putc(ch); } @@ -52,7 +52,7 @@ static void div_out(struct printf_info *info, unsigned long *num, out_dgt(info, dgt); } -int _vprintf(struct printf_info *info, const char *fmt, va_list va) +static int _vprintf(struct printf_info *info, const char *fmt, va_list va) { char ch; char *p;