Linux Power Management development
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: "Rafael J. Wysocki" <rjw@rjwysocki.net>
Cc: oe-kbuild-all@lists.linux.dev, linux-acpi@vger.kernel.org,
	linux-pm@vger.kernel.org
Subject: [rafael-pm:bleeding-edge 92/100] sound/soc/loongson/loongson_card.c:206:46: error: implicit declaration of function 'acpi_bus_get_primary_device'; did you mean 'acpi_get_gpe_device'?
Date: Wed, 16 Sep 2026 07:10:11 +0800	[thread overview]
Message-ID: <202609160705.vk4ADT7O-lkp@intel.com> (raw)

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: arc-randconfig-001-20260916 (https://download.01.org/0day-ci/archive/20260916/202609160705.vk4ADT7O-lkp@intel.com/config)
compiler: arc-linux-gcc (GCC) 8.5.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260916/202609160705.vk4ADT7O-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/202609160705.vk4ADT7O-lkp@intel.com/

All error/warnings (new ones prefixed by >>):

   sound/soc/loongson/loongson_card.c: In function 'loongson_card_parse_acpi':
>> sound/soc/loongson/loongson_card.c:206:46: error: implicit declaration of function 'acpi_bus_get_primary_device'; did you mean 'acpi_get_gpe_device'? [-Werror=implicit-function-declaration]
     struct device *phy_dev __free(put_device) = acpi_bus_get_primary_device(adev);
                                                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~
                                                 acpi_get_gpe_device
>> sound/soc/loongson/loongson_card.c:206:46: warning: initialization of 'struct device *' from 'int' makes pointer from integer without a cast [-Wint-conversion]
   cc1: some warnings being treated as errors


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

                 reply	other threads:[~2026-09-15 23:10 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=202609160705.vk4ADT7O-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=linux-acpi@vger.kernel.org \
    --cc=linux-pm@vger.kernel.org \
    --cc=oe-kbuild-all@lists.linux.dev \
    --cc=rjw@rjwysocki.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox