* [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
@ 2020-12-15 21:38 ` kernel test robot
0 siblings, 0 replies; 2+ messages in thread
From: kernel test robot @ 2020-12-15 21:38 UTC (permalink / raw)
To: Marc Zyngier; +Cc: kbuild-all, linux-arm-kernel
[-- Attachment #1: Type: text/plain, Size: 3972 bytes --]
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@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
[-- Attachment #2: .config.gz --]
[-- Type: application/gzip, Size: 21910 bytes --]
[-- Attachment #3: Type: text/plain, Size: 176 bytes --]
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
^ permalink raw reply [flat|nested] 2+ messages in thread
* [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
@ 2020-12-15 21:38 ` kernel test robot
0 siblings, 0 replies; 2+ messages in thread
From: kernel test robot @ 2020-12-15 21:38 UTC (permalink / raw)
To: kbuild-all
[-- Attachment #1: Type: text/plain, Size: 4081 bytes --]
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@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(a)lists.01.org
[-- Attachment #2: config.gz --]
[-- Type: application/gzip, Size: 21910 bytes --]
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2020-12-15 21:40 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-12-15 21:38 [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
2020-12-15 21:38 ` 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.