* [asahilinux:bits/240-isp 88/94] drivers/media/platform/apple/avd/avd-drv.c:155:5: error: call to undeclared function 'FIELD_PREP'; ISO C99 and later do not support implicit function declarations
@ 2026-10-30 18:41 kernel test robot
0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2026-10-30 18:41 UTC (permalink / raw)
To: sofus; +Cc: llvm, oe-kbuild-all, Janne Grunau
Hi sofus,
FYI, the error/warning still remains.
tree: https://github.com/AsahiLinux/linux bits/240-isp
head: 2e6ef8294919b4bd7b23756d836b447b0b4ffb5f
commit: 0765a0974a15233ed105e144fec796291dacb32d [88/94] media: apple: avd: add a dedicated "submit" step
config: x86_64-allyesconfig (https://download.01.org/0day-ci/archive/20261031/202610310246.uoJRTKaf-lkp@intel.com/config)
compiler: clang version 22.1.8 (https://github.com/llvm/llvm-project ca7933e47d3a3451d81e72ac174dcb5aa28b59d1)
rustc: rustc 1.96.0 (ac68faa20 2026-05-25)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20261031/202610310246.uoJRTKaf-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/202610310246.uoJRTKaf-lkp@intel.com/
All errors (new ones prefixed by >>):
>> drivers/media/platform/apple/avd/avd-drv.c:155:5: error: call to undeclared function 'FIELD_PREP'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
155 | AVD_OP_EXEC_REV3_VP9_MASK :
| ^
drivers/media/platform/apple/avd/avd-inst.h:16:35: note: expanded from macro 'AVD_OP_EXEC_REV3_VP9_MASK'
16 | #define AVD_OP_EXEC_REV3_VP9_MASK FIELD_PREP(GENMASK(23, 12), 0xfff)
| ^
1 error generated.
vim +/FIELD_PREP +155 drivers/media/platform/apple/avd/avd-drv.c
145
146 int avd_submit_job(struct avd_ctx *ctx)
147 {
148 struct avd_dev *avd = ctx->dev;
149 struct avd_job *sub = &ctx->job;
150 struct avd_segment *seg;
151 int i, idx = 0, vp = 0;
152 void __iomem *reg;
153 u32 exec_mask = sub->codec == AVD_CODEC_VP9 &&
154 avd->variant->revision == 3 ?
> 155 AVD_OP_EXEC_REV3_VP9_MASK :
156 0;
157 u32 exec_rev_flag =
158 AVD_OP_EXEC_FLAG_START_REV4(avd->variant->revision == 4) |
159 AVD_OP_EXEC_FLAG_START_REV3(avd->variant->revision == 3);
160
161 ctx->fifo_idx = 0;
162 for (i = 0; i < sub->codec; i++)
163 vp += avd->variant->vp_slots[i];
164
165 schedule_delayed_work(&ctx->watchdog_work, msecs_to_jiffies(2000));
166 avd->variant->configure_stream(avd, ctx->inst.addr, ctx->fifo_idx, vp);
167 reg = avd->ctrl + avd->variant->vp_slot_offset + vp * 4;
168
169 /* the first segment is always the header (needs special handling) */
170
171 writel(AVD_OP_EXEC | exec_mask | exec_rev_flag |
172 AVD_OP_EXEC_FIFO_IDX(ctx->fifo_idx),
173 reg);
174 seg = &sub->segments[idx++];
175 for (i = 0; i < seg->num; i++)
176 writel(seg->instructions[i], reg);
177 for (; idx <= sub->num; idx++) {
178 seg = &sub->segments[idx];
179 for (i = 0; i < seg->num; i++)
180 writel(seg->instructions[i], reg);
181 if (avd_wait_submission_queue(ctx, vp))
182 break;
183 writel(AVD_OP_EXEC | exec_mask |
184 AVD_OP_EXEC_FLAG_END(idx == sub->num),
185 reg);
186 }
187
188 kfree(sub->segments);
189 sub->segments = NULL;
190 return 0;
191 }
192
--
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-30 18:41 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-10-30 18:41 [asahilinux:bits/240-isp 88/94] drivers/media/platform/apple/avd/avd-drv.c:155:5: error: call to undeclared function 'FIELD_PREP'; ISO C99 and later do not support implicit function declarations kernel test robot
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox