From: kernel test robot <lkp@intel.com>
To: Stefan Binding <sbinding@opensource.cirrus.com>
Cc: llvm@lists.linux.dev, oe-kbuild-all@lists.linux.dev,
"Mark Brown" <broonie@kernel.org>,
"André Almeida" <andrealmeid@igalia.com>
Subject: [broonie-sound:for-next 6/13] sound/soc/codecs/cs35l41.c:1166:10: error: call to undeclared function 'acpi_device_hid'; ISO C99 and later do not support implicit function declarations
Date: Sun, 9 Feb 2025 01:10:13 +0800 [thread overview]
Message-ID: <202502090100.SbXmGFqs-lkp@intel.com> (raw)
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: arm64-randconfig-001-20250208 (https://download.01.org/0day-ci/archive/20250209/202502090100.SbXmGFqs-lkp@intel.com/config)
compiler: clang version 21.0.0git (https://github.com/llvm/llvm-project 6807164500e9920638e2ab0cdb4bf8321d24f8eb)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20250209/202502090100.SbXmGFqs-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/202502090100.SbXmGFqs-lkp@intel.com/
All errors (new ones prefixed by >>):
>> sound/soc/codecs/cs35l41.c:1166:10: error: call to undeclared function 'acpi_device_hid'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
1166 | hid = acpi_device_hid(adev);
| ^
sound/soc/codecs/cs35l41.c:1166:10: note: did you mean 'acpi_device_handle'?
include/linux/acpi.h:857:27: note: 'acpi_device_handle' declared here
857 | static inline acpi_handle acpi_device_handle(struct acpi_device *adev)
| ^
>> sound/soc/codecs/cs35l41.c:1166:8: error: incompatible integer to pointer conversion assigning to 'const char *' from 'int' [-Wint-conversion]
1166 | hid = acpi_device_hid(adev);
| ^ ~~~~~~~~~~~~~~~~~~~~~
2 errors generated.
vim +/acpi_device_hid +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
reply other threads:[~2025-02-08 17: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=202502090100.SbXmGFqs-lkp@intel.com \
--to=lkp@intel.com \
--cc=andrealmeid@igalia.com \
--cc=broonie@kernel.org \
--cc=llvm@lists.linux.dev \
--cc=oe-kbuild-all@lists.linux.dev \
--cc=sbinding@opensource.cirrus.com \
/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