From: kernel test robot <lkp@intel.com>
To: oe-kbuild@lists.linux.dev
Cc: lkp@intel.com
Subject: [lpieralisi:b4/acpi-static-table-irq-probe-defer-v2 3/10] include/linux/acpi.h:71:10: error: implicit declaration of function 'FIELD_PREP'
Date: Sat, 21 Nov 2026 01:04:00 +0100 [thread overview]
Message-ID: <20261121005445.XTnGDF7r-lkp@intel.com> (raw)
::::::
:::::: Manual check reason: "too many reports for this commit"
::::::
BCC: lkp@intel.com
CC: oe-kbuild-all@lists.linux.dev
TO: Lorenzo Pieralisi <lpieralisi@kernel.org>
tree: https://git.kernel.org/pub/scm/linux/kernel/git/lpieralisi/linux.git b4/acpi-static-table-irq-probe-defer-v2
head: a75860f203b994ab67f8a876c7f568ac0f7f84c0
commit: 5df91ea5bcbef51cb967f3a07dd7c69c50681213 [3/10] ACPI: Introduce irq_get() for static fwnodes
:::::: branch date: 8 hours ago
:::::: commit date: 8 hours ago
config: x86_64-rhel-9.4 (https://download.01.org/0day-ci/archive/20261121/20261121005445.XTnGDF7r-lkp@intel.com/config)
compiler: gcc-14 (Debian 14.2.0-19) 14.2.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20261121/20261121005445.XTnGDF7r-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/r/20261121005445.XTnGDF7r-lkp@intel.com/
All error/warnings (new ones prefixed by >>):
In file included from drivers/acpi/tables.c:19:
include/linux/acpi.h: In function 'acpi_static_fwnode_add_irq':
>> include/linux/acpi.h:71:10: error: implicit declaration of function 'FIELD_PREP' [-Wimplicit-function-declaration]
71 | (FIELD_PREP(ACPI_STATIC_IRQ_TRIGGER_MASK, (trigger)) | \
| ^~~~~~~~~~
include/linux/acpi.h:126:22: note: in expansion of macro 'ACPI_STATIC_IRQ_FLAGS'
126 | irq->flags = ACPI_STATIC_IRQ_FLAGS(trigger, polarity);
| ^~~~~~~~~~~~~~~~~~~~~
--
In file included from drivers/acpi/property.c:16:
include/linux/acpi.h: In function 'acpi_static_fwnode_add_irq':
>> include/linux/acpi.h:71:10: error: implicit declaration of function 'FIELD_PREP' [-Wimplicit-function-declaration]
71 | (FIELD_PREP(ACPI_STATIC_IRQ_TRIGGER_MASK, (trigger)) | \
| ^~~~~~~~~~
include/linux/acpi.h:126:22: note: in expansion of macro 'ACPI_STATIC_IRQ_FLAGS'
126 | irq->flags = ACPI_STATIC_IRQ_FLAGS(trigger, polarity);
| ^~~~~~~~~~~~~~~~~~~~~
drivers/acpi/property.c: At top level:
>> drivers/acpi/property.c:1791:12: error: static declaration of 'acpi_static_fwnode_irq_get' follows non-static declaration
1791 | static int acpi_static_fwnode_irq_get(const struct fwnode_handle *fwnode,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
include/linux/acpi.h:92:5: note: previous declaration of 'acpi_static_fwnode_irq_get' with type 'int(const struct fwnode_handle *, unsigned int)'
92 | int acpi_static_fwnode_irq_get(const struct fwnode_handle *fwnode,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
drivers/acpi/property.c: In function 'acpi_static_fwnode_irq_get':
>> include/linux/acpi.h:75:9: error: implicit declaration of function 'FIELD_GET' [-Wimplicit-function-declaration]
75 | FIELD_GET(ACPI_STATIC_IRQ_TRIGGER_MASK, (flags))
| ^~~~~~~~~
drivers/acpi/property.c:1802:50: note: in expansion of macro 'ACPI_STATIC_IRQ_TRIGGER'
1802 | return acpi_register_gsi(NULL, irq->gsi, ACPI_STATIC_IRQ_TRIGGER(irq->flags),
| ^~~~~~~~~~~~~~~~~~~~~~~
--
In file included from sound/hda/controllers/intel.c:38:
include/linux/acpi.h: In function 'acpi_static_fwnode_add_irq':
>> include/linux/acpi.h:71:10: error: implicit declaration of function 'FIELD_PREP' [-Wimplicit-function-declaration]
71 | (FIELD_PREP(ACPI_STATIC_IRQ_TRIGGER_MASK, (trigger)) | \
| ^~~~~~~~~~
include/linux/acpi.h:126:22: note: in expansion of macro 'ACPI_STATIC_IRQ_FLAGS'
126 | irq->flags = ACPI_STATIC_IRQ_FLAGS(trigger, polarity);
| ^~~~~~~~~~~~~~~~~~~~~
In file included from include/asm-generic/div64.h:27,
from arch/x86/include/asm/div64.h:100,
from include/linux/math.h:6,
from include/linux/delay.h:12,
from sound/hda/controllers/intel.c:23:
sound/hda/controllers/intel.c: At top level:
>> include/linux/compiler.h:200:82: error: expression in static assertion is not an integer
200 | #define __BUILD_BUG_ON_ZERO_MSG(e, msg, ...) ((int)sizeof(struct {_Static_assert(!(e), msg);}))
| ^
include/linux/compiler.h:205:33: note: in expansion of macro '__BUILD_BUG_ON_ZERO_MSG'
205 | #define __must_be_array(a) __BUILD_BUG_ON_ZERO_MSG(!__is_array(a), \
| ^~~~~~~~~~~~~~~~~~~~~~~
include/linux/array_size.h:11:59: note: in expansion of macro '__must_be_array'
11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr))
| ^~~~~~~~~~~~~~~
include/linux/moduleparam.h:544:20: note: in expansion of macro 'ARRAY_SIZE'
544 | = { .max = ARRAY_SIZE(array), .num = nump, \
| ^~~~~~~~~~
include/linux/moduleparam.h:528:9: note: in expansion of macro 'module_param_array_named'
528 | module_param_array_named(name, name, type, nump, perm)
| ^~~~~~~~~~~~~~~~~~~~~~~~
sound/hda/controllers/intel.c:127:1: note: in expansion of macro 'module_param_array'
127 | module_param_array(index, int, NULL, 0444);
| ^~~~~~~~~~~~~~~~~~
>> sound/hda/controllers/intel.c:106:12: warning: 'index' defined but not used [-Wunused-variable]
106 | static int index[SNDRV_CARDS] = SNDRV_DEFAULT_IDX;
| ^~~~~
--
In file included from intel.c:38:
include/linux/acpi.h: In function 'acpi_static_fwnode_add_irq':
>> include/linux/acpi.h:71:10: error: implicit declaration of function 'FIELD_PREP' [-Wimplicit-function-declaration]
71 | (FIELD_PREP(ACPI_STATIC_IRQ_TRIGGER_MASK, (trigger)) | \
| ^~~~~~~~~~
include/linux/acpi.h:126:22: note: in expansion of macro 'ACPI_STATIC_IRQ_FLAGS'
126 | irq->flags = ACPI_STATIC_IRQ_FLAGS(trigger, polarity);
| ^~~~~~~~~~~~~~~~~~~~~
In file included from include/asm-generic/div64.h:27,
from arch/x86/include/asm/div64.h:100,
from include/linux/math.h:6,
from include/linux/delay.h:12,
from intel.c:23:
intel.c: At top level:
>> include/linux/compiler.h:200:82: error: expression in static assertion is not an integer
200 | #define __BUILD_BUG_ON_ZERO_MSG(e, msg, ...) ((int)sizeof(struct {_Static_assert(!(e), msg);}))
| ^
include/linux/compiler.h:205:33: note: in expansion of macro '__BUILD_BUG_ON_ZERO_MSG'
205 | #define __must_be_array(a) __BUILD_BUG_ON_ZERO_MSG(!__is_array(a), \
| ^~~~~~~~~~~~~~~~~~~~~~~
include/linux/array_size.h:11:59: note: in expansion of macro '__must_be_array'
11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr))
| ^~~~~~~~~~~~~~~
include/linux/moduleparam.h:544:20: note: in expansion of macro 'ARRAY_SIZE'
544 | = { .max = ARRAY_SIZE(array), .num = nump, \
| ^~~~~~~~~~
include/linux/moduleparam.h:528:9: note: in expansion of macro 'module_param_array_named'
528 | module_param_array_named(name, name, type, nump, perm)
| ^~~~~~~~~~~~~~~~~~~~~~~~
intel.c:127:1: note: in expansion of macro 'module_param_array'
127 | module_param_array(index, int, NULL, 0444);
| ^~~~~~~~~~~~~~~~~~
intel.c:106:12: warning: 'index' defined but not used [-Wunused-variable]
106 | static int index[SNDRV_CARDS] = SNDRV_DEFAULT_IDX;
| ^~~~~
vim +/FIELD_PREP +71 include/linux/acpi.h
5df91ea5bcbef51 Lorenzo Pieralisi 2026-09-04 69
5df91ea5bcbef51 Lorenzo Pieralisi 2026-09-04 70 #define ACPI_STATIC_IRQ_FLAGS(trigger, polarity) \
5df91ea5bcbef51 Lorenzo Pieralisi 2026-09-04 @71 (FIELD_PREP(ACPI_STATIC_IRQ_TRIGGER_MASK, (trigger)) | \
5df91ea5bcbef51 Lorenzo Pieralisi 2026-09-04 72 FIELD_PREP(ACPI_STATIC_IRQ_POLARITY_MASK, (polarity)))
5df91ea5bcbef51 Lorenzo Pieralisi 2026-09-04 73
5df91ea5bcbef51 Lorenzo Pieralisi 2026-09-04 74 #define ACPI_STATIC_IRQ_TRIGGER(flags) \
5df91ea5bcbef51 Lorenzo Pieralisi 2026-09-04 @75 FIELD_GET(ACPI_STATIC_IRQ_TRIGGER_MASK, (flags))
5df91ea5bcbef51 Lorenzo Pieralisi 2026-09-04 76 #define ACPI_STATIC_IRQ_POLARITY(flags) \
5df91ea5bcbef51 Lorenzo Pieralisi 2026-09-04 77 FIELD_GET(ACPI_STATIC_IRQ_POLARITY_MASK, (flags))
5df91ea5bcbef51 Lorenzo Pieralisi 2026-09-04 78
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
next reply other threads:[~2026-11-21 0:04 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-21 0:04 kernel test robot [this message]
-- strict thread matches above, loose matches on Subject: below --
2026-11-20 23:32 [lpieralisi:b4/acpi-static-table-irq-probe-defer-v2 3/10] include/linux/acpi.h:71:10: error: implicit declaration of function 'FIELD_PREP' kernel test robot
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=20261121005445.XTnGDF7r-lkp@intel.com \
--to=lkp@intel.com \
--cc=oe-kbuild@lists.linux.dev \
/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 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.