[linusw-nomadik:ux500-sound 1/5] sound/soc/samsung/s3c24xx-i2s.c:436:56: error: passing argument 4 of 'samsung_asoc_dma_platform_register' from incompatible pointer type
kernel test robot
lkp at intel.com
Sat Jan 28 00:37:08 PST 2023
tree: https://git.kernel.org/pub/scm/linux/kernel/git/linusw/linux-nomadik.git ux500-sound
head: b65694eef136170ab7bac3d1f351b7d41fda5167
commit: 7310aaadf8ec3701122d4d856d1a8ca497f94582 [1/5] ASoC: samsung: remove DMA filter function and data
config: microblaze-randconfig-r022-20230123 (https://download.01.org/0day-ci/archive/20230128/202301281624.uV0BG9Do-lkp@intel.com/config)
compiler: microblaze-linux-gcc (GCC) 12.1.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/linusw/linux-nomadik.git/commit/?id=7310aaadf8ec3701122d4d856d1a8ca497f94582
git remote add linusw-nomadik https://git.kernel.org/pub/scm/linux/kernel/git/linusw/linux-nomadik.git
git fetch --no-tags linusw-nomadik ux500-sound
git checkout 7310aaadf8ec3701122d4d856d1a8ca497f94582
# save the config file
mkdir build_dir && cp config build_dir/.config
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-12.1.0 make.cross W=1 O=build_dir ARCH=microblaze olddefconfig
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-12.1.0 make.cross W=1 O=build_dir ARCH=microblaze SHELL=/bin/bash sound/soc/codecs/ sound/soc/samsung/
If you fix the issue, kindly add following tag where applicable
| Reported-by: kernel test robot <lkp at intel.com>
All errors (new ones prefixed by >>):
sound/soc/samsung/s3c24xx-i2s.c: In function 's3c24xx_iis_dev_probe':
>> sound/soc/samsung/s3c24xx-i2s.c:436:56: error: passing argument 4 of 'samsung_asoc_dma_platform_register' from incompatible pointer type [-Werror=incompatible-pointer-types]
436 | "tx", "rx", NULL);
| ^~~~
| |
| char *
In file included from sound/soc/samsung/s3c24xx-i2s.c:21:
sound/soc/samsung/dma.h:17:55: note: expected 'struct device *' but argument is of type 'char *'
17 | struct device *dma_dev);
| ~~~~~~~~~~~~~~~^~~~~~~
>> sound/soc/samsung/s3c24xx-i2s.c:435:15: error: too many arguments to function 'samsung_asoc_dma_platform_register'
435 | ret = samsung_asoc_dma_platform_register(&pdev->dev, NULL,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
sound/soc/samsung/dma.h:15:5: note: declared here
15 | int samsung_asoc_dma_platform_register(struct device *dev,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
cc1: some warnings being treated as errors
vim +/samsung_asoc_dma_platform_register +436 sound/soc/samsung/s3c24xx-i2s.c
5642ddff274172 sound/soc/samsung/s3c24xx-i2s.c Kuninori Morimoto 2013-03-21 422
fdca21ad460320 sound/soc/samsung/s3c24xx-i2s.c Bill Pemberton 2012-12-07 423 static int s3c24xx_iis_dev_probe(struct platform_device *pdev)
f0fba2ad1b6b53 sound/soc/s3c24xx/s3c24xx-i2s.c Liam Girdwood 2010-03-17 424 {
87b132bc0315fd sound/soc/samsung/s3c24xx-i2s.c Vasily Khoruzhick 2014-06-23 425 struct resource *res;
5d3c1f633ea298 sound/soc/samsung/s3c24xx-i2s.c Sylwester Nawrocki 2016-11-02 426 int ret;
87b132bc0315fd sound/soc/samsung/s3c24xx-i2s.c Vasily Khoruzhick 2014-06-23 427
b73cbd7b1c2d47 sound/soc/samsung/s3c24xx-i2s.c Yang Yingliang 2021-06-16 428 s3c24xx_i2s.regs = devm_platform_get_and_ioremap_resource(pdev, 0, &res);
c479163a1b6ab4 sound/soc/samsung/s3c24xx-i2s.c Wei Yongjun 2015-04-16 429 if (IS_ERR(s3c24xx_i2s.regs))
c479163a1b6ab4 sound/soc/samsung/s3c24xx-i2s.c Wei Yongjun 2015-04-16 430 return PTR_ERR(s3c24xx_i2s.regs);
87b132bc0315fd sound/soc/samsung/s3c24xx-i2s.c Vasily Khoruzhick 2014-06-23 431
8999390e40abe8 sound/soc/samsung/s3c24xx-i2s.c Sylwester Nawrocki 2016-08-04 432 s3c24xx_i2s_pcm_stereo_out.addr = res->start + S3C2410_IISFIFO;
8999390e40abe8 sound/soc/samsung/s3c24xx-i2s.c Sylwester Nawrocki 2016-08-04 433 s3c24xx_i2s_pcm_stereo_in.addr = res->start + S3C2410_IISFIFO;
a08485d8fdf6f6 sound/soc/samsung/s3c24xx-i2s.c Padmavathi Venna 2012-12-07 434
6c9473c55e7bb9 sound/soc/samsung/s3c24xx-i2s.c Sylwester Nawrocki 2016-11-02 @435 ret = samsung_asoc_dma_platform_register(&pdev->dev, NULL,
0f928c19b646f6 sound/soc/samsung/s3c24xx-i2s.c Sylwester Nawrocki 2019-02-14 @436 "tx", "rx", NULL);
a08485d8fdf6f6 sound/soc/samsung/s3c24xx-i2s.c Padmavathi Venna 2012-12-07 437 if (ret) {
6c9473c55e7bb9 sound/soc/samsung/s3c24xx-i2s.c Sylwester Nawrocki 2016-11-02 438 dev_err(&pdev->dev, "Failed to register the DMA: %d\n", ret);
a08485d8fdf6f6 sound/soc/samsung/s3c24xx-i2s.c Padmavathi Venna 2012-12-07 439 return ret;
a08485d8fdf6f6 sound/soc/samsung/s3c24xx-i2s.c Padmavathi Venna 2012-12-07 440 }
a08485d8fdf6f6 sound/soc/samsung/s3c24xx-i2s.c Padmavathi Venna 2012-12-07 441
73f5dfc68316be sound/soc/samsung/s3c24xx-i2s.c Marek Szyprowski 2016-10-27 442 ret = devm_snd_soc_register_component(&pdev->dev,
73f5dfc68316be sound/soc/samsung/s3c24xx-i2s.c Marek Szyprowski 2016-10-27 443 &s3c24xx_i2s_component, &s3c24xx_i2s_dai, 1);
7253e354e712d2 sound/soc/samsung/s3c24xx-i2s.c Tushar Behera 2014-05-21 444 if (ret)
6c9473c55e7bb9 sound/soc/samsung/s3c24xx-i2s.c Sylwester Nawrocki 2016-11-02 445 dev_err(&pdev->dev, "Failed to register the DAI\n");
a08485d8fdf6f6 sound/soc/samsung/s3c24xx-i2s.c Padmavathi Venna 2012-12-07 446
a08485d8fdf6f6 sound/soc/samsung/s3c24xx-i2s.c Padmavathi Venna 2012-12-07 447 return ret;
f0fba2ad1b6b53 sound/soc/s3c24xx/s3c24xx-i2s.c Liam Girdwood 2010-03-17 448 }
f0fba2ad1b6b53 sound/soc/s3c24xx/s3c24xx-i2s.c Liam Girdwood 2010-03-17 449
:::::: The code at line 436 was first introduced by commit
:::::: 0f928c19b646f6af39ccf7481a546e5da616bb78 ASoC: samsung: Specify DMA channel names through custom DMA config
:::::: TO: Sylwester Nawrocki <s.nawrocki at samsung.com>
:::::: CC: Mark Brown <broonie at kernel.org>
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests
More information about the linux-arm-kernel
mailing list