Skip to contentSkip to conversation

drivers/cpufreq/apple-soc-cpufreq.c:279:54-55: attr: first occurrence line 284, second occurrence line 291 (fwd)

PATCH New Julia Lawall 1 participant 1 message May 3, 2022

lore
Share & tools
lore
#0 lore raw

PATCH 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 <[email protected]>
To: kbuild(a)lists.01.org
Cc: lkp(a)intel.com, Julia Lawall <[email protected]>
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(a)lists.01.org
BCC: lkp(a)intel.com
CC: linux-kernel(a)vger.kernel.org
TO: Hector Martin <[email protected]>

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(a)intel.com/config)
compiler: aarch64-linux-gcc (GCC) 11.3.0

If you fix the issue, kindly add following tag as appropriate

cocci warnings: (new ones prefixed by >>)

Quoted 1 line
Quoted 1 line

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

Signature · 2 lines
0-DAY CI Kernel Test Service
https://01.org/lkp