From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.7]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id AF4761448E0 for ; Wed, 16 Sep 2026 00:29:24 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=192.198.163.7 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1789518566; cv=none; b=Hzl00I2hs2hDWbpjC4IUliJkC9yUz/kWqoydo05tzL6bCtOmTGwhUKyXSBNXAE10ibOA3iTVcVgSj2pjiQ/wI+OhdqarHcB1Y1bomtEMvbAvB/xdn7Qg8WMR78+0QoAf/Orr2B76EML+MPdsso0+5CL17TT0486k9iTxdlKo/s8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1789518566; c=relaxed/simple; bh=Tz+tqRNn/aA1911kgrqYzfw8sthbUKwIqOh4k1kGZIc=; h=Date:From:To:Cc:Subject:Message-ID; b=rLaD8VMsDYQi2a18kOWN3J32RCyBC2QoqkRDNGopQjkxVCf19GwZ0xkxTIfJLlWQI1+sDP7vz+MxG8cdynO6a4fIUgORYO2GiUq0X6zv/kplNumJBrgWSreYrGgBj2zdJhwEoCR1nl4CU0cYeBfVfwWrXUycxgQybAyp1H0GIlw= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=intel.com; spf=pass smtp.mailfrom=intel.com; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b=lDOxwQzk; arc=none smtp.client-ip=192.198.163.7 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=intel.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=intel.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="lDOxwQzk" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1789518565; x=1821054565; h=date:from:to:cc:subject:message-id; bh=Tz+tqRNn/aA1911kgrqYzfw8sthbUKwIqOh4k1kGZIc=; b=lDOxwQzkKx4GD/XYRTPCmI0ZySpmY+tYayVjkqFrQbSCRtRFBv2rlAu6 QwMUudyymDy3nNIXiVjBu7kN8H6Sg3U9GU41U1VzR+f4fgaKfarRXulBf hVLdLADV2Z02w6SsoeYAu0xgEbeupIiHaNAz7ZK+Am5K/49O0/VO6UIQe 34qf7m6M0miw7HbYKdodfImFHYC8bmEPW6lJrOQbx0nxwE+lJzhmM8goO 6iMpqvzYBa4H0aK3xvylo0bj2ZyUkIyGpr6R2Q5WdT1ghOte+UUP4re7v aAKS9bsMOnShwouj1+m5xYPTrZgWVyraWqCvHcm+D7I4pi8XSlq5dF4Ec w==; X-CSE-ConnectionGUID: IZGhZXsqRHqtZL7mnBcXWg== X-CSE-MsgGUID: XHhoD55IRbOsP7Tl0cXcKw== X-IronPort-AV: E=McAfee;i="6800,10657,11905"; a="115431406" X-IronPort-AV: E=Sophos;i="6.27,103,1787036400"; d="scan'208";a="115431406" Received: from orviesa004.jf.intel.com ([10.64.159.144]) by fmvoesa101.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 15 Sep 2026 17:29:23 -0700 X-CSE-ConnectionGUID: 4hkmRjNqS9iu4T6J0pAXhA== X-CSE-MsgGUID: Cj5fT9G4SwaXFOi4+CdoMg== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.27,103,1787036400"; d="scan'208";a="276924478" Received: from lkp-server01.sh.intel.com (HELO 462990a40a85) ([10.239.97.150]) by orviesa004.jf.intel.com with ESMTP; 15 Sep 2026 17:29:22 -0700 Received: from kbuild by 462990a40a85 with local (Exim 4.98.2) (envelope-from ) id 1x6dWZ-000000005E5-0lzI; Wed, 16 Sep 2026 00:29:19 +0000 Date: Wed, 16 Sep 2026 08:28:33 +0800 From: kernel test robot To: "Rafael J. Wysocki" 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:53: error: initialization of 'struct device *' from 'int' makes pointer from integer without a cast Message-ID: <202609160802.42lSCDhD-lkp@intel.com> User-Agent: s-nail v14.9.25 Precedence: bulk X-Mailing-List: oe-kbuild-all@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: 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 | 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