All of lore.kernel.org
 help / color / mirror / Atom feed
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 88/89] 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
Date: Thu, 10 Sep 2026 22:26:27 +0800	[thread overview]
Message-ID: <202609102230.0CiPrrA3-lkp@intel.com> (raw)

tree:   https://github.com/AsahiLinux/linux bits/240-isp
head:   e31aa85e339c10dbf872c0759d5a6c35954af0cc
commit: 0765a0974a15233ed105e144fec796291dacb32d [88/89] media: apple: avd: add a dedicated "submit" step
config: x86_64-allmodconfig (https://download.01.org/0day-ci/archive/20260910/202609102230.0CiPrrA3-lkp@intel.com/config)
compiler: clang version 22.1.3 (https://github.com/llvm/llvm-project e9846648fd6183ee6d8cbdb4502213fcf902a211)
rustc: rustc 1.96.0 (ac68faa20 2026-05-25)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260910/202609102230.0CiPrrA3-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/202609102230.0CiPrrA3-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

                 reply	other threads:[~2026-09-10 14:42 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=202609102230.0CiPrrA3-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.