* [asahilinux:bits/240-isp 63/92] drivers/media/platform/apple/avd/avd-vp9.c:197:8: error: call to undeclared function 'FIELD_PREP'; ISO C99 and later do not support implicit function declarations
@ 2026-10-18 7:28 kernel test robot
0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2026-10-18 7:28 UTC (permalink / raw)
To: sofus; +Cc: llvm, oe-kbuild-all, Janne Grunau
tree: https://github.com/AsahiLinux/linux bits/240-isp
head: c792edd0ffb515a81db3e039bc6e2a611c51d65b
commit: 5a2ea5f4d6517dd100d8b717e9eb203e6fa1114e [63/92] media: apple: avd: define static values and bitmasks
config: s390-allmodconfig (https://download.01.org/0day-ci/archive/20261018/202610181520.1vfRMIBE-lkp@intel.com/config)
compiler: clang version 24.0.0git (https://github.com/llvm/llvm-project 6719b9e31d6a93099612c474eec76d9f41d0275a)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20261018/202610181520.1vfRMIBE-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/202610181520.1vfRMIBE-lkp@intel.com/
All errors (new ones prefixed by >>):
>> drivers/media/platform/apple/avd/avd-vp9.c:197:8: error: call to undeclared function 'FIELD_PREP'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
197 | push(AVD_REF_FLAG_CONST, "hdr_9c_ref_100");
| ^
drivers/media/platform/apple/avd/avd-inst.h:142:29: note: expanded from macro 'AVD_REF_FLAG_CONST'
142 | #define AVD_REF_FLAG_CONST FIELD_PREP(BIT(24), 1)
| ^
drivers/media/platform/apple/avd/avd-vp9.c:266:9: error: call to undeclared function 'FIELD_PREP'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
266 | return VP9_FEAT_LVL_ALT_Q(feature_val) | enabled;
| ^
drivers/media/platform/apple/avd/avd-vp9.c:42:32: note: expanded from macro 'VP9_FEAT_LVL_ALT_Q'
42 | #define VP9_FEAT_LVL_ALT_Q(v) FIELD_PREP(GENMASK(21, 12), v)
| ^
drivers/media/platform/apple/avd/avd-vp9.c:281:7: error: call to undeclared function 'FIELD_PREP'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
281 | push(AVD_OP_EXEC
| ^
drivers/media/platform/apple/avd/avd-inst.h:15:23: note: expanded from macro 'AVD_OP_EXEC'
15 | #define AVD_OP_EXEC FIELD_PREP(GENMASK(31, 24), 0x2b)
| ^
drivers/media/platform/apple/avd/avd-vp9.c:434:9: error: call to undeclared function 'FIELD_PREP'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
434 | push(AVD_OP_CODED_DATA |
| ^
drivers/media/platform/apple/avd/avd-inst.h:45:28: note: expanded from macro 'AVD_OP_CODED_DATA'
45 | #define AVD_OP_CODED_DATA FIELD_PREP(GENMASK(31, 20), 0x2d8)
| ^
4 errors generated.
vim +/FIELD_PREP +197 drivers/media/platform/apple/avd/avd-vp9.c
173
174 static void set_refs(struct avd_ctx *ctx, struct avd_vp9_run *run)
175 {
176 const struct v4l2_ctrl_vp9_frame *frame = run->decode_params;
177 struct avd_dev *avd = ctx->dev;
178 struct avd_decoded_buffer *dst, *ref_buf[4];
179 dma_addr_t addr;
180
181 dst = vb2_to_avd_decoded_buf(&run->base.bufs.dst->vb2_buf);
182
183 ref_buf[0] = avd_get_ref_buf(ctx, &dst->base.vb, frame->last_frame_ts);
184 ref_buf[1] = avd_get_ref_buf(ctx, &dst->base.vb, frame->golden_frame_ts);
185 ref_buf[2] = avd_get_ref_buf(ctx, &dst->base.vb, frame->alt_frame_ts);
186
187 push(INST_DMA3, "cm3_dma_config_7");
188 push(INST_DMA3, "cm3_dma_config_8");
189 push(INST_DMA3, "cm3_dma_config_9");
190
191 for (int i = 0; i < V4L2_VP9_NUM_FRAME_CTX - 1; i++) {
192
193 addr = vb2_dma_contig_plane_dma_addr(&ref_buf[i]->base.vb.vb2_buf, 0)
194 + (ref_buf[i]->base.vb.planes[0].length - ref_buf[i]->rvra.size);
195
196 /* TODO */
> 197 push(AVD_REF_FLAG_CONST, "hdr_9c_ref_100");
198 push(AVD_HDR_HEIGHT(ref_buf[i]->vp9.height - 1) |
199 AVD_HDR_WIDTH(ref_buf[i]->vp9.width - 1),
200 "hdr_70_ref_height_width");
201 push(0x40004000, "hdr_7c_ref_align");
202
203 push_rvra(avd, ctx, addr, ref_buf[i]->rvra.offsets);
204 }
205 }
206
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2026-10-18 7:28 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-10-18 7:28 [asahilinux:bits/240-isp 63/92] drivers/media/platform/apple/avd/avd-vp9.c:197:8: error: call to undeclared function 'FIELD_PREP'; 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.