[arm-platforms:hack/devm_cast_abuse 17/17] drivers/iio/imu/adis16480.c:1266:9: error: implicit declaration of function 'devm_clk_prepare_enable'; did you mean
kernel test robot
lkp at intel.com
Tue Dec 15 16:38:34 EST 2020
tree: https://git.kernel.org/pub/scm/linux/kernel/git/maz/arm-platforms.git hack/devm_cast_abuse
head: 542cb40d75bf747a26ac91aa28f1a1ecb19b89e3
commit: 542cb40d75bf747a26ac91aa28f1a1ecb19b89e3 [17/17] treewide: Bulk conversion to devm_clk_prepare_enable()
config: parisc-randconfig-r036-20201215 (attached as .config)
compiler: hppa-linux-gcc (GCC) 9.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/maz/arm-platforms.git/commit/?id=542cb40d75bf747a26ac91aa28f1a1ecb19b89e3
git remote add arm-platforms https://git.kernel.org/pub/scm/linux/kernel/git/maz/arm-platforms.git
git fetch --no-tags arm-platforms hack/devm_cast_abuse
git checkout 542cb40d75bf747a26ac91aa28f1a1ecb19b89e3
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=parisc
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/iio/imu/adis16480.c: In function 'adis16480_probe':
>> drivers/iio/imu/adis16480.c:1266:9: error: implicit declaration of function 'devm_clk_prepare_enable'; did you mean 'clk_prepare_enable'? [-Werror=implicit-function-declaration]
1266 | ret = devm_clk_prepare_enable(&spi->dev, st->ext_clk);
| ^~~~~~~~~~~~~~~~~~~~~~~
| clk_prepare_enable
cc1: some warnings being treated as errors
vim +1266 drivers/iio/imu/adis16480.c
1215
1216 static int adis16480_probe(struct spi_device *spi)
1217 {
1218 const struct spi_device_id *id = spi_get_device_id(spi);
1219 const struct adis_data *adis16480_data;
1220 struct iio_dev *indio_dev;
1221 struct adis16480 *st;
1222 int ret;
1223
1224 indio_dev = devm_iio_device_alloc(&spi->dev, sizeof(*st));
1225 if (indio_dev == NULL)
1226 return -ENOMEM;
1227
1228 spi_set_drvdata(spi, indio_dev);
1229
1230 st = iio_priv(indio_dev);
1231
1232 st->chip_info = &adis16480_chip_info[id->driver_data];
1233 indio_dev->name = spi_get_device_id(spi)->name;
1234 indio_dev->channels = st->chip_info->channels;
1235 indio_dev->num_channels = st->chip_info->num_channels;
1236 indio_dev->info = &adis16480_info;
1237 indio_dev->modes = INDIO_DIRECT_MODE;
1238
1239 adis16480_data = &st->chip_info->adis_data;
1240
1241 ret = adis_init(&st->adis, indio_dev, spi, adis16480_data);
1242 if (ret)
1243 return ret;
1244
1245 ret = __adis_initial_startup(&st->adis);
1246 if (ret)
1247 return ret;
1248
1249 ret = devm_add_action_or_reset(&spi->dev, adis16480_stop, indio_dev);
1250 if (ret)
1251 return ret;
1252
1253 ret = adis16480_config_irq_pin(spi->dev.of_node, st);
1254 if (ret)
1255 return ret;
1256
1257 ret = adis16480_get_ext_clocks(st);
1258 if (ret)
1259 return ret;
1260
1261 if (!IS_ERR_OR_NULL(st->ext_clk)) {
1262 ret = adis16480_ext_clk_config(st, spi->dev.of_node, true);
1263 if (ret)
1264 return ret;
1265
> 1266 ret = devm_clk_prepare_enable(&spi->dev, st->ext_clk);
1267 if (ret)
1268 return ret;
1269
1270 st->clk_freq = clk_get_rate(st->ext_clk);
1271 st->clk_freq *= 1000; /* micro */
1272 } else {
1273 st->clk_freq = st->chip_info->int_clk;
1274 }
1275
1276 ret = devm_adis_setup_buffer_and_trigger(&st->adis, indio_dev, NULL);
1277 if (ret)
1278 return ret;
1279
1280 ret = devm_iio_device_register(&spi->dev, indio_dev);
1281 if (ret)
1282 return ret;
1283
1284 adis16480_debugfs_init(indio_dev);
1285
1286 return 0;
1287 }
1288
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
-------------- next part --------------
A non-text attachment was scrubbed...
Name: .config.gz
Type: application/gzip
Size: 21910 bytes
Desc: not available
URL: <http://lists.infradead.org/pipermail/linux-arm-kernel/attachments/20201216/53c41444/attachment-0001.gz>
More information about the linux-arm-kernel
mailing list