Skip to contentSkip to conversation

drivers/media/platform/apple/avd/avd-av1.c:115:33: error: implicit declaration of function 'FIELD_PREP'

PATCH kernel test robot 1 participant 1 message Nov 30

lore
Share & tools
lore

kernel test robot

author build bot
#0 lore raw

::::::
:::::: 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: af81002d6674818b48f855da796c69b52322b45a [12/104] media: apple: avd: add av1 support

:::::: branch date: 16 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-av1.c:27:
drivers/media/platform/apple/avd/avd-av1.c: In function 'set_refs':

>> drivers/media/platform/apple/avd/avd-av1.c:115:33: error: implicit declaration of function 'FIELD_PREP' [-Werror=implicit-function-declaration]
     115 | #define AV1_GM_TYPE(v)          FIELD_PREP(GENMASK(31, 30), 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-av1.c:315:30: note: in expansion of macro 'AV1_GM_TYPE'
     315 |                         push(AV1_GM_TYPE(gm->type[ref_idx]) |
         |                              ^~~~~~~~~~~
   drivers/media/platform/apple/avd/avd-av1.c: In function 'set_header':
   drivers/media/platform/apple/avd/avd-av1.c:586:47: warning: suggest parentheses around arithmetic in operand of '|' [-Wparentheses]
     586 |                         frame->upscaled_width - 1, "upscaled_width");
         |                         ~~~~~~~~~~~~~~~~~~~~~~^~~

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)
| ^~~~
cc1: some warnings being treated as errors

vim +/FIELD_PREP +115 drivers/media/platform/apple/avd/avd-av1.c

af81002d6674818 sofus 2026-08-02 113

af81002d6674818 sofus 2026-08-02  114  #define AV1_GM_VALID(v)		FIELD_PREP(BIT(30), !!(v))
af81002d6674818 sofus 2026-08-02 @115  #define AV1_GM_TYPE(v)		FIELD_PREP(GENMASK(31, 30), v)
af81002d6674818 sofus 2026-08-02  116  #define AV1_GM_PARAM0(v)	FIELD_PREP(GENMASK(29, 15), v)
af81002d6674818 sofus 2026-08-02  117  #define AV1_GM_PARAM1(v)	FIELD_PREP(GENMASK(14, 0), v)

af81002d6674818 sofus 2026-08-02 118

Signature · 2 lines
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki