All of lore.kernel.org
 help / color / mirror / Atom feed
* [freescale-fslc:5.10-2.1.x-imx 4711/9999] drivers/regulator/scmi-regulator.c:237:19: error: 'struct regulator_desc' has no member named 'of_match_full_name'
@ 2022-01-07 17:02 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2022-01-07 17:02 UTC (permalink / raw)
  To: kbuild-all

[-- Attachment #1: Type: text/plain, Size: 4007 bytes --]

Hi Cristian,

FYI, the error/warning still remains.

tree:   https://github.com/Freescale/linux-fslc 5.10-2.1.x-imx
head:   e730e691a1edb8c38004d81b070529224e8df714
commit: 367122823dab7b07ad76fb94a06c7a3030fe57b6 [4711/9999] regulator: add SCMI driver
config: arm-randconfig-r006-20220106 (https://download.01.org/0day-ci/archive/20220108/202201080023.ohTuyBsJ-lkp(a)intel.com/config)
compiler: arm-linux-gnueabi-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://github.com/Freescale/linux-fslc/commit/367122823dab7b07ad76fb94a06c7a3030fe57b6
        git remote add freescale-fslc https://github.com/Freescale/linux-fslc
        git fetch --no-tags freescale-fslc 5.10-2.1.x-imx
        git checkout 367122823dab7b07ad76fb94a06c7a3030fe57b6
        # 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=arm SHELL=/bin/bash drivers/firmware/imx/ drivers/regulator/

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

All errors (new ones prefixed by >>):

   drivers/regulator/scmi-regulator.c: In function 'scmi_regulator_common_init':
>> drivers/regulator/scmi-regulator.c:237:19: error: 'struct regulator_desc' has no member named 'of_match_full_name'
     237 |         sreg->desc.of_match_full_name = true;
         |                   ^

Kconfig warnings: (for reference only)
   WARNING: unmet direct dependencies detected for QCOM_SCM
   Depends on (ARM || ARM64) && HAVE_ARM_SMCCC
   Selected by
   - ARM_QCOM_SPM_CPUIDLE && CPU_IDLE && (ARM || ARM64) && (ARCH_QCOM || COMPILE_TEST && !ARM64 && MMU


vim +237 drivers/regulator/scmi-regulator.c

   203	
   204	static int scmi_regulator_common_init(struct scmi_regulator *sreg)
   205	{
   206		int ret;
   207		const struct scmi_handle *handle = sreg->sdev->handle;
   208		struct device *dev = &sreg->sdev->dev;
   209		const struct scmi_voltage_info *vinfo;
   210	
   211		vinfo = handle->voltage_ops->info_get(handle, sreg->id);
   212		if (!vinfo) {
   213			dev_warn(dev, "Failure to get voltage domain %d\n",
   214				 sreg->id);
   215			return -ENODEV;
   216		}
   217	
   218		/*
   219		 * Regulator framework does not fully support negative voltages
   220		 * so we discard any voltage domain reported as supporting negative
   221		 * voltages: as a consequence each levels_uv entry is guaranteed to
   222		 * be non-negative from here on.
   223		 */
   224		if (vinfo->negative_volts_allowed) {
   225			dev_warn(dev, "Negative voltages NOT supported...skip %s\n",
   226				 sreg->of_node->full_name);
   227			return -EOPNOTSUPP;
   228		}
   229	
   230		sreg->desc.name = devm_kasprintf(dev, GFP_KERNEL, "%s", vinfo->name);
   231		if (!sreg->desc.name)
   232			return -ENOMEM;
   233	
   234		sreg->desc.id = sreg->id;
   235		sreg->desc.type = REGULATOR_VOLTAGE;
   236		sreg->desc.owner = THIS_MODULE;
 > 237		sreg->desc.of_match_full_name = true;
   238		sreg->desc.of_match = sreg->of_node->full_name;
   239		sreg->desc.regulators_node = "regulators";
   240		if (vinfo->segmented)
   241			ret = scmi_config_linear_regulator_mappings(sreg, vinfo);
   242		else
   243			ret = scmi_config_discrete_regulator_mappings(sreg, vinfo);
   244		if (ret)
   245			return ret;
   246	
   247		/*
   248		 * Using the scmi device here to have DT searched from Voltage
   249		 * protocol node down.
   250		 */
   251		sreg->conf.dev = dev;
   252	
   253		/* Store for later retrieval via rdev_get_drvdata() */
   254		sreg->conf.driver_data = sreg;
   255	
   256		return 0;
   257	}
   258	

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

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2022-01-07 17:02 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-01-07 17:02 [freescale-fslc:5.10-2.1.x-imx 4711/9999] drivers/regulator/scmi-regulator.c:237:19: error: 'struct regulator_desc' has no member named 'of_match_full_name' kernel test robot

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.