All of lore.kernel.org
 help / color / mirror / Atom feed
* [plbossart-sound:integration/soundwire-sof-20200109 14/14] sound/soc//sof/intel/hda.c:1126:9: warning: assignment discards 'const' qualifier from pointer target type
@ 2020-01-10 18:35 kbuild test robot
  0 siblings, 0 replies; only message in thread
From: kbuild test robot @ 2020-01-10 18:35 UTC (permalink / raw)
  To: kbuild-all

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

tree:   https://github.com/plbossart/sound integration/soundwire-sof-20200109
head:   aa85a698ad25db1ca48acb16c0661c4b998bd7ee
commit: aa85a698ad25db1ca48acb16c0661c4b998bd7ee [14/14] ASoC: SOF: select machine driver with sdw adr.
config: arm64-allyesconfig (attached as .config)
compiler: aarch64-linux-gcc (GCC) 7.5.0
reproduce:
        wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
        chmod +x ~/bin/make.cross
        git checkout aa85a698ad25db1ca48acb16c0661c4b998bd7ee
        # save the attached .config to linux build tree
        GCC_VERSION=7.5.0 make.cross ARCH=arm64 

If you fix the issue, kindly add following tag
Reported-by: kbuild test robot <lkp@intel.com>

All warnings (new ones prefixed by >>):

   sound/soc//sof/intel/hda.c: In function 'hda_sdw_machine_select':
>> sound/soc//sof/intel/hda.c:1126:9: warning: assignment discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]
       link = mach->links;
            ^

vim +/const +1126 sound/soc//sof/intel/hda.c

  1097	
  1098	static int hda_sdw_machine_select(struct snd_sof_dev *sdev)
  1099	{
  1100		struct hdac_bus *bus = sof_to_bus(sdev);
  1101		struct snd_soc_acpi_mach *mach;
  1102		struct snd_sof_pdata *pdata = sdev->pdata;
  1103		struct sof_intel_hda_dev *hdev = pdata->hw_pdata;
  1104		u32 link_mask;
  1105		struct snd_soc_acpi_link_adr *link;
  1106		int i;
  1107	
  1108		link_mask = hdev->info.link_mask;
  1109	
  1110		/*
  1111		 * Select SoundWire machine driver if needed using the
  1112		 * alternate tables. This case deals with SoundWire-only
  1113		 * machines, for mixed cases with I2C/I2S the detection relies
  1114		 * on the HID list.
  1115		 */
  1116		if (link_mask && !pdata->machine) {
  1117			for (mach = pdata->desc->alt_machines;
  1118			     mach && mach->link_mask; mach++) {
  1119				if (mach->link_mask != link_mask)
  1120					continue;
  1121	
  1122				/* No need to match adr if there is no links defined */
  1123				if (!mach->links)
  1124					break;
  1125	
> 1126				link = mach->links;
  1127				for (i = 0; i < hdev->info.count; i++, link++) {
  1128					/*
  1129					 * Try next machine if any expected Slaves
  1130					 * are not found on this link.
  1131					 */
  1132					if (!link_slaves_found(sdev, link, hdev->sdw))
  1133						break;
  1134				}
  1135				/* Found if all Slaves are checked */
  1136				if (i == hdev->info.count)
  1137					break;
  1138			}
  1139			if (mach && mach->link_mask) {
  1140				dev_dbg(bus->dev,
  1141					"SoundWire machine driver %s topology %s\n",
  1142					mach->drv_name,
  1143					mach->sof_tplg_filename);
  1144				pdata->machine = mach;
  1145				mach->mach_params.platform = dev_name(sdev->dev);
  1146				pdata->fw_filename = mach->sof_fw_filename;
  1147				pdata->tplg_filename = mach->sof_tplg_filename;
  1148			} else {
  1149				dev_info(sdev->dev,
  1150					 "No SoundWire machine driver found\n");
  1151			}
  1152		}
  1153	
  1154		return 0;
  1155	}
  1156	#else
  1157	static int hda_sdw_machine_select(struct snd_sof_dev *sdev)
  1158	{
  1159		return 0;
  1160	}
  1161	#endif
  1162	

---
0-DAY kernel test infrastructure                 Open Source Technology Center
https://lists.01.org/hyperkitty/list/kbuild-all(a)lists.01.org Intel Corporation

[-- Attachment #2: config.gz --]
[-- Type: application/gzip, Size: 69512 bytes --]

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

only message in thread, other threads:[~2020-01-10 18:35 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-01-10 18:35 [plbossart-sound:integration/soundwire-sof-20200109 14/14] sound/soc//sof/intel/hda.c:1126:9: warning: assignment discards 'const' qualifier from pointer target type kbuild 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.