Content-Type: multipart/mixed; boundary="===============8562198510925323089==" MIME-Version: 1.0 From: Pierre-Louis Bossart To: kbuild-all@lists.01.org Subject: Re: [plbossart-sound:integration/soundwire-sof-20200109 14/14] sound/soc/sof/intel/hda.c:1126:9: error: assigning to 'struct snd_soc_acpi_link_adr *' from 'const struct snd_soc_acpi_link_adr *' discards qualifiers Date: Mon, 13 Jan 2020 12:03:27 -0600 Message-ID: In-Reply-To: List-Id: --===============8562198510925323089== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Fixed already On 1/13/20 11:21 AM, Nick Desaulniers wrote: > Hi Bard, > Below is a warning from a 0day bot build with Clang. The warning looks > legit, can you please take a look? > = > On Fri, Jan 10, 2020 at 9:04 PM kbuild test robot wrote: >> >> CC: kbuild-all(a)lists.01.org >> TO: Bard Liao >> CC: "Pierre-Louis Bossart" >> >> tree: https://github.com/plbossart/sound integration/soundwire-sof-202= 00109 >> head: aa85a698ad25db1ca48acb16c0661c4b998bd7ee >> commit: aa85a698ad25db1ca48acb16c0661c4b998bd7ee [14/14] ASoC: SOF: sele= ct machine driver with sdw adr. >> config: arm64-allyesconfig (attached as .config) >> compiler: clang version 10.0.0 (git://gitmirror/llvm_project 4ebb589629b= 0d3de0827cab179338836ebb3a8b6) >> reproduce: >> wget https://raw.githubusercontent.com/intel/lkp-tests/master/s= bin/make.cross -O ~/bin/make.cross >> chmod +x ~/bin/make.cross >> git checkout aa85a698ad25db1ca48acb16c0661c4b998bd7ee >> # save the attached .config to linux build tree >> make.cross ARCH=3Darm64 >> >> If you fix the issue, kindly add following tag >> Reported-by: kbuild test robot >> >> All errors (new ones prefixed by >>): >> >>>> sound/soc/sof/intel/hda.c:1126:9: error: assigning to 'struct snd_soc_= acpi_link_adr *' from 'const struct snd_soc_acpi_link_adr *' discards quali= fiers [-Werror,-Wincompatible-pointer-types-discards-qualifiers] >> link =3D mach->links; >> ^ ~~~~~~~~~~~ >> 1 error generated. >> >> vim +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 =3D sof_to_bus(sdev); >> 1101 struct snd_soc_acpi_mach *mach; >> 1102 struct snd_sof_pdata *pdata =3D sdev->pdata; >> 1103 struct sof_intel_hda_dev *hdev =3D pdata->hw_pdata; >> 1104 u32 link_mask; >> 1105 struct snd_soc_acpi_link_adr *link; >> 1106 int i; >> 1107 >> 1108 link_mask =3D 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 =3D pdata->desc->alt_machines; >> 1118 mach && mach->link_mask; mach++) { >> 1119 if (mach->link_mask !=3D 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 =3D mach->links; >> 1127 for (i =3D 0; i < hdev->info.count; i++= , link++) { >> 1128 /* >> 1129 * Try next machine if any expe= cted Slaves >> 1130 * are not found on this link. >> 1131 */ >> 1132 if (!link_slaves_found(sdev, li= nk, hdev->sdw)) >> 1133 break; >> 1134 } >> 1135 /* Found if all Slaves are checked */ >> 1136 if (i =3D=3D hdev->info.count) >> 1137 break; >> 1138 } >> 1139 if (mach && mach->link_mask) { >> 1140 dev_dbg(bus->dev, >> 1141 "SoundWire machine driver %s to= pology %s\n", >> 1142 mach->drv_name, >> 1143 mach->sof_tplg_filename); >> 1144 pdata->machine =3D mach; >> 1145 mach->mach_params.platform =3D dev_name= (sdev->dev); >> 1146 pdata->fw_filename =3D mach->sof_fw_fil= ename; >> 1147 pdata->tplg_filename =3D mach->sof_tplg= _filename; >> 1148 } else { >> 1149 dev_info(sdev->dev, >> 1150 "No SoundWire machine driver f= ound\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 Cor= poration > = > = >=20 --===============8562198510925323089==--