[alsa-devel] [PATCH 08/10] ASoC: Intel: Skylake: Remove get dsp_ops in cleanup routine

kbuild test robot lkp at intel.com
Fri Mar 10 05:40:34 CET 2017


Hi Kranthi,

[auto build test WARNING on asoc/for-next]
[also build test WARNING on v4.11-rc1 next-20170309]
[if your patch is applied to the wrong git tree, please drop us a note to help improve the system]

url:    https://github.com/0day-ci/linux/commits/jeeja-kp-intel-com/ASoC-Intel-Skylake-Driver-updates/20170310-104533
base:   https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git for-next
config: i386-randconfig-s1-201710 (attached as .config)
compiler: gcc-6 (Debian 6.2.0-3) 6.2.0 20160901
reproduce:
        # save the attached .config to linux build tree
        make ARCH=i386 

All warnings (new ones prefixed by >>):

   sound/soc/intel/skylake/skl-messages.c: In function 'skl_init_dsp':
>> sound/soc/intel/skylake/skl-messages.c:277:24: warning: assignment discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]
     skl->skl_sst->dsp_ops = ops;
                           ^

vim +/const +277 sound/soc/intel/skylake/skl-messages.c

   261			dev_err(bus->dev, "ioremap error\n");
   262			return -ENXIO;
   263		}
   264	
   265		ops = skl_get_dsp_ops(skl->pci->device);
   266		if (!ops)
   267			return -EIO;
   268	
   269		loader_ops = ops->loader_ops();
   270		ret = ops->init(bus->dev, mmio_base, irq,
   271					skl->fw_name, loader_ops,
   272					&skl->skl_sst);
   273	
   274		if (ret < 0)
   275			return ret;
   276	
 > 277		skl->skl_sst->dsp_ops = ops;
   278		dev_dbg(bus->dev, "dsp registration status=%d\n", ret);
   279	
   280		return ret;
   281	}
   282	
   283	int skl_free_dsp(struct skl *skl)
   284	{
   285		struct hdac_ext_bus *ebus = &skl->ebus;

---
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/gzip
Size: 28181 bytes
Desc: not available
URL: <http://mailman.alsa-project.org/pipermail/alsa-devel/attachments/20170310/aba4e01b/attachment-0001.bin>


More information about the Alsa-devel mailing list