Hi Cristian,
FYI, the error/warning still remains.
tree:
https://github.com/Freescale/linux-fslc pr/490
head: e1744bcfc0ba973d84a580a510206e682c10cfcb
commit: 367122823dab7b07ad76fb94a06c7a3030fe57b6 [11385/15241] regulator: add SCMI driver
config: arm-allyesconfig (attached as .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/367122823dab7b07ad76fb94a0...
git remote add freescale-fslc
https://github.com/Freescale/linux-fslc
git fetch --no-tags freescale-fslc pr/490
git checkout 367122823dab7b07ad76fb94a06c7a3030fe57b6
# save the attached .config 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
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)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;
| ^
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@lists.01.org