* [freescale-fslc:pr/521 4666/9999] drivers/regulator/scmi-regulator.c:237:13: error: no member named 'of_match_full_name' in 'struct regulator_desc'
@ 2022-01-12 21:06 kernel test robot
0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2022-01-12 21:06 UTC (permalink / raw)
To: kbuild-all
[-- Attachment #1: Type: text/plain, Size: 4005 bytes --]
Hi Cristian,
FYI, the error/warning still remains.
tree: https://github.com/Freescale/linux-fslc pr/521
head: e1200a7e26459892adfac6cb313bd8458b21fa95
commit: 367122823dab7b07ad76fb94a06c7a3030fe57b6 [4666/9999] regulator: add SCMI driver
config: riscv-buildonly-randconfig-r005-20220112 (https://download.01.org/0day-ci/archive/20220113/202201130401.Z5dIs88t-lkp(a)intel.com/config)
compiler: clang version 14.0.0 (https://github.com/llvm/llvm-project 244dd2913a43a200f5a6544d424cdc37b771028b)
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
# install riscv cross compiling tool for clang build
# apt-get install binutils-riscv64-linux-gnu
# 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 pr/521
git checkout 367122823dab7b07ad76fb94a06c7a3030fe57b6
# save the config file to linux build tree
mkdir build_dir
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=riscv SHELL=/bin/bash 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:237:13: error: no member named 'of_match_full_name' in 'struct regulator_desc'
sreg->desc.of_match_full_name = true;
~~~~~~~~~~ ^
1 error generated.
Kconfig warnings: (for reference only)
WARNING: unmet direct dependencies detected for INPUT_POLLDEV
Depends on !UML && INPUT
Selected by
- MXC_MMA8451 && HWMON && I2C
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-12 21:06 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-01-12 21:06 [freescale-fslc:pr/521 4666/9999] drivers/regulator/scmi-regulator.c:237:13: error: no member named 'of_match_full_name' in 'struct regulator_desc' 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.