All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] cpufreq: tegra194: Staticize struct tegra_cpufreq_soc instances
@ 2022-07-18  2:05 Viresh Kumar
  2022-07-18  5:35 ` Sumit Gupta
  0 siblings, 1 reply; 2+ messages in thread
From: Viresh Kumar @ 2022-07-18  2:05 UTC (permalink / raw)
  To: Rafael J. Wysocki, Viresh Kumar, Thierry Reding, Jonathan Hunter,
	Sumit Gupta
  Cc: linux-pm, Vincent Guittot, kernel test robot, linux-tegra, linux-kernel

Fix sparse warnings by marking these structures static.

Fixes: 273bc890a2a8 ("cpufreq: tegra194: Add support for Tegra234")
Reported-by: kernel test robot <lkp@intel.com>
Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
---
 drivers/cpufreq/tegra194-cpufreq.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/cpufreq/tegra194-cpufreq.c b/drivers/cpufreq/tegra194-cpufreq.c
index 2a6a98764a8c..1216046cf4c2 100644
--- a/drivers/cpufreq/tegra194-cpufreq.c
+++ b/drivers/cpufreq/tegra194-cpufreq.c
@@ -162,7 +162,7 @@ static struct tegra_cpufreq_ops tegra234_cpufreq_ops = {
 	.set_cpu_ndiv = tegra234_set_cpu_ndiv,
 };
 
-const struct tegra_cpufreq_soc tegra234_cpufreq_soc = {
+static const struct tegra_cpufreq_soc tegra234_cpufreq_soc = {
 	.ops = &tegra234_cpufreq_ops,
 	.actmon_cntr_base = 0x9000,
 	.maxcpus_per_cluster = 4,
@@ -430,7 +430,7 @@ static struct tegra_cpufreq_ops tegra194_cpufreq_ops = {
 	.set_cpu_ndiv = tegra194_set_cpu_ndiv,
 };
 
-const struct tegra_cpufreq_soc tegra194_cpufreq_soc = {
+static const struct tegra_cpufreq_soc tegra194_cpufreq_soc = {
 	.ops = &tegra194_cpufreq_ops,
 	.maxcpus_per_cluster = 2,
 };
-- 
2.31.1.272.g89b43f80a514


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] cpufreq: tegra194: Staticize struct tegra_cpufreq_soc instances
  2022-07-18  2:05 [PATCH] cpufreq: tegra194: Staticize struct tegra_cpufreq_soc instances Viresh Kumar
@ 2022-07-18  5:35 ` Sumit Gupta
  0 siblings, 0 replies; 2+ messages in thread
From: Sumit Gupta @ 2022-07-18  5:35 UTC (permalink / raw)
  To: Viresh Kumar, Rafael J. Wysocki, Thierry Reding, Jonathan Hunter
  Cc: linux-pm, Vincent Guittot, kernel test robot, linux-tegra,
	linux-kernel, Sumit Gupta



On 18/07/22 07:35, Viresh Kumar wrote:
> External email: Use caution opening links or attachments
> 
> 
> Fix sparse warnings by marking these structures static.
> 
> Fixes: 273bc890a2a8 ("cpufreq: tegra194: Add support for Tegra234")
> Reported-by: kernel test robot <lkp@intel.com>
> Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>

Reviewed-by: Sumit Gupta <sumitg@nvidia.com>

> ---
>   drivers/cpufreq/tegra194-cpufreq.c | 4 ++--
>   1 file changed, 2 insertions(+), 2 deletions(-)
> 
> diff --git a/drivers/cpufreq/tegra194-cpufreq.c b/drivers/cpufreq/tegra194-cpufreq.c
> index 2a6a98764a8c..1216046cf4c2 100644
> --- a/drivers/cpufreq/tegra194-cpufreq.c
> +++ b/drivers/cpufreq/tegra194-cpufreq.c
> @@ -162,7 +162,7 @@ static struct tegra_cpufreq_ops tegra234_cpufreq_ops = {
>          .set_cpu_ndiv = tegra234_set_cpu_ndiv,
>   };
> 
> -const struct tegra_cpufreq_soc tegra234_cpufreq_soc = {
> +static const struct tegra_cpufreq_soc tegra234_cpufreq_soc = {
>          .ops = &tegra234_cpufreq_ops,
>          .actmon_cntr_base = 0x9000,
>          .maxcpus_per_cluster = 4,
> @@ -430,7 +430,7 @@ static struct tegra_cpufreq_ops tegra194_cpufreq_ops = {
>          .set_cpu_ndiv = tegra194_set_cpu_ndiv,
>   };
> 
> -const struct tegra_cpufreq_soc tegra194_cpufreq_soc = {
> +static const struct tegra_cpufreq_soc tegra194_cpufreq_soc = {
>          .ops = &tegra194_cpufreq_ops,
>          .maxcpus_per_cluster = 2,
>   };
> --
> 2.31.1.272.g89b43f80a514
> 

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2022-07-18  5:35 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-07-18  2:05 [PATCH] cpufreq: tegra194: Staticize struct tegra_cpufreq_soc instances Viresh Kumar
2022-07-18  5:35 ` Sumit Gupta

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.