From: Jingoo Han <jg1.han@samsung.com>
To: 'Mark Brown' <broonie@kernel.org>, 'Olof Johansson' <olof@lixom.net>
Cc: 'Doug Anderson' <dianders@chromium.org>,
'Kukjin Kim' <kgene.kim@samsung.com>,
'Tomasz Figa' <t.figa@samsung.com>,
linux-samsung-soc@vger.kernel.org,
linaro-kernel@lists.linaro.org,
linux-arm-kernel@lists.infradead.org,
'Mark Brown' <broonie@linaro.org>,
'Jingoo Han' <jg1.han@samsung.com>
Subject: Re: [PATCH] ARM: topology: Staticise non-exported symbols
Date: Wed, 11 Dec 2013 07:48:54 +0900 [thread overview]
Message-ID: <001201cef5fa$00b90e40$022b2ac0$%han@samsung.com> (raw)
In-Reply-To: <1386673649-15181-2-git-send-email-broonie@kernel.org>
On Tuesday, December 10, 2013 8:07 PM, Mark Brown wrote:
>
> From: Mark Brown <broonie@linaro.org>
>
> These symbols are only referenced in this source file so can be made
> static, and the efficiency table is constant data so can be declared as
> such. This avoids polluting the global namespace and fixes warnings
> from sparse.
>
> The function arch_scale_freq_power() is still not prototyped or static,
> this is a separate issue as this is overriding a weak symbol from the
> scheduler which neglects to provide a prototype.
>
> Signed-off-by: Mark Brown <broonie@linaro.org>
It looks good.
Reviewed-by: Jingoo Han <jg1.han@samsung.com>
Best regards,
Jingoo Han
> ---
> arch/arm/kernel/topology.c | 12 ++++++------
> 1 file changed, 6 insertions(+), 6 deletions(-)
>
> diff --git a/arch/arm/kernel/topology.c b/arch/arm/kernel/topology.c
> index 85a87370f144..0bc94b1fd1ae 100644
> --- a/arch/arm/kernel/topology.c
> +++ b/arch/arm/kernel/topology.c
> @@ -68,16 +68,16 @@ struct cpu_efficiency {
> * Processors that are not defined in the table,
> * use the default SCHED_POWER_SCALE value for cpu_scale.
> */
> -struct cpu_efficiency table_efficiency[] = {
> +static const struct cpu_efficiency table_efficiency[] = {
> {"arm,cortex-a15", 3891},
> {"arm,cortex-a7", 2048},
> {NULL, },
> };
>
> -unsigned long *__cpu_capacity;
> +static unsigned long *__cpu_capacity;
> #define cpu_capacity(cpu) __cpu_capacity[cpu]
>
> -unsigned long middle_capacity = 1;
> +static unsigned long middle_capacity = 1;
>
> /*
> * Iterate all CPUs' descriptor in DT and compute the efficiency
> @@ -89,7 +89,7 @@ unsigned long middle_capacity = 1;
> */
> static void __init parse_dt_topology(void)
> {
> - struct cpu_efficiency *cpu_eff;
> + const struct cpu_efficiency *cpu_eff;
> struct device_node *cn = NULL;
> unsigned long min_capacity = (unsigned long)(-1);
> unsigned long max_capacity = 0;
> @@ -158,7 +158,7 @@ static void __init parse_dt_topology(void)
> * boot. The update of all CPUs is in O(n^2) for heteregeneous system but the
> * function returns directly for SMP system.
> */
> -void update_cpu_power(unsigned int cpu)
> +static void update_cpu_power(unsigned int cpu)
> {
> if (!cpu_capacity(cpu))
> return;
> @@ -185,7 +185,7 @@ const struct cpumask *cpu_coregroup_mask(int cpu)
> return &cpu_topology[cpu].core_sibling;
> }
>
> -void update_siblings_masks(unsigned int cpuid)
> +static void update_siblings_masks(unsigned int cpuid)
> {
> struct cputopo_arm *cpu_topo, *cpuid_topo = &cpu_topology[cpuid];
> int cpu;
> --
> 1.8.5.1
>
> --
> To unsubscribe from this list: send the line "unsubscribe linux-samsung-soc" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
next prev parent reply other threads:[~2013-12-10 22:48 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-12-10 11:07 [PATCH 1/3] ARM: dts: Leave Exynos5250 SPI controller disabled by default Mark Brown
2013-12-10 11:07 ` [PATCH] ARM: topology: Staticise non-exported symbols Mark Brown
2013-12-10 22:48 ` Jingoo Han [this message]
2013-12-10 11:07 ` [PATCH 2/3] ARM: dts: Disable I2C controllers by default on Exynos5250 Mark Brown
2013-12-10 11:07 ` [PATCH 3/3] ARM: dts: Rename Exynos5250 ChromeOS common file to have exynos prefix Mark Brown
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='001201cef5fa$00b90e40$022b2ac0$%han@samsung.com' \
--to=jg1.han@samsung.com \
--cc=broonie@kernel.org \
--cc=broonie@linaro.org \
--cc=dianders@chromium.org \
--cc=kgene.kim@samsung.com \
--cc=linaro-kernel@lists.linaro.org \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-samsung-soc@vger.kernel.org \
--cc=olof@lixom.net \
--cc=t.figa@samsung.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox