[<prev] [next>] [day] [month] [year] [list]
Message-ID: <alpine.DEB.2.22.394.2205032339181.2886@hadrien>
Date: Tue, 3 May 2022 23:39:55 +0200 (CEST)
From: Julia Lawall <julia.lawall@...ia.fr>
To: Hector Martin <marcan@...can.st>, linux-kernel@...r.kernel.org,
kbuild-all@...ts.01.org
Subject: [asahilinux:bits/130-cpufreq 3/4] drivers/cpufreq/apple-soc-cpufreq.c:279:54-55:
attr: first occurrence line 284, second occurrence line 291 (fwd)
There are two initializations of the attr field.
julia
---------- Forwarded message ----------
Date: Tue, 3 May 2022 19:37:32 +0800
From: kernel test robot <lkp@...el.com>
To: kbuild@...ts.01.org
Cc: lkp@...el.com, Julia Lawall <julia.lawall@...6.fr>
Subject: [asahilinux:bits/130-cpufreq 3/4]
drivers/cpufreq/apple-soc-cpufreq.c:279:54-55: attr: first occurrence line
284, second occurrence line 291
CC: kbuild-all@...ts.01.org
BCC: lkp@...el.com
CC: linux-kernel@...r.kernel.org
TO: Hector Martin <marcan@...can.st>
tree: https://github.com/AsahiLinux/linux bits/130-cpufreq
head: b7105141d60ddab11c03955ae5389fc7f2a369da
commit: 3580ed2b7ae9f66539990a47a90aa71308dab079 [3/4] cpufreq: apple-soc: Add new driver to control Apple SoC CPU P-states
:::::: branch date: 20 hours ago
:::::: commit date: 20 hours ago
config: arm64-randconfig-c023-20220501 (https://download.01.org/0day-ci/archive/20220503/202205031934.CchZIQh3-lkp@intel.com/config)
compiler: aarch64-linux-gcc (GCC) 11.3.0
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@...el.com>
Reported-by: Julia Lawall <julia.lawall@...6.fr>
cocci warnings: (new ones prefixed by >>)
>> drivers/cpufreq/apple-soc-cpufreq.c:279:54-55: attr: first occurrence line 284, second occurrence line 291
vim +279 drivers/cpufreq/apple-soc-cpufreq.c
3580ed2b7ae9f66 Hector Martin 2022-02-15 278
3580ed2b7ae9f66 Hector Martin 2022-02-15 @279 static struct cpufreq_driver apple_soc_cpufreq_driver = {
3580ed2b7ae9f66 Hector Martin 2022-02-15 280 .name = "apple-cpufreq",
3580ed2b7ae9f66 Hector Martin 2022-02-15 281 .flags = CPUFREQ_HAVE_GOVERNOR_PER_POLICY |
3580ed2b7ae9f66 Hector Martin 2022-02-15 282 CPUFREQ_NEED_INITIAL_FREQ_CHECK | CPUFREQ_IS_COOLING_DEV,
3580ed2b7ae9f66 Hector Martin 2022-02-15 283 .verify = cpufreq_generic_frequency_table_verify,
3580ed2b7ae9f66 Hector Martin 2022-02-15 @284 .attr = cpufreq_generic_attr,
3580ed2b7ae9f66 Hector Martin 2022-02-15 285 .get = apple_soc_cpufreq_get_rate,
3580ed2b7ae9f66 Hector Martin 2022-02-15 286 .init = apple_soc_cpufreq_init,
3580ed2b7ae9f66 Hector Martin 2022-02-15 287 .exit = apple_soc_cpufreq_exit,
3580ed2b7ae9f66 Hector Martin 2022-02-15 288 .target_index = apple_soc_cpufreq_set_target,
3580ed2b7ae9f66 Hector Martin 2022-02-15 289 .fast_switch = apple_soc_cpufreq_fast_switch,
3580ed2b7ae9f66 Hector Martin 2022-02-15 290 .register_em = cpufreq_register_em_with_opp,
3580ed2b7ae9f66 Hector Martin 2022-02-15 @291 .attr = apple_soc_cpufreq_hw_attr,
3580ed2b7ae9f66 Hector Martin 2022-02-15 292 };
3580ed2b7ae9f66 Hector Martin 2022-02-15 293
--
0-DAY CI Kernel Test Service
https://01.org/lkp
Powered by blists - more mailing lists