[linux-next:master 3429/4317] drivers/soc/qcom/socinfo.c:593: undefined reference to `qcom_smem_get'

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

 



tree:   https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master
head:   07dc787be2316e243a16a33d0a9b734cd9365bd3
commit: 9ec092d2feb69045dd289845024301fb91c064ee [3429/4317] net: ethernet: stmmac: add missing sgmii configure for ipq806x
config: arm-randconfig-r031-20220619 (https://download.01.org/0day-ci/archive/20220621/202206211203.ckBsU9wJ-lkp@xxxxxxxxx/config)
compiler: arm-linux-gnueabi-gcc (GCC) 11.3.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/next/linux-next.git/commit/?id=9ec092d2feb69045dd289845024301fb91c064ee
        git remote add linux-next https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git
        git fetch --no-tags linux-next master
        git checkout 9ec092d2feb69045dd289845024301fb91c064ee
        # save the config file
        mkdir build_dir && cp config build_dir/.config
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.3.0 make.cross W=1 O=build_dir ARCH=arm SHELL=/bin/bash

If you fix the issue, kindly add following tag where applicable
Reported-by: kernel test robot <lkp@xxxxxxxxx>

All errors (new ones prefixed by >>):

   arm-linux-gnueabi-ld: drivers/soc/qcom/socinfo.o: in function `socinfo_debugfs_init':
>> drivers/soc/qcom/socinfo.c:593: undefined reference to `qcom_smem_get'
   arm-linux-gnueabi-ld: drivers/soc/qcom/socinfo.o: in function `qcom_socinfo_probe':
   drivers/soc/qcom/socinfo.c:629: undefined reference to `qcom_smem_get'
   pahole: .tmp_vmlinux.btf: No such file or directory
   .btf.vmlinux.bin.o: file not recognized: file format not recognized

Kconfig warnings: (for reference only)
   WARNING: unmet direct dependencies detected for QCOM_SOCINFO
   Depends on QCOM_SMEM
   Selected by
   - DWMAC_IPQ806X && NETDEVICES && ETHERNET && NET_VENDOR_STMICRO && STMMAC_ETH && STMMAC_PLATFORM && OF && (ARCH_QCOM || COMPILE_TEST


vim +593 drivers/soc/qcom/socinfo.c

cd23d1405be666 Vaishali Thakkar    2019-07-24  470  
9c84c1e78634bd Vaishali Thakkar    2019-07-24  471  static void socinfo_debugfs_init(struct qcom_socinfo *qcom_socinfo,
734c78e7febf87 Dmitry Baryshkov    2020-12-22  472  				 struct socinfo *info, size_t info_size)
9c84c1e78634bd Vaishali Thakkar    2019-07-24  473  {
cd23d1405be666 Vaishali Thakkar    2019-07-24  474  	struct smem_image_version *versions;
cd23d1405be666 Vaishali Thakkar    2019-07-24  475  	struct dentry *dentry;
9c84c1e78634bd Vaishali Thakkar    2019-07-24  476  	size_t size;
cd23d1405be666 Vaishali Thakkar    2019-07-24  477  	int i;
734c78e7febf87 Dmitry Baryshkov    2020-12-22  478  	unsigned int num_pmics;
734c78e7febf87 Dmitry Baryshkov    2020-12-22  479  	unsigned int pmic_array_offset;
9c84c1e78634bd Vaishali Thakkar    2019-07-24  480  
9c84c1e78634bd Vaishali Thakkar    2019-07-24  481  	qcom_socinfo->dbg_root = debugfs_create_dir("qcom_socinfo", NULL);
9c84c1e78634bd Vaishali Thakkar    2019-07-24  482  
9c84c1e78634bd Vaishali Thakkar    2019-07-24  483  	qcom_socinfo->info.fmt = __le32_to_cpu(info->fmt);
9c84c1e78634bd Vaishali Thakkar    2019-07-24  484  
8333b2c26c2f38 Stephen Boyd        2020-12-15  485  	debugfs_create_x32("info_fmt", 0444, qcom_socinfo->dbg_root,
50f85d16200eee Dmitry Baryshkov    2020-05-25  486  			   &qcom_socinfo->info.fmt);
50f85d16200eee Dmitry Baryshkov    2020-05-25  487  
9c84c1e78634bd Vaishali Thakkar    2019-07-24  488  	switch (qcom_socinfo->info.fmt) {
0f12fe7f1e660a Dmitry Baryshkov    2020-05-25  489  	case SOCINFO_VERSION(0, 15):
0f12fe7f1e660a Dmitry Baryshkov    2020-05-25  490  		qcom_socinfo->info.nmodem_supported = __le32_to_cpu(info->nmodem_supported);
0f12fe7f1e660a Dmitry Baryshkov    2020-05-25  491  
8333b2c26c2f38 Stephen Boyd        2020-12-15  492  		debugfs_create_u32("nmodem_supported", 0444, qcom_socinfo->dbg_root,
0f12fe7f1e660a Dmitry Baryshkov    2020-05-25  493  				   &qcom_socinfo->info.nmodem_supported);
df561f6688fef7 Gustavo A. R. Silva 2020-08-23  494  		fallthrough;
0f12fe7f1e660a Dmitry Baryshkov    2020-05-25  495  	case SOCINFO_VERSION(0, 14):
0f12fe7f1e660a Dmitry Baryshkov    2020-05-25  496  		qcom_socinfo->info.num_clusters = __le32_to_cpu(info->num_clusters);
0f12fe7f1e660a Dmitry Baryshkov    2020-05-25  497  		qcom_socinfo->info.ncluster_array_offset = __le32_to_cpu(info->ncluster_array_offset);
0f12fe7f1e660a Dmitry Baryshkov    2020-05-25  498  		qcom_socinfo->info.num_defective_parts = __le32_to_cpu(info->num_defective_parts);
0f12fe7f1e660a Dmitry Baryshkov    2020-05-25  499  		qcom_socinfo->info.ndefective_parts_array_offset = __le32_to_cpu(info->ndefective_parts_array_offset);
0f12fe7f1e660a Dmitry Baryshkov    2020-05-25  500  
8333b2c26c2f38 Stephen Boyd        2020-12-15  501  		debugfs_create_u32("num_clusters", 0444, qcom_socinfo->dbg_root,
0f12fe7f1e660a Dmitry Baryshkov    2020-05-25  502  				   &qcom_socinfo->info.num_clusters);
8333b2c26c2f38 Stephen Boyd        2020-12-15  503  		debugfs_create_u32("ncluster_array_offset", 0444, qcom_socinfo->dbg_root,
0f12fe7f1e660a Dmitry Baryshkov    2020-05-25  504  				   &qcom_socinfo->info.ncluster_array_offset);
8333b2c26c2f38 Stephen Boyd        2020-12-15  505  		debugfs_create_u32("num_defective_parts", 0444, qcom_socinfo->dbg_root,
0f12fe7f1e660a Dmitry Baryshkov    2020-05-25  506  				   &qcom_socinfo->info.num_defective_parts);
8333b2c26c2f38 Stephen Boyd        2020-12-15  507  		debugfs_create_u32("ndefective_parts_array_offset", 0444, qcom_socinfo->dbg_root,
0f12fe7f1e660a Dmitry Baryshkov    2020-05-25  508  				   &qcom_socinfo->info.ndefective_parts_array_offset);
df561f6688fef7 Gustavo A. R. Silva 2020-08-23  509  		fallthrough;
0f12fe7f1e660a Dmitry Baryshkov    2020-05-25  510  	case SOCINFO_VERSION(0, 13):
0f12fe7f1e660a Dmitry Baryshkov    2020-05-25  511  		qcom_socinfo->info.nproduct_id = __le32_to_cpu(info->nproduct_id);
0f12fe7f1e660a Dmitry Baryshkov    2020-05-25  512  
8333b2c26c2f38 Stephen Boyd        2020-12-15  513  		debugfs_create_u32("nproduct_id", 0444, qcom_socinfo->dbg_root,
0f12fe7f1e660a Dmitry Baryshkov    2020-05-25  514  				   &qcom_socinfo->info.nproduct_id);
0f12fe7f1e660a Dmitry Baryshkov    2020-05-25  515  		DEBUGFS_ADD(info, chip_id);
df561f6688fef7 Gustavo A. R. Silva 2020-08-23  516  		fallthrough;
9c84c1e78634bd Vaishali Thakkar    2019-07-24  517  	case SOCINFO_VERSION(0, 12):
9c84c1e78634bd Vaishali Thakkar    2019-07-24  518  		qcom_socinfo->info.chip_family =
9c84c1e78634bd Vaishali Thakkar    2019-07-24  519  			__le32_to_cpu(info->chip_family);
9c84c1e78634bd Vaishali Thakkar    2019-07-24  520  		qcom_socinfo->info.raw_device_family =
9c84c1e78634bd Vaishali Thakkar    2019-07-24  521  			__le32_to_cpu(info->raw_device_family);
9c84c1e78634bd Vaishali Thakkar    2019-07-24  522  		qcom_socinfo->info.raw_device_num =
9c84c1e78634bd Vaishali Thakkar    2019-07-24  523  			__le32_to_cpu(info->raw_device_num);
9c84c1e78634bd Vaishali Thakkar    2019-07-24  524  
8333b2c26c2f38 Stephen Boyd        2020-12-15  525  		debugfs_create_x32("chip_family", 0444, qcom_socinfo->dbg_root,
9c84c1e78634bd Vaishali Thakkar    2019-07-24  526  				   &qcom_socinfo->info.chip_family);
8333b2c26c2f38 Stephen Boyd        2020-12-15  527  		debugfs_create_x32("raw_device_family", 0444,
9c84c1e78634bd Vaishali Thakkar    2019-07-24  528  				   qcom_socinfo->dbg_root,
9c84c1e78634bd Vaishali Thakkar    2019-07-24  529  				   &qcom_socinfo->info.raw_device_family);
8333b2c26c2f38 Stephen Boyd        2020-12-15  530  		debugfs_create_x32("raw_device_number", 0444,
9c84c1e78634bd Vaishali Thakkar    2019-07-24  531  				   qcom_socinfo->dbg_root,
9c84c1e78634bd Vaishali Thakkar    2019-07-24  532  				   &qcom_socinfo->info.raw_device_num);
df561f6688fef7 Gustavo A. R. Silva 2020-08-23  533  		fallthrough;
9c84c1e78634bd Vaishali Thakkar    2019-07-24  534  	case SOCINFO_VERSION(0, 11):
734c78e7febf87 Dmitry Baryshkov    2020-12-22  535  		num_pmics = le32_to_cpu(info->num_pmics);
734c78e7febf87 Dmitry Baryshkov    2020-12-22  536  		pmic_array_offset = le32_to_cpu(info->pmic_array_offset);
734c78e7febf87 Dmitry Baryshkov    2020-12-22  537  		if (pmic_array_offset + 2 * num_pmics * sizeof(u32) <= info_size)
734c78e7febf87 Dmitry Baryshkov    2020-12-22  538  			DEBUGFS_ADD(info, pmic_model_array);
734c78e7febf87 Dmitry Baryshkov    2020-12-22  539  		fallthrough;
9c84c1e78634bd Vaishali Thakkar    2019-07-24  540  	case SOCINFO_VERSION(0, 10):
9c84c1e78634bd Vaishali Thakkar    2019-07-24  541  	case SOCINFO_VERSION(0, 9):
9c84c1e78634bd Vaishali Thakkar    2019-07-24  542  		qcom_socinfo->info.foundry_id = __le32_to_cpu(info->foundry_id);
9c84c1e78634bd Vaishali Thakkar    2019-07-24  543  
8333b2c26c2f38 Stephen Boyd        2020-12-15  544  		debugfs_create_u32("foundry_id", 0444, qcom_socinfo->dbg_root,
9c84c1e78634bd Vaishali Thakkar    2019-07-24  545  				   &qcom_socinfo->info.foundry_id);
df561f6688fef7 Gustavo A. R. Silva 2020-08-23  546  		fallthrough;
9c84c1e78634bd Vaishali Thakkar    2019-07-24  547  	case SOCINFO_VERSION(0, 8):
9c84c1e78634bd Vaishali Thakkar    2019-07-24  548  	case SOCINFO_VERSION(0, 7):
9c84c1e78634bd Vaishali Thakkar    2019-07-24  549  		DEBUGFS_ADD(info, pmic_model);
9c84c1e78634bd Vaishali Thakkar    2019-07-24  550  		DEBUGFS_ADD(info, pmic_die_rev);
df561f6688fef7 Gustavo A. R. Silva 2020-08-23  551  		fallthrough;
9c84c1e78634bd Vaishali Thakkar    2019-07-24  552  	case SOCINFO_VERSION(0, 6):
9c84c1e78634bd Vaishali Thakkar    2019-07-24  553  		qcom_socinfo->info.hw_plat_subtype =
9c84c1e78634bd Vaishali Thakkar    2019-07-24  554  			__le32_to_cpu(info->hw_plat_subtype);
9c84c1e78634bd Vaishali Thakkar    2019-07-24  555  
8333b2c26c2f38 Stephen Boyd        2020-12-15  556  		debugfs_create_u32("hardware_platform_subtype", 0444,
9c84c1e78634bd Vaishali Thakkar    2019-07-24  557  				   qcom_socinfo->dbg_root,
9c84c1e78634bd Vaishali Thakkar    2019-07-24  558  				   &qcom_socinfo->info.hw_plat_subtype);
df561f6688fef7 Gustavo A. R. Silva 2020-08-23  559  		fallthrough;
9c84c1e78634bd Vaishali Thakkar    2019-07-24  560  	case SOCINFO_VERSION(0, 5):
9c84c1e78634bd Vaishali Thakkar    2019-07-24  561  		qcom_socinfo->info.accessory_chip =
9c84c1e78634bd Vaishali Thakkar    2019-07-24  562  			__le32_to_cpu(info->accessory_chip);
9c84c1e78634bd Vaishali Thakkar    2019-07-24  563  
8333b2c26c2f38 Stephen Boyd        2020-12-15  564  		debugfs_create_u32("accessory_chip", 0444,
9c84c1e78634bd Vaishali Thakkar    2019-07-24  565  				   qcom_socinfo->dbg_root,
9c84c1e78634bd Vaishali Thakkar    2019-07-24  566  				   &qcom_socinfo->info.accessory_chip);
df561f6688fef7 Gustavo A. R. Silva 2020-08-23  567  		fallthrough;
9c84c1e78634bd Vaishali Thakkar    2019-07-24  568  	case SOCINFO_VERSION(0, 4):
9c84c1e78634bd Vaishali Thakkar    2019-07-24  569  		qcom_socinfo->info.plat_ver = __le32_to_cpu(info->plat_ver);
9c84c1e78634bd Vaishali Thakkar    2019-07-24  570  
8333b2c26c2f38 Stephen Boyd        2020-12-15  571  		debugfs_create_u32("platform_version", 0444,
9c84c1e78634bd Vaishali Thakkar    2019-07-24  572  				   qcom_socinfo->dbg_root,
9c84c1e78634bd Vaishali Thakkar    2019-07-24  573  				   &qcom_socinfo->info.plat_ver);
df561f6688fef7 Gustavo A. R. Silva 2020-08-23  574  		fallthrough;
9c84c1e78634bd Vaishali Thakkar    2019-07-24  575  	case SOCINFO_VERSION(0, 3):
9c84c1e78634bd Vaishali Thakkar    2019-07-24  576  		qcom_socinfo->info.hw_plat = __le32_to_cpu(info->hw_plat);
9c84c1e78634bd Vaishali Thakkar    2019-07-24  577  
8333b2c26c2f38 Stephen Boyd        2020-12-15  578  		debugfs_create_u32("hardware_platform", 0444,
9c84c1e78634bd Vaishali Thakkar    2019-07-24  579  				   qcom_socinfo->dbg_root,
9c84c1e78634bd Vaishali Thakkar    2019-07-24  580  				   &qcom_socinfo->info.hw_plat);
df561f6688fef7 Gustavo A. R. Silva 2020-08-23  581  		fallthrough;
9c84c1e78634bd Vaishali Thakkar    2019-07-24  582  	case SOCINFO_VERSION(0, 2):
9c84c1e78634bd Vaishali Thakkar    2019-07-24  583  		qcom_socinfo->info.raw_ver  = __le32_to_cpu(info->raw_ver);
9c84c1e78634bd Vaishali Thakkar    2019-07-24  584  
8333b2c26c2f38 Stephen Boyd        2020-12-15  585  		debugfs_create_u32("raw_version", 0444, qcom_socinfo->dbg_root,
9c84c1e78634bd Vaishali Thakkar    2019-07-24  586  				   &qcom_socinfo->info.raw_ver);
df561f6688fef7 Gustavo A. R. Silva 2020-08-23  587  		fallthrough;
9c84c1e78634bd Vaishali Thakkar    2019-07-24  588  	case SOCINFO_VERSION(0, 1):
9c84c1e78634bd Vaishali Thakkar    2019-07-24  589  		DEBUGFS_ADD(info, build_id);
9c84c1e78634bd Vaishali Thakkar    2019-07-24  590  		break;
9c84c1e78634bd Vaishali Thakkar    2019-07-24  591  	}
cd23d1405be666 Vaishali Thakkar    2019-07-24  592  
cd23d1405be666 Vaishali Thakkar    2019-07-24 @593  	versions = qcom_smem_get(QCOM_SMEM_HOST_ANY, SMEM_IMAGE_VERSION_TABLE,
cd23d1405be666 Vaishali Thakkar    2019-07-24  594  				 &size);
cd23d1405be666 Vaishali Thakkar    2019-07-24  595  
cd23d1405be666 Vaishali Thakkar    2019-07-24  596  	for (i = 0; i < ARRAY_SIZE(socinfo_image_names); i++) {
cd23d1405be666 Vaishali Thakkar    2019-07-24  597  		if (!socinfo_image_names[i])
cd23d1405be666 Vaishali Thakkar    2019-07-24  598  			continue;
cd23d1405be666 Vaishali Thakkar    2019-07-24  599  
cd23d1405be666 Vaishali Thakkar    2019-07-24  600  		dentry = debugfs_create_dir(socinfo_image_names[i],
cd23d1405be666 Vaishali Thakkar    2019-07-24  601  					    qcom_socinfo->dbg_root);
8333b2c26c2f38 Stephen Boyd        2020-12-15  602  		debugfs_create_file("name", 0444, dentry, &versions[i],
cd23d1405be666 Vaishali Thakkar    2019-07-24  603  				    &qcom_image_name_ops);
8333b2c26c2f38 Stephen Boyd        2020-12-15  604  		debugfs_create_file("variant", 0444, dentry, &versions[i],
cd23d1405be666 Vaishali Thakkar    2019-07-24  605  				    &qcom_image_variant_ops);
8333b2c26c2f38 Stephen Boyd        2020-12-15  606  		debugfs_create_file("oem", 0444, dentry, &versions[i],
cd23d1405be666 Vaishali Thakkar    2019-07-24  607  				    &qcom_image_oem_ops);
cd23d1405be666 Vaishali Thakkar    2019-07-24  608  	}
9c84c1e78634bd Vaishali Thakkar    2019-07-24  609  }
9c84c1e78634bd Vaishali Thakkar    2019-07-24  610  

:::::: The code at line 593 was first introduced by commit
:::::: cd23d1405be666a7c43045abe339bc1acaa3400b soc: qcom: socinfo: Expose image information

:::::: TO: Vaishali Thakkar <vaishali.thakkar@xxxxxxxxxx>
:::::: CC: Bjorn Andersson <bjorn.andersson@xxxxxxxxxx>

-- 
0-DAY CI Kernel Test Service
https://01.org/lkp




[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