[alsa-devel] [asoc:topic/rockchip 4/4] sound/soc/rockchip/rockchip_spdif.c:67:12: warning: 'rk_spdif_runtime_resume' defined but not used

kbuild test robot fengguang.wu at intel.com
Sat Oct 10 11:02:02 CEST 2015


tree:   https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git topic/rockchip
head:   f874b80e1571118fcf4554878633556f06f998e6
commit: f874b80e1571118fcf4554878633556f06f998e6 [4/4] ASoC: rockchip: Add rockchip SPDIF transceiver driver
config: microblaze-allmodconfig (attached as .config)
reproduce:
        wget https://git.kernel.org/cgit/linux/kernel/git/wfg/lkp-tests.git/plain/sbin/make.cross -O ~/bin/make.cross
        chmod +x ~/bin/make.cross
        git checkout f874b80e1571118fcf4554878633556f06f998e6
        # save the attached .config to linux build tree
        make.cross ARCH=microblaze 

All warnings (new ones prefixed by >>):

>> sound/soc/rockchip/rockchip_spdif.c:67:12: warning: 'rk_spdif_runtime_resume' defined but not used [-Wunused-function]
    static int rk_spdif_runtime_resume(struct device *dev)
               ^

vim +/rk_spdif_runtime_resume +67 sound/soc/rockchip/rockchip_spdif.c

    51		{ .compatible = "rockchip,rk3288-spdif",
    52		  .data = (void *) RK_SPDIF_RK3288 },
    53		{},
    54	};
    55	MODULE_DEVICE_TABLE(of, rk_spdif_match);
    56	
    57	static int rk_spdif_runtime_suspend(struct device *dev)
    58	{
    59		struct rk_spdif_dev *spdif = dev_get_drvdata(dev);
    60	
    61		clk_disable_unprepare(spdif->mclk);
    62		clk_disable_unprepare(spdif->hclk);
    63	
    64		return 0;
    65	}
    66	
  > 67	static int rk_spdif_runtime_resume(struct device *dev)
    68	{
    69		struct rk_spdif_dev *spdif = dev_get_drvdata(dev);
    70		int ret;
    71	
    72		ret = clk_prepare_enable(spdif->mclk);
    73		if (ret) {
    74			dev_err(spdif->dev, "mclk clock enable failed %d\n", ret);
    75			return ret;

---
0-DAY kernel test infrastructure                Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all                   Intel Corporation
-------------- next part --------------
A non-text attachment was scrubbed...
Name: .config.gz
Type: application/octet-stream
Size: 41987 bytes
Desc: not available
URL: <http://mailman.alsa-project.org/pipermail/alsa-devel/attachments/20151010/b461874a/attachment-0001.obj>


More information about the Alsa-devel mailing list