* [rafael-pm:bleeding-edge 92/100] sound/soc/loongson/loongson_card.c:206:53: error: initialization of 'struct device *' from 'int' makes pointer from integer without a cast
@ 2026-09-16 0:28 kernel test robot
0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2026-09-16 0:28 UTC (permalink / raw)
To: Rafael J. Wysocki; +Cc: oe-kbuild-all, linux-acpi, linux-pm
tree: https://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm.git bleeding-edge
head: c4effca721d9748be701b3c3b8a666b380b2a4e5
commit: 6527c23fee030337d74b3b4becef50bf6d68cecc [92/100] ASoC: loongson: Switch to use acpi_bus_get_primary_device()
config: sh-allmodconfig (https://download.01.org/0day-ci/archive/20260916/202609160802.42lSCDhD-lkp@intel.com/config)
compiler: sh4-linux-gcc (GCC) 16.1.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260916/202609160802.42lSCDhD-lkp@intel.com/reproduce)
If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <lkp@intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202609160802.42lSCDhD-lkp@intel.com/
All errors (new ones prefixed by >>):
sound/soc/loongson/loongson_card.c: In function 'loongson_card_parse_acpi':
sound/soc/loongson/loongson_card.c:206:53: error: implicit declaration of function 'acpi_bus_get_primary_device' [-Wimplicit-function-declaration]
206 | struct device *phy_dev __free(put_device) = acpi_bus_get_primary_device(adev);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~
>> sound/soc/loongson/loongson_card.c:206:53: error: initialization of 'struct device *' from 'int' makes pointer from integer without a cast [-Wint-conversion]
vim +206 sound/soc/loongson/loongson_card.c
193
194 static int loongson_card_parse_acpi(struct loongson_card_data *data)
195 {
196 struct snd_soc_card *card = &data->snd_card;
197 const char *codec_dai_name;
198 struct acpi_device *adev;
199 int i, ret;
200
201 /* fixup platform name based on reference node */
202 adev = loongson_card_acpi_find_device(card, "cpu");
203 if (!adev)
204 return -ENOENT;
205
> 206 struct device *phy_dev __free(put_device) = acpi_bus_get_primary_device(adev);
207 if (!phy_dev)
208 return -EPROBE_DEFER;
209
210 /* fixup codec name based on reference node */
211 adev = loongson_card_acpi_find_device(card, "codec");
212 if (!adev)
213 return -ENOENT;
214 snprintf(codec_name, sizeof(codec_name), "i2c-%s", acpi_dev_name(adev));
215
216 ret = device_property_read_string(card->dev, "codec-dai-name", &codec_dai_name);
217 if (ret)
218 return ret;
219
220 for (i = 0; i < card->num_links; i++) {
221 loongson_dai_links[i].platforms->name = dev_name(phy_dev);
222 loongson_dai_links[i].codecs->name = codec_name;
223 loongson_dai_links[i].codecs->dai_name = codec_dai_name;
224 }
225
226 return 0;
227 }
228
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2026-09-16 0:29 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-09-16 0:28 [rafael-pm:bleeding-edge 92/100] sound/soc/loongson/loongson_card.c:206:53: error: initialization of 'struct device *' from 'int' makes pointer from integer without a cast kernel test robot
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox