drivers/acpi/property.c:1803:43: error: call to undeclared function 'FIELD_GET'; ISO C99 and later do not support implicit function declarations
kernel test robot
build bot::::::
:::::: Manual check reason: "too many reports for this commit" ::::::
BCC: [email protected]
CC: [email protected]
TO: Lorenzo Pieralisi <[email protected]>
tree: https://git.kernel.org/pub/scm/linux/kernel/git/lpieralisi/linux.git b4/acpi-static-table-irq-probe-defer-v2 head: ca8bd1758c478a6d6f4ee72816f935c38cdb1169 commit: c692f3d86b735adeead52e7d58f1b943135cfaae [3/10] ACPI: Introduce irq_get() for static fwnodes
:::::: branch date: 17 hours ago
:::::: commit date: 19 hours ago
config: x86_64-kexec (https://download.01.org/0day-ci/archive/20261124/[email protected]/config)
compiler: clang version 22.1.8 (https://github.com/llvm/llvm-project ca7933e47d3a3451d81e72ac174dcb5aa28b59d1) reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20261124/[email protected]/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 <[email protected]>
| Closes: https://lore.kernel.org/r/[email protected]/
All errors (new ones prefixed by >>):
In file included from drivers/acpi/property.c:16:
include/linux/acpi.h:126:15: error: call to undeclared function 'FIELD_PREP'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
126 | irq->flags = ACPI_STATIC_IRQ_FLAGS(trigger, polarity);
| ^
include/linux/acpi.h:71:3: note: expanded from macro 'ACPI_STATIC_IRQ_FLAGS'
71 | (FIELD_PREP(ACPI_STATIC_IRQ_TRIGGER_MASK, (trigger)) | \
| ^
>> drivers/acpi/property.c:1803:43: error: call to undeclared function 'FIELD_GET'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
1803 | return acpi_register_gsi(NULL, irq->gsi, ACPI_STATIC_IRQ_TRIGGER(irq->flags),
| ^
include/linux/acpi.h:75:2: note: expanded from macro 'ACPI_STATIC_IRQ_TRIGGER'
75 | FIELD_GET(ACPI_STATIC_IRQ_TRIGGER_MASK, (flags))
| ^2 errors generated.
vim +/FIELD_GET +1803 drivers/acpi/property.c
c692f3d86b735ad Lorenzo Pieralisi 2026-09-04 1791
c692f3d86b735ad Lorenzo Pieralisi 2026-09-04 1792 static int acpi_static_fwnode_irq_get(const struct fwnode_handle *fwnode,
c692f3d86b735ad Lorenzo Pieralisi 2026-09-04 1793 unsigned int index)
c692f3d86b735ad Lorenzo Pieralisi 2026-09-04 1794 {
c692f3d86b735ad Lorenzo Pieralisi 2026-09-04 1795 const struct acpi_static_fwnode *node = container_of(fwnode,
c692f3d86b735ad Lorenzo Pieralisi 2026-09-04 1796 struct acpi_static_fwnode, fwnode);
c692f3d86b735ad Lorenzo Pieralisi 2026-09-04 1797 const struct acpi_static_irq *irq;
c692f3d86b735ad Lorenzo Pieralisi 2026-09-04 1798
c692f3d86b735ad Lorenzo Pieralisi 2026-09-04 1799 if (index >= node->irq_count)
c692f3d86b735ad Lorenzo Pieralisi 2026-09-04 1800 return -ENXIO;
c692f3d86b735ad Lorenzo Pieralisi 2026-09-04 1801
c692f3d86b735ad Lorenzo Pieralisi 2026-09-04 1802 irq = &node->irqs[index];
c692f3d86b735ad Lorenzo Pieralisi 2026-09-04 @1803 return acpi_register_gsi(NULL, irq->gsi, ACPI_STATIC_IRQ_TRIGGER(irq->flags),
c692f3d86b735ad Lorenzo Pieralisi 2026-09-04 1804 ACPI_STATIC_IRQ_POLARITY(irq->flags));
c692f3d86b735ad Lorenzo Pieralisi 2026-09-04 1805 }c692f3d86b735ad Lorenzo Pieralisi 2026-09-04 1806
Signature · 2 lines
0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki