[linux-next:master 3286/3636] drivers/cpufreq/mediatek-cpufreq.c:741:34: warning: 'mtk_cpufreq_machines' defined but not used

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Rob,

First bad commit (maybe != root cause):

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master
head:   222a3380f92b8791d4eeedf7cd750513ff428adf
commit: c7582ec853427c895d990e0244f19fe22b44a366 [3286/3636] cpufreq: Drop CONFIG_ARM and CONFIG_ARM64 dependency on Arm drivers
config: sh-randconfig-r123-20240808 (https://download.01.org/0day-ci/archive/20240809/202408090714.wcrqU6Pk-lkp@xxxxxxxxx/config)
compiler: sh4-linux-gcc (GCC) 14.1.0
reproduce: (https://download.01.org/0day-ci/archive/20240809/202408090714.wcrqU6Pk-lkp@xxxxxxxxx/reproduce)

If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <lkp@xxxxxxxxx>
| Closes: https://lore.kernel.org/oe-kbuild-all/202408090714.wcrqU6Pk-lkp@xxxxxxxxx/

All warnings (new ones prefixed by >>):

>> drivers/cpufreq/mediatek-cpufreq.c:741:34: warning: 'mtk_cpufreq_machines' defined but not used [-Wunused-const-variable=]
     741 | static const struct of_device_id mtk_cpufreq_machines[] __initconst = {
         |                                  ^~~~~~~~~~~~~~~~~~~~


vim +/mtk_cpufreq_machines +741 drivers/cpufreq/mediatek-cpufreq.c

d3296bb4cafd4b drivers/cpufreq/mediatek-cpufreq.c Jia-Wei Chang              2023-03-24  739  
cf9a2438257da2 drivers/cpufreq/mt8173-cpufreq.c   Daniel Kurtz               2017-03-02  740  /* List of machines supported by this driver */
862e0104f4d1a4 drivers/cpufreq/mediatek-cpufreq.c Sean Wang                  2017-08-09 @741  static const struct of_device_id mtk_cpufreq_machines[] __initconst = {
ead858bd128d4e drivers/cpufreq/mediatek-cpufreq.c Rex-BC Chen                2022-05-05  742  	{ .compatible = "mediatek,mt2701", .data = &mt2701_platform_data },
ead858bd128d4e drivers/cpufreq/mediatek-cpufreq.c Rex-BC Chen                2022-05-05  743  	{ .compatible = "mediatek,mt2712", .data = &mt2701_platform_data },
0883426fd07e39 drivers/cpufreq/mediatek-cpufreq.c AngeloGioacchino Del Regno 2023-03-24  744  	{ .compatible = "mediatek,mt7622", .data = &mt7622_platform_data },
f85534113f5ae9 drivers/cpufreq/mediatek-cpufreq.c Daniel Golle               2023-06-05  745  	{ .compatible = "mediatek,mt7623", .data = &mt7623_platform_data },
b69ec356db1a7c drivers/cpufreq/mediatek-cpufreq.c Sam Shih                   2024-04-19  746  	{ .compatible = "mediatek,mt7988a", .data = &mt7988_platform_data },
d3296bb4cafd4b drivers/cpufreq/mediatek-cpufreq.c Jia-Wei Chang              2023-03-24  747  	{ .compatible = "mediatek,mt8167", .data = &mt8516_platform_data },
ead858bd128d4e drivers/cpufreq/mediatek-cpufreq.c Rex-BC Chen                2022-05-05  748  	{ .compatible = "mediatek,mt817x", .data = &mt2701_platform_data },
ead858bd128d4e drivers/cpufreq/mediatek-cpufreq.c Rex-BC Chen                2022-05-05  749  	{ .compatible = "mediatek,mt8173", .data = &mt2701_platform_data },
ead858bd128d4e drivers/cpufreq/mediatek-cpufreq.c Rex-BC Chen                2022-05-05  750  	{ .compatible = "mediatek,mt8176", .data = &mt2701_platform_data },
0daa47325baee6 drivers/cpufreq/mediatek-cpufreq.c Rex-BC Chen                2022-05-05  751  	{ .compatible = "mediatek,mt8183", .data = &mt8183_platform_data },
39b360102f3ac6 drivers/cpufreq/mediatek-cpufreq.c Jia-Wei Chang              2022-05-05  752  	{ .compatible = "mediatek,mt8186", .data = &mt8186_platform_data },
ead858bd128d4e drivers/cpufreq/mediatek-cpufreq.c Rex-BC Chen                2022-05-05  753  	{ .compatible = "mediatek,mt8365", .data = &mt2701_platform_data },
d3296bb4cafd4b drivers/cpufreq/mediatek-cpufreq.c Jia-Wei Chang              2023-03-24  754  	{ .compatible = "mediatek,mt8516", .data = &mt8516_platform_data },
cf9a2438257da2 drivers/cpufreq/mt8173-cpufreq.c   Daniel Kurtz               2017-03-02  755  	{ }
cf9a2438257da2 drivers/cpufreq/mt8173-cpufreq.c   Daniel Kurtz               2017-03-02  756  };
af6eca06501118 drivers/cpufreq/mediatek-cpufreq.c Pali Rohár                 2020-11-03  757  MODULE_DEVICE_TABLE(of, mtk_cpufreq_machines);
cf9a2438257da2 drivers/cpufreq/mt8173-cpufreq.c   Daniel Kurtz               2017-03-02  758  

:::::: The code at line 741 was first introduced by commit
:::::: 862e0104f4d1a489517cb1075ce974c0a1fd5a97 cpufreq: mediatek: add cleanups with the more generic naming

:::::: TO: Sean Wang <sean.wang@xxxxxxxxxxxx>
:::::: CC: Rafael J. Wysocki <rafael.j.wysocki@xxxxxxxxx>

-- 
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki




[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Bugtraq]     [Linux OMAP]     [Linux MIPS]     [eCos]     [Asterisk Internet PBX]     [Linux API]

  Powered by Linux