All of lore.kernel.org
 help / color / mirror / Atom feed
* [broonie-sound:for-next 6/13] sound/soc/codecs/cs35l41.c:1166:31: error: implicit declaration of function 'acpi_device_hid'; did you mean 'acpi_device_handle'?
@ 2025-02-08 15:43 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2025-02-08 15:43 UTC (permalink / raw)
  To: Stefan Binding; +Cc: oe-kbuild-all, Mark Brown, André Almeida

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git for-next
head:   f3a0dfda57f208c90c8c73f3bee2e8390f585b1f
commit: 1d44a30ae3f9195cb4eb7d81bb9ced2776232094 [6/13] ASoC: cs35l41: Fallback to using HID for system_name if no SUB is available
config: arm-randconfig-004-20250208 (https://download.01.org/0day-ci/archive/20250208/202502082338.UoPVUCIP-lkp@intel.com/config)
compiler: arm-linux-gnueabi-gcc (GCC) 14.2.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20250208/202502082338.UoPVUCIP-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/202502082338.UoPVUCIP-lkp@intel.com/

All errors (new ones prefixed by >>):

   sound/soc/codecs/cs35l41.c: In function 'cs35l41_acpi_get_name':
>> sound/soc/codecs/cs35l41.c:1166:31: error: implicit declaration of function 'acpi_device_hid'; did you mean 'acpi_device_handle'? [-Wimplicit-function-declaration]
    1166 |                         hid = acpi_device_hid(adev);
         |                               ^~~~~~~~~~~~~~~
         |                               acpi_device_handle
>> sound/soc/codecs/cs35l41.c:1166:29: error: assignment to 'const char *' from 'int' makes pointer from integer without a cast [-Wint-conversion]
    1166 |                         hid = acpi_device_hid(adev);
         |                             ^


vim +1166 sound/soc/codecs/cs35l41.c

  1150	
  1151	static int cs35l41_acpi_get_name(struct cs35l41_private *cs35l41)
  1152	{
  1153		struct acpi_device *adev = ACPI_COMPANION(cs35l41->dev);
  1154		acpi_handle handle = acpi_device_handle(adev);
  1155		const char *hid;
  1156		const char *sub;
  1157	
  1158		/* If there is no acpi_device, there is no ACPI for this system, return 0 */
  1159		if (!adev)
  1160			return 0;
  1161	
  1162		sub = acpi_get_subsystem_id(handle);
  1163		if (IS_ERR(sub)) {
  1164			/* If no _SUB, fallback to _HID, otherwise fail */
  1165			if (PTR_ERR(sub) == -ENODATA) {
> 1166				hid = acpi_device_hid(adev);
  1167				/* If dummy hid, return 0 and fallback to legacy firmware path */
  1168				if (!strcmp(hid, "device"))
  1169					return 0;
  1170				sub = kstrdup(hid, GFP_KERNEL);
  1171				if (!sub)
  1172					sub = ERR_PTR(-ENOMEM);
  1173	
  1174			} else
  1175				return PTR_ERR(sub);
  1176		}
  1177	
  1178		cs35l41->dsp.system_name = sub;
  1179		dev_dbg(cs35l41->dev, "Subsystem ID: %s\n", cs35l41->dsp.system_name);
  1180	
  1181		return 0;
  1182	}
  1183	

-- 
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:[~2025-02-08 15:44 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-02-08 15:43 [broonie-sound:for-next 6/13] sound/soc/codecs/cs35l41.c:1166:31: error: implicit declaration of function 'acpi_device_hid'; did you mean 'acpi_device_handle'? kernel 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.