From: kernel test robot <lkp@intel.com>
To: sofus <sofus.c@icloud.com>
Cc: llvm@lists.linux.dev, oe-kbuild-all@lists.linux.dev,
Janne Grunau <j@jannau.net>
Subject: [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
Date: Sun, 18 Oct 2026 15:28:02 +0800 [thread overview]
Message-ID: <202610181520.1vfRMIBE-lkp@intel.com> (raw)
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
reply other threads:[~2026-10-18 7:28 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=202610181520.1vfRMIBE-lkp@intel.com \
--to=lkp@intel.com \
--cc=j@jannau.net \
--cc=llvm@lists.linux.dev \
--cc=oe-kbuild-all@lists.linux.dev \
--cc=sofus.c@icloud.com \
/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.