From patchwork Thu Aug 6 18:20:21 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 247532 Delivered-To: patch@linaro.org Received: by 2002:a92:cc90:0:0:0:0:0 with SMTP id x16csp1747509ilo; Thu, 6 Aug 2020 11:42:20 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz+IsAjVdHUcRCnCdUnq7b/VWf37nZzDXryHTg1qMwe+vb2rcKJ80+ch0BzvY5Q+5w3SLKv X-Received: by 2002:a17:906:dbf4:: with SMTP id yd20mr5628220ejb.369.1596739340611; Thu, 06 Aug 2020 11:42:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1596739340; cv=none; d=google.com; s=arc-20160816; b=uk1V/rVCgmahuCdwDTwIe8akpK075g5qfIsnxyRaM5qxdmf/yMf7Fu0R84YSznVFAb flV0bGnFpmmeuQBRMkeACYuirNsJtgOmGu4cCdF9i25DvJtyJrCZ7vxJwmzeY/DONt89 nvaJTKoG+6DB+UB07OzG3qAYp34DYvv5xsYcvfWVjuCBgLOliLhPWE5QkW8T7YUhNcpC uoLiFBaPQH3WZMcKijrKV++6SzPPH4It48muvlF+QSOSQYrQ89qKAmsdxiUDx0/5tved hYLcwYTZvRLkFBYe4rY7wT1YuwiKTuM4OpbOmTfFc+KI8THNXGE7oZzhQkbNO3rjbyBE KFfw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature; bh=nElDFQA7t5lFRO8HlM6KpcLaUXMWt8Iv7WAcu6s5B9g=; b=XlNzgHK/6zV+k8Igs51o3ERgcxf1jlvNiBhElH8nUKE7llDdlXixQC8ql+7+Yi7y4X kh6zEsm3Gvuz1K/h+lkeRU+pV0Y2GHKGsDcvIeX70IbFaTIVE8Q1ntSZMY7r3Vh9lOKm xlYw6dM3/dy6M1hdKQEl1R/fxDOtuhVAndVxhoEEyH2RFsbhXlIen9f+QlhauwChmuRo It0TGhieHaO06dQgrR7ek4QLtypy8RrvtXRsbPDgBZ+Xxr2KP7JyeZ4MqE5hQDz3nImB mU5xg48JsukpIPZhe8cHwMF4kobjD7oeE8qjyK+ubbjhPKqciCzh1fXitzLu00mSP9SM qbwQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=myqjfk5T; spf=pass (google.com: domain of linux-samsung-soc-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-samsung-soc-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id g22si3756724ejd.159.2020.08.06.11.42.20; Thu, 06 Aug 2020 11:42:20 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-samsung-soc-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=@kernel.org header.s=default header.b=myqjfk5T; spf=pass (google.com: domain of linux-samsung-soc-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-samsung-soc-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729729AbgHFSl5 (ORCPT + 4 others); Thu, 6 Aug 2020 14:41:57 -0400 Received: from mail.kernel.org ([198.145.29.99]:50238 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728279AbgHFSXb (ORCPT ); Thu, 6 Aug 2020 14:23:31 -0400 Received: from localhost.localdomain (unknown [194.230.155.117]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 7680622CF7; Thu, 6 Aug 2020 18:21:54 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1596738116; bh=jkHktbppRvONf+xJVWmfSCc2eQC8JATnpI2A2T7cDPw=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=myqjfk5TqieOfDTqf9vLXeOC0RvfTRnK4oPV3KF2Mi25rXjpnyj89EYEB/pv3E6oD hX+zM779/ialBivqyBVc5q9adJbuO7yXflyYpaJyjYiFP0b4Ky4Q9mBCUgof7rc4uz lDAEWR85hJEmUil1JhdfzQKn8uqDhADiCt+ymd5c= From: Krzysztof Kozlowski To: linux-kernel@vger.kernel.org Cc: Arnd Bergmann , Krzysztof Kozlowski , Russell King , Kukjin Kim , linux-arm-kernel@lists.infradead.org, linux-samsung-soc@vger.kernel.org Subject: [PATCH v2 04/41] ARM: s3c24xx: iotiming: make functions static Date: Thu, 6 Aug 2020 20:20:21 +0200 Message-Id: <20200806182059.2431-4-krzk@kernel.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20200806181932.2253-1-krzk@kernel.org> References: <20200806181932.2253-1-krzk@kernel.org> Sender: linux-samsung-soc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-samsung-soc@vger.kernel.org From: Arnd Bergmann 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 Signed-off-by: Krzysztof Kozlowski --- arch/arm/mach-s3c24xx/iotiming-s3c2410.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) -- 2.17.1 diff --git a/arch/arm/mach-s3c24xx/iotiming-s3c2410.c b/arch/arm/mach-s3c24xx/iotiming-s3c2410.c index 9f90aaf70bf3..39081c41958c 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;