drivers/media/platform/apple/avd/avd-inst.h:141:41: error: implicit declaration of function 'FIELD_PREP'
kernel test robot
build bot::::::
:::::: Manual check reason: "too many reports for this commit" ::::::
BCC: [email protected]
CC: [email protected]
TO: sofus <[email protected]>
CC: Janne Grunau <[email protected]>
Hi sofus,
FYI, the error/warning still remains.
tree: https://github.com/AsahiLinux/linux bits/240-isp head: a8d695c590dce32e51a585ee96711819849e01be commit: d0352139c245fdd54bce14b5de508b45ccdf5b8a [11/104] media: apple: avd: define static values and bitmasks
:::::: branch date: 13 hours ago
:::::: commit date: 4 weeks ago
config: s390-randconfig-2004-20261130 (https://download.01.org/0day-ci/archive/20261130/[email protected]/config)
compiler: s390-linux-gcc (GCC) 13.5.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20261130/[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/media/platform/apple/avd/avd-h264.c:24:
drivers/media/platform/apple/avd/avd-h264.c: In function 'stream_refs':
>> drivers/media/platform/apple/avd/avd-inst.h:141:41: error: implicit declaration of function 'FIELD_PREP' [-Werror=implicit-function-declaration]
141 | #define AVD_REF_NUM(v) FIELD_PREP(GENMASK(31, 28), v)
| ^~~~~~~~~~
drivers/media/platform/apple/avd/avd-inst.h:195:41: note: in definition of macro 'push'
195 | #define push(inst, name) push(avd, ctx, inst)
| ^~~~
drivers/media/platform/apple/avd/avd-h264.c:127:22: note: in expansion of macro 'AVD_REF_NUM'
127 | push(AVD_REF_NUM(run->num_valid - 1)
| ^~~~~~~~~~~ cc1: some warnings being treated as errors
--
In file included from drivers/media/platform/apple/avd/avd-hevc.c:25:
drivers/media/platform/apple/avd/avd-hevc.c: In function 'stream_refs':
>> drivers/media/platform/apple/avd/avd-inst.h:141:41: error: implicit declaration of function 'FIELD_PREP' [-Werror=implicit-function-declaration]
141 | #define AVD_REF_NUM(v) FIELD_PREP(GENMASK(31, 28), v)
| ^~~~~~~~~~
drivers/media/platform/apple/avd/avd-inst.h:195:41: note: in definition of macro 'push'
195 | #define push(inst, name) push(avd, ctx, inst)
| ^~~~
drivers/media/platform/apple/avd/avd-hevc.c:125:22: note: in expansion of macro 'AVD_REF_NUM'
125 | push(AVD_REF_NUM(decode->num_active_dpb_entries - 1)
| ^~~~~~~~~~~cc1: some warnings being treated as errors
vim +/FIELD_PREP +141 drivers/media/platform/apple/avd/avd-inst.h
d0352139c245fdd sofus 2026-08-02 140
d0352139c245fdd sofus 2026-08-02 @141 #define AVD_REF_NUM(v) FIELD_PREP(GENMASK(31, 28), v) d0352139c245fdd sofus 2026-08-02 142 #define AVD_REF_FLAG_CONST FIELD_PREP(BIT(24), 1) d0352139c245fdd sofus 2026-08-02 143 #define AVD_REF_FLAG_LONG(v) FIELD_PREP(BIT(17), !!(v)) d0352139c245fdd sofus 2026-08-02 144 #define AVD_REF_DELTA_POC(v) FIELD_PREP(GENMASK(16, 0), v)
d0352139c245fdd sofus 2026-08-02 145
Signature · 2 lines
0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki