[arm64:for-next/perf 12/15] drivers/perf/marvell_cn10k_ddr_pmu.c:723:35: error: 'cn10k_ddr_pmu_of_match' undeclared here (not in a function); did you mean 'cn10k_ddr_pmu_driver'?

kernel test robot lkp at intel.com
Tue Mar 8 22:09:36 PST 2022


Hi Bharat,

First bad commit (maybe != root cause):

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-next/perf
head:   0162052214c7e850566ecef41003603c26667b5d
commit: 68fa55f0e05ce371c4b5de7932d9f570d61bf791 [12/15] perf/marvell: cn10k DDR perf event core ownership
config: s390-randconfig-r033-20220309 (https://download.01.org/0day-ci/archive/20220309/202203091424.Vfe8J4W9-lkp@intel.com/config)
compiler: s390-linux-gcc (GCC) 11.2.0
reproduce (this is a W=1 build):
        wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
        chmod +x ~/bin/make.cross
        # https://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git/commit/?id=68fa55f0e05ce371c4b5de7932d9f570d61bf791
        git remote add arm64 https://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git
        git fetch --no-tags arm64 for-next/perf
        git checkout 68fa55f0e05ce371c4b5de7932d9f570d61bf791
        # save the config file to linux build tree
        mkdir build_dir
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross O=build_dir ARCH=s390 SHELL=/bin/bash drivers/perf/

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp at intel.com>

All errors (new ones prefixed by >>):

>> drivers/perf/marvell_cn10k_ddr_pmu.c:723:35: error: 'cn10k_ddr_pmu_of_match' undeclared here (not in a function); did you mean 'cn10k_ddr_pmu_driver'?
     723 |                 .of_match_table = cn10k_ddr_pmu_of_match,
         |                                   ^~~~~~~~~~~~~~~~~~~~~~
         |                                   cn10k_ddr_pmu_driver


vim +723 drivers/perf/marvell_cn10k_ddr_pmu.c

7cf83e222bce0f Bharat Bhushan 2022-02-11  719  
7cf83e222bce0f Bharat Bhushan 2022-02-11  720  static struct platform_driver cn10k_ddr_pmu_driver = {
7cf83e222bce0f Bharat Bhushan 2022-02-11  721  	.driver	= {
7cf83e222bce0f Bharat Bhushan 2022-02-11  722  		.name   = "cn10k-ddr-pmu",
7cf83e222bce0f Bharat Bhushan 2022-02-11 @723  		.of_match_table = cn10k_ddr_pmu_of_match,
7cf83e222bce0f Bharat Bhushan 2022-02-11  724  		.suppress_bind_attrs = true,
7cf83e222bce0f Bharat Bhushan 2022-02-11  725  	},
7cf83e222bce0f Bharat Bhushan 2022-02-11  726  	.probe		= cn10k_ddr_perf_probe,
7cf83e222bce0f Bharat Bhushan 2022-02-11  727  	.remove		= cn10k_ddr_perf_remove,
7cf83e222bce0f Bharat Bhushan 2022-02-11  728  };
7cf83e222bce0f Bharat Bhushan 2022-02-11  729  

:::::: The code at line 723 was first introduced by commit
:::::: 7cf83e222bce0f135f9c2714a49623cbb9fbde29 perf/marvell: CN10k DDR performance monitor support

:::::: TO: Bharat Bhushan <bbhushan2 at marvell.com>
:::::: CC: Will Deacon <will at kernel.org>

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org



More information about the linux-arm-kernel mailing list