From patchwork Thu Oct 10 20:30:16 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnd Bergmann X-Patchwork-Id: 175878 Delivered-To: patch@linaro.org Received: by 2002:a92:7e96:0:0:0:0:0 with SMTP id q22csp2819118ill; Thu, 10 Oct 2019 13:54:18 -0700 (PDT) X-Google-Smtp-Source: APXvYqyBd6sdlAA6/zcmg6aY6QacBUHN90emu2wh9iLtQkyqL7j1Cqo8ph13j7MwgXgH3t3EaJJ6 X-Received: by 2002:a17:906:194d:: with SMTP id b13mr10148768eje.199.1570740858068; Thu, 10 Oct 2019 13:54:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1570740858; cv=none; d=google.com; s=arc-20160816; b=Gu/LKtRHVsnG03TuY4H58cyKJBQGB4AhW4xdfXCqHuIMqLk4PkKASQhm7fa0mW24qo WY5qaEp/umo3zzeyUWCz7A06d+TsfntSWPYN6IzY0/EDZQ613oItpndNBsdKSFCpfEeQ OFEm3GWEojI6ImFwAKLKepyfge41g8nu2k2dpkYcOPCGv1emgal3GrE80TuY43FQqjdW 65Qc431hQg4tLZMM+0x+fMl4jyftseQq2xv9B63CPKd3cywTDcoyxUqX5xZptzclGXur K8XTO8WYNAMWHizind+sy5gPwAelFhllJXLPZQIjF9IFzLJVE3tD+Tsq6HnYzPYvkCaM CJDg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=Kr/inwUtH+0Shf0qS3k9zglpy92+C+28RBVlHM6X5Lc=; b=X2r8HHhsPvgs+mVjmKahp0CMbjJkzpEkOW3jpVcV+2o/PltZQBeORld8+Yvp0oPRpZ cXlqD8CRNEdHQ2UI7+6aKRQN+zt+SclTmVXsxEzEwo4EV72U9r3QysAJb5z836l94jgL yXa1YYtr0orUTDyZDRGV+TP5v7T4lUTobHGkALIRF5QkaTqIWNgKDfF8JiCT1N347cq3 g5CK5qUBv5yzKMfb2/muMJlqunmFeYgclMLDOFXS7vc5BD+YSOL62mCWBHb57V4y0fuF VwpQjrlZwIBjWwwFoZj8isw4F0FtAEfVd7SPpY5ZJ5llGkTH3wIXFh5BFcrJbF8vd3VC ssOg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-samsung-soc-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-samsung-soc-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 a30si4630828eda.39.2019.10.10.13.54.17; Thu, 10 Oct 2019 13:54:18 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-samsung-soc-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-samsung-soc-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-samsung-soc-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726533AbfJJUyR (ORCPT + 3 others); Thu, 10 Oct 2019 16:54:17 -0400 Received: from mout.kundenserver.de ([212.227.126.133]:52207 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726942AbfJJUyR (ORCPT ); Thu, 10 Oct 2019 16:54:17 -0400 Received: from threadripper.lan ([149.172.19.189]) by mrelayeu.kundenserver.de (mreue012 [212.227.15.129]) with ESMTPA (Nemesis) id 1MlbPO-1hrc9U25Ao-00ikbg; Thu, 10 Oct 2019 22:54:06 +0200 From: Arnd Bergmann To: Kukjin Kim , Krzysztof Kozlowski Cc: linux-samsung-soc@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linus.walleij@linaro.org, Arnd Bergmann , linux-kernel@vger.kernel.org Subject: [PATCH 32/36] ARM: s3c: iotiming: make functions static Date: Thu, 10 Oct 2019 22:30:16 +0200 Message-Id: <20191010203043.1241612-32-arnd@arndb.de> X-Mailer: git-send-email 2.20.0 In-Reply-To: <20191010203043.1241612-1-arnd@arndb.de> References: <20191010202802.1132272-1-arnd@arndb.de> <20191010203043.1241612-1-arnd@arndb.de> MIME-Version: 1.0 X-Provags-ID: V03:K1:IDS5D8xeFEIPLv2XemOLk8aPKE5MJCSpKyizbsrVtR1rHKSIuNe oynjcyJToRV7HM5CiPyhXXx1gd7MYwJwn56K7cVeMHR79p6X6uWBItLeKxev8cYtU71WSpw s/ZlpvkJ2LP0kSX5kpDArRN69d2ka/3HhaHoW27h0UwAaY69tdFbYNi9ER9FMUSzt2oiBpD ZKOUguObpd5wwtu3PGgqw== X-Spam-Flag: NO X-UI-Out-Filterresults: notjunk:1; V03:K0:k/Oy6Jsk1sg=:7GOrKqTzFA7deDNTAELnR/ 6/9HId5aBuVM4PYqRHAYiihb98KdHmGHyJC3v9UNx2WwRo9vm3dUowkB3zmVgHgpg0G52hGIT kr6JPlJsZaAhVVgH6P4ugppXKiOaVu34ed+iLLRQGFy8gNrWDulrqyHVEBBMw4oxWubhQOrAV RUP32EyglpJqkFFrTgIoDvlR75R2W2RB/3qtCXseHL6ca529w9E8piTNwihaka5Qn+lsk3eAg y27IkO9U+YRCG6OSMx5odus0LE6b9BhQi0kMdsZObJ35O/2hA4kJJWa9MFhvXFwbLxCDAgXpH iInpkBMP7e4DqP22TOTZPXbqVYPsY1di34or4KmNCaDTKtBnjPHJ3XlFyCv5JIuWgb/f329Ii sIfjtK4Y0+2p+/FLXk9c3kb2OU9eCL0kLDzkS0mPp7K6ox5tB21EF4mT2N4mqVt7rtPB2bP3V RbnI4hUzk6jO3qZqrcUPq3TNACaVyLeM9lIk63+AxRMBNnFFol3LHJYv881fF+R+6XY8uY/uv eZcKJ2M90vyJp0V+s+9hDIqfuT6wxTVMDHZLy/uRcmyF9QumuTIBsutsWCkb6ZkbnLKtSQvsc f/NTm29ar52ag5i0D01SRHB6D3alb0oRoqzmO3n0u+G9a03jbA7/qZQrOBiuUWlEw8is71u+h kbZmDiBmYRb9zX6mb3zm173iuXLwZykriIrNHWt0XhyZfeToVLBpN7CqGtsTQ4/i7XYWs+KpN 9RruzEizeSRdMqyD3/rZ92yLN0cH/I0IUlyWOz00pvj0KLUymNuoD123UOvCW2447+pO3jdwL vcmRXm5xR0CnDfhFSpnlwP4yupCcSPV6thbk7DG8GZWmb2rU6YOBhW+qFn4sNvdIkZJH2eK9z Db4CdlgowBxAJ1/PZXBA== Sender: linux-samsung-soc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-samsung-soc@vger.kernel.org There are two functions in this file that are never called from anywhere else, so they should be static to allow the compiler to optimize it better and not pollute the global namespace. Signed-off-by: Arnd Bergmann --- arch/arm/mach-s3c24xx/iotiming-s3c2410.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) -- 2.20.0 diff --git a/arch/arm/mach-s3c24xx/iotiming-s3c2410.c b/arch/arm/mach-s3c24xx/iotiming-s3c2410.c index 5b3b16dd0ce8..5d85c259f328 100644 --- a/arch/arm/mach-s3c24xx/iotiming-s3c2410.c +++ b/arch/arm/mach-s3c24xx/iotiming-s3c2410.c @@ -129,7 +129,7 @@ static unsigned int calc_0124(unsigned int cyc, unsigned long hclk_tns, return 0; } -int calc_tacp(unsigned int cyc, unsigned long hclk, unsigned long *v) +static int calc_tacp(unsigned int cyc, unsigned long hclk, unsigned long *v) { /* Currently no support for Tacp calculations. */ return 0; @@ -288,8 +288,8 @@ static unsigned int get_0124(unsigned long hclk_tns, * Given the BANKCON setting in @bt and the current frequency settings * in @cfg, update the cycle timing information. */ -void s3c2410_iotiming_getbank(struct s3c_cpufreq_config *cfg, - struct s3c2410_iobank_timing *bt) +static void s3c2410_iotiming_getbank(struct s3c_cpufreq_config *cfg, + struct s3c2410_iobank_timing *bt) { unsigned long bankcon = bt->bankcon; unsigned long hclk = cfg->freq.hclk_tns;