* [omap-audio:peter/linux-next-wip 56/62] sound/soc/ti/omap-mcasp.c:603:7: warning: variable 'fclk_rate' set but not used
@ 2021-06-13 17:17 kernel test robot
0 siblings, 0 replies; 2+ messages in thread
From: kernel test robot @ 2021-06-13 17:17 UTC (permalink / raw)
To: kbuild-all
[-- Attachment #1: Type: text/plain, Size: 3864 bytes --]
tree: https://github.com/omap-audio/linux-audio peter/linux-next-wip
head: 4267b3ab8fe441bf25983bf8288fd3025f67702f
commit: 179ec2bc789e81f433d7749acfe9a3a7dbf182e4 [56/62] omap: mcasp: add omap-mcasp.* and add to Kconfig, Makefile
config: x86_64-randconfig-a011-20210613 (attached as .config)
compiler: clang version 13.0.0 (https://github.com/llvm/llvm-project d2012d965d60c3258b3a69d024491698f8aec386)
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 x86_64 cross compiling tool for clang build
# apt-get install binutils-x86-64-linux-gnu
# https://github.com/omap-audio/linux-audio/commit/179ec2bc789e81f433d7749acfe9a3a7dbf182e4
git remote add omap-audio https://github.com/omap-audio/linux-audio
git fetch --no-tags omap-audio peter/linux-next-wip
git checkout 179ec2bc789e81f433d7749acfe9a3a7dbf182e4
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=x86_64
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>
All warnings (new ones prefixed by >>):
>> sound/soc/ti/omap-mcasp.c:603:7: warning: variable 'fclk_rate' set but not used [-Wunused-but-set-variable]
long fclk_rate;
^
1 warning generated.
vim +/fclk_rate +603 sound/soc/ti/omap-mcasp.c
598
599 static int asoc_mcasp_probe(struct platform_device *pdev)
600 {
601 struct omap_mcasp *mcasp;
602 struct resource *res;
> 603 long fclk_rate;
604 int ret = 0;
605
606 mcasp = devm_kzalloc(&pdev->dev, sizeof(struct omap_mcasp), GFP_KERNEL);
607 if (!mcasp) {
608 dev_err(&pdev->dev, "cannot allocate memory\n");
609 return -ENOMEM;
610 }
611
612 spin_lock_init(&mcasp->lock);
613
614 omap_mcasp_dai_dma_params[0].filter_data = "axevt";
615
616 res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
617 if (!res) {
618 dev_err(&pdev->dev, "no resource\n");
619 return -ENODEV;
620 }
621
622 mcasp->base = devm_ioremap_resource(&pdev->dev, res);
623 if (!mcasp->base) {
624 dev_err(&pdev->dev, "cannot remap\n");
625 return -ENOMEM;
626 }
627
628 mcasp->irq = platform_get_irq(pdev, 0);
629 if (mcasp->irq < 0) {
630 dev_err(&pdev->dev, "invalid IRQ number\n");
631 return mcasp->irq;
632 }
633
634 ret = devm_request_threaded_irq(&pdev->dev, mcasp->irq, NULL,
635 omap_mcasp_irq_handler,
636 IRQF_ONESHOT, "McASP", mcasp);
637 if (ret) {
638 dev_err(mcasp->dev, "IRQ request failed\n");
639 return ret;
640 }
641
642 mcasp->fclk = clk_get(&pdev->dev, "fck");
643 if (!mcasp->fclk) {
644 dev_err(mcasp->dev, "cant get fck\n");
645 return -ENODEV;
646 }
647
648 pm_runtime_enable(&pdev->dev);
649 pm_runtime_get_sync(&pdev->dev);
650
651 fclk_rate = clk_get_rate(mcasp->fclk);
652
653 platform_set_drvdata(pdev, mcasp);
654 mcasp->dev = &pdev->dev;
655
656 ret = snd_soc_register_component(&pdev->dev, &omap_mcasp_component,
657 &omap_mcasp_dai, 1);
658 if (ret < 0)
659 goto err_dai;
660
661 pm_runtime_put_sync(&pdev->dev);
662
663 return sdma_pcm_platform_register(&pdev->dev, "axevt", NULL);;
664
665 err_dai:
666 pm_runtime_put_sync(&pdev->dev);
667 pm_runtime_disable(&pdev->dev);
668 return ret;
669 }
670
---
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: 49478 bytes --]
^ permalink raw reply [flat|nested] 2+ messages in thread
* [omap-audio:peter/linux-next-wip 56/62] sound/soc/ti/omap-mcasp.c:603:7: warning: variable 'fclk_rate' set but not used
@ 2021-06-11 18:25 kernel test robot
0 siblings, 0 replies; 2+ messages in thread
From: kernel test robot @ 2021-06-11 18:25 UTC (permalink / raw)
To: kbuild-all
[-- Attachment #1: Type: text/plain, Size: 3715 bytes --]
tree: https://github.com/omap-audio/linux-audio peter/linux-next-wip
head: 4267b3ab8fe441bf25983bf8288fd3025f67702f
commit: 179ec2bc789e81f433d7749acfe9a3a7dbf182e4 [56/62] omap: mcasp: add omap-mcasp.* and add to Kconfig, Makefile
config: sparc-allyesconfig (attached as .config)
compiler: sparc64-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://github.com/omap-audio/linux-audio/commit/179ec2bc789e81f433d7749acfe9a3a7dbf182e4
git remote add omap-audio https://github.com/omap-audio/linux-audio
git fetch --no-tags omap-audio peter/linux-next-wip
git checkout 179ec2bc789e81f433d7749acfe9a3a7dbf182e4
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=sparc
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>
All warnings (new ones prefixed by >>):
sound/soc/ti/omap-mcasp.c: In function 'asoc_mcasp_probe':
>> sound/soc/ti/omap-mcasp.c:603:7: warning: variable 'fclk_rate' set but not used [-Wunused-but-set-variable]
603 | long fclk_rate;
| ^~~~~~~~~
vim +/fclk_rate +603 sound/soc/ti/omap-mcasp.c
598
599 static int asoc_mcasp_probe(struct platform_device *pdev)
600 {
601 struct omap_mcasp *mcasp;
602 struct resource *res;
> 603 long fclk_rate;
604 int ret = 0;
605
606 mcasp = devm_kzalloc(&pdev->dev, sizeof(struct omap_mcasp), GFP_KERNEL);
607 if (!mcasp) {
608 dev_err(&pdev->dev, "cannot allocate memory\n");
609 return -ENOMEM;
610 }
611
612 spin_lock_init(&mcasp->lock);
613
614 omap_mcasp_dai_dma_params[0].filter_data = "axevt";
615
616 res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
617 if (!res) {
618 dev_err(&pdev->dev, "no resource\n");
619 return -ENODEV;
620 }
621
622 mcasp->base = devm_ioremap_resource(&pdev->dev, res);
623 if (!mcasp->base) {
624 dev_err(&pdev->dev, "cannot remap\n");
625 return -ENOMEM;
626 }
627
628 mcasp->irq = platform_get_irq(pdev, 0);
629 if (mcasp->irq < 0) {
630 dev_err(&pdev->dev, "invalid IRQ number\n");
631 return mcasp->irq;
632 }
633
634 ret = devm_request_threaded_irq(&pdev->dev, mcasp->irq, NULL,
635 omap_mcasp_irq_handler,
636 IRQF_ONESHOT, "McASP", mcasp);
637 if (ret) {
638 dev_err(mcasp->dev, "IRQ request failed\n");
639 return ret;
640 }
641
642 mcasp->fclk = clk_get(&pdev->dev, "fck");
643 if (!mcasp->fclk) {
644 dev_err(mcasp->dev, "cant get fck\n");
645 return -ENODEV;
646 }
647
648 pm_runtime_enable(&pdev->dev);
649 pm_runtime_get_sync(&pdev->dev);
650
651 fclk_rate = clk_get_rate(mcasp->fclk);
652
653 platform_set_drvdata(pdev, mcasp);
654 mcasp->dev = &pdev->dev;
655
656 ret = snd_soc_register_component(&pdev->dev, &omap_mcasp_component,
657 &omap_mcasp_dai, 1);
658 if (ret < 0)
659 goto err_dai;
660
661 pm_runtime_put_sync(&pdev->dev);
662
663 return sdma_pcm_platform_register(&pdev->dev, "axevt", NULL);;
664
665 err_dai:
666 pm_runtime_put_sync(&pdev->dev);
667 pm_runtime_disable(&pdev->dev);
668 return ret;
669 }
670
---
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: 70020 bytes --]
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2021-06-13 17:17 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-06-13 17:17 [omap-audio:peter/linux-next-wip 56/62] sound/soc/ti/omap-mcasp.c:603:7: warning: variable 'fclk_rate' set but not used kernel test robot
-- strict thread matches above, loose matches on Subject: below --
2021-06-11 18:25 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.