* [android-common:android14-6.1-2025-02 0/27] sound/soc/amd/yc/acp6x-mach.c:461:8: error: call to undeclared function 'acpi_evaluate_integer'; ISO C99 and later do not support implicit function declarations
@ 2025-07-09 1:09 kernel test robot
0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2025-07-09 1:09 UTC (permalink / raw)
To: cros-kernel-buildreports; +Cc: oe-kbuild-all
[-- Attachment #1: Type: text/plain, Size: 6381 bytes --]
tree: https://android.googlesource.com/kernel/common android14-6.1-2025-02
head: b6c2e7030908dffcf252b8cc5e8132576208a7e9
commit: 2f3cee7f3e2ecf3ef825c0be11ae04fbf9011b49 [0/27] ASoC: amd: yc: Fix for enabling DMIC on acp6x via _DSD entry
:::::: branch date: 13 hours ago
:::::: commit date: 7 months ago
config: x86_64-buildonly-randconfig-002-20250709 (attached as .config)
compiler: clang version 20.1.7 (https://github.com/llvm/llvm-project 6146a88f60492b520a36f8f8f3231e15f3cc6082)
reproduce (this is a W=1 build): (attached as 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/202507090641.iU6S0j63-lkp@intel.com/
All errors (new ones prefixed by >>):
>> sound/soc/amd/yc/acp6x-mach.c:461:8: error: call to undeclared function 'acpi_evaluate_integer'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
461 | ret = acpi_evaluate_integer(handle, "_WOV", NULL, &dmic_status);
| ^
sound/soc/amd/yc/acp6x-mach.c:461:8: note: did you mean 'acpi_evaluate_object'?
include/acpi/acpixf.h:550:8: note: 'acpi_evaluate_object' declared here
550 | acpi_evaluate_object(acpi_handle object,
| ^
include/acpi/platform/aclinux.h:93:21: note: expanded from macro 'ACPI_EXTERNAL_RETURN_STATUS'
93 | static ACPI_INLINE prototype {return(AE_NOT_CONFIGURED);}
| ^
1 error generated.
vim +/acpi_evaluate_integer +461 sound/soc/amd/yc/acp6x-mach.c
fa991481b8b22a Vijendar Mukunda 2021-10-18 435
fa991481b8b22a Vijendar Mukunda 2021-10-18 436 static int acp6x_probe(struct platform_device *pdev)
fa991481b8b22a Vijendar Mukunda 2021-10-18 437 {
e521f087780d07 Mario Limonciello 2022-04-11 438 const struct dmi_system_id *dmi_id;
fa991481b8b22a Vijendar Mukunda 2021-10-18 439 struct acp6x_pdm *machine = NULL;
fa991481b8b22a Vijendar Mukunda 2021-10-18 440 struct snd_soc_card *card;
5426f506b58424 Mario Limonciello 2022-04-11 441 struct acpi_device *adev;
2f3cee7f3e2ecf Venkata Prasad Potturu 2024-11-27 442 acpi_handle handle;
2f3cee7f3e2ecf Venkata Prasad Potturu 2024-11-27 443 acpi_integer dmic_status;
fa991481b8b22a Vijendar Mukunda 2021-10-18 444 int ret;
2f3cee7f3e2ecf Venkata Prasad Potturu 2024-11-27 445 bool is_dmic_enable, wov_en;
fa991481b8b22a Vijendar Mukunda 2021-10-18 446
2f3cee7f3e2ecf Venkata Prasad Potturu 2024-11-27 447 /* IF WOV entry not found, enable dmic based on AcpDmicConnected entry*/
2f3cee7f3e2ecf Venkata Prasad Potturu 2024-11-27 448 is_dmic_enable = false;
2f3cee7f3e2ecf Venkata Prasad Potturu 2024-11-27 449 wov_en = true;
5426f506b58424 Mario Limonciello 2022-04-11 450 /* check the parent device's firmware node has _DSD or not */
5426f506b58424 Mario Limonciello 2022-04-11 451 adev = ACPI_COMPANION(pdev->dev.parent);
5426f506b58424 Mario Limonciello 2022-04-11 452 if (adev) {
5426f506b58424 Mario Limonciello 2022-04-11 453 const union acpi_object *obj;
5426f506b58424 Mario Limonciello 2022-04-11 454
5426f506b58424 Mario Limonciello 2022-04-11 455 if (!acpi_dev_get_property(adev, "AcpDmicConnected", ACPI_TYPE_INTEGER, &obj) &&
5426f506b58424 Mario Limonciello 2022-04-11 456 obj->integer.value == 1)
2f3cee7f3e2ecf Venkata Prasad Potturu 2024-11-27 457 is_dmic_enable = true;
5426f506b58424 Mario Limonciello 2022-04-11 458 }
5426f506b58424 Mario Limonciello 2022-04-11 459
2f3cee7f3e2ecf Venkata Prasad Potturu 2024-11-27 460 handle = ACPI_HANDLE(pdev->dev.parent);
2f3cee7f3e2ecf Venkata Prasad Potturu 2024-11-27 @461 ret = acpi_evaluate_integer(handle, "_WOV", NULL, &dmic_status);
2f3cee7f3e2ecf Venkata Prasad Potturu 2024-11-27 462 if (!ACPI_FAILURE(ret))
2f3cee7f3e2ecf Venkata Prasad Potturu 2024-11-27 463 wov_en = dmic_status;
2f3cee7f3e2ecf Venkata Prasad Potturu 2024-11-27 464
2f3cee7f3e2ecf Venkata Prasad Potturu 2024-11-27 465 if (is_dmic_enable && wov_en)
2f3cee7f3e2ecf Venkata Prasad Potturu 2024-11-27 466 platform_set_drvdata(pdev, &acp6x_card);
2f3cee7f3e2ecf Venkata Prasad Potturu 2024-11-27 467 else
2f3cee7f3e2ecf Venkata Prasad Potturu 2024-11-27 468 return 0;
2f3cee7f3e2ecf Venkata Prasad Potturu 2024-11-27 469
e521f087780d07 Mario Limonciello 2022-04-11 470 /* check for any DMI overrides */
fa991481b8b22a Vijendar Mukunda 2021-10-18 471 dmi_id = dmi_first_match(yc_acp_quirk_table);
e521f087780d07 Mario Limonciello 2022-04-11 472 if (dmi_id)
e521f087780d07 Mario Limonciello 2022-04-11 473 platform_set_drvdata(pdev, dmi_id->driver_data);
e521f087780d07 Mario Limonciello 2022-04-11 474
e521f087780d07 Mario Limonciello 2022-04-11 475 card = platform_get_drvdata(pdev);
e521f087780d07 Mario Limonciello 2022-04-11 476 if (!card)
fa991481b8b22a Vijendar Mukunda 2021-10-18 477 return -ENODEV;
5426f506b58424 Mario Limonciello 2022-04-11 478 dev_info(&pdev->dev, "Enabling ACP DMIC support via %s", dmi_id ? "DMI" : "ACPI");
fa991481b8b22a Vijendar Mukunda 2021-10-18 479 acp6x_card.dev = &pdev->dev;
fa991481b8b22a Vijendar Mukunda 2021-10-18 480
fa991481b8b22a Vijendar Mukunda 2021-10-18 481 snd_soc_card_set_drvdata(card, machine);
fa991481b8b22a Vijendar Mukunda 2021-10-18 482 ret = devm_snd_soc_register_card(&pdev->dev, card);
fa991481b8b22a Vijendar Mukunda 2021-10-18 483 if (ret) {
fa991481b8b22a Vijendar Mukunda 2021-10-18 484 return dev_err_probe(&pdev->dev, ret,
fa991481b8b22a Vijendar Mukunda 2021-10-18 485 "snd_soc_register_card(%s) failed\n",
fa991481b8b22a Vijendar Mukunda 2021-10-18 486 card->name);
fa991481b8b22a Vijendar Mukunda 2021-10-18 487 }
fa991481b8b22a Vijendar Mukunda 2021-10-18 488 return 0;
fa991481b8b22a Vijendar Mukunda 2021-10-18 489 }
fa991481b8b22a Vijendar Mukunda 2021-10-18 490
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
[-- Attachment #2: .config.gz --]
[-- Type: application/gzip, Size: 32352 bytes --]
[-- Attachment #3: reproduce --]
[-- Type: text/plain, Size: 681 bytes --]
reproduce (this is a W=1 build):
git clone https://github.com/intel/lkp-tests.git ~/lkp-tests
git remote add android-common https://android.googlesource.com/kernel/common
git fetch --no-tags android-common android14-6.1-2025-02
git checkout 2f3cee7f3e2ecf3ef825c0be11ae04fbf9011b49
# save the config file
mkdir build_dir && cp config build_dir/.config
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang-20 ~/lkp-tests/kbuild/make.cross W=1 O=build_dir ARCH=x86_64 olddefconfig
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang-20 ~/lkp-tests/kbuild/make.cross W=1 O=build_dir ARCH=x86_64 SHELL=/bin/bash sound/soc/amd/yc/
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2025-07-09 1:09 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-07-09 1:09 [android-common:android14-6.1-2025-02 0/27] sound/soc/amd/yc/acp6x-mach.c:461:8: error: call to undeclared function 'acpi_evaluate_integer'; ISO C99 and later do not support implicit function declarations 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.