All of lore.kernel.org
 help / color / mirror / Atom feed
* [omap-audio:peter/linux-next-wip 75/80] sound/soc/ti/omap-mcasp.c:603:7: warning: variable 'fclk_rate' set but not used
@ 2020-11-16 16:39 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2020-11-16 16:39 UTC (permalink / raw)
  To: kbuild-all

[-- Attachment #1: Type: text/plain, Size: 3723 bytes --]

tree:   https://github.com/omap-audio/linux-audio peter/linux-next-wip
head:   f899206cc108ac21f28d9f41a74ca3e2f41cbe09
commit: 1cac23d930f92fb60a20e7e93675fc590514cc61 [75/80] omap: mcasp: add omap-mcasp.* and add to Kconfig, Makefile
config: nios2-randconfig-r011-20201116 (attached as .config)
compiler: nios2-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/1cac23d930f92fb60a20e7e93675fc590514cc61
        git remote add omap-audio https://github.com/omap-audio/linux-audio
        git fetch --no-tags omap-audio peter/linux-next-wip
        git checkout 1cac23d930f92fb60a20e7e93675fc590514cc61
        # save the attached .config to linux build tree
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=nios2 

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: 31216 bytes --]

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2020-11-16 16:39 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-11-16 16:39 [omap-audio:peter/linux-next-wip 75/80] sound/soc/ti/omap-mcasp.c:603:7: warning: variable 'fclk_rate' set but not used 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.