* [asahilinux:bits/240-isp 65/67] drivers/media/platform/apple/avd/avd-av1.c:115:33: error: implicit declaration of function 'FIELD_PREP'
@ 2026-08-10 20:45 kernel test robot
0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2026-08-10 20:45 UTC (permalink / raw)
To: sofus; +Cc: oe-kbuild-all, Janne Grunau
tree: https://github.com/AsahiLinux/linux bits/240-isp
head: 6b01d08e5d4d33d4a7cdfb1ecea6f78e295bfd75
commit: 0d6dcb9b11b41af215b8a8443b0e3f7d5aa6c110 [65/67] media: apple: avd: add av1 support
config: alpha-allyesconfig (https://download.01.org/0day-ci/archive/20260811/202608110446.ZUUTBSNC-lkp@intel.com/config)
compiler: alpha-linux-gcc (GCC) 16.1.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260811/202608110446.ZUUTBSNC-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/202608110446.ZUUTBSNC-lkp@intel.com/
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' [-Wimplicit-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)
| ^~~~
vim +/FIELD_PREP +115 drivers/media/platform/apple/avd/avd-av1.c
24
25 #include "avd.h"
26 #include "avd-av1-entropymode.h"
> 27 #include "avd-inst.h"
28
29 /*
30 * This comes from
31 * verisilicon/rockchip_vpu981_hw_av1_dec.c
32 *
33 * These 3 values aren't defined enum v4l2_av1_segment_feature because
34 * they are not part of the specification
35 */
36 #define V4L2_AV1_SEG_LVL_ALT_LF_Y_H 2
37 #define V4L2_AV1_SEG_LVL_ALT_LF_U 3
38 #define V4L2_AV1_SEG_LVL_ALT_LF_V 4
39
40 #define AV1_DIV_ROUND_UP_POW2(value, n) \
41 ({ \
42 typeof(n) _n = n; \
43 typeof(value) _value = value; \
44 (_value + (BIT(_n) >> 1)) >> _n; \
45 })
46
47 #define AV1_DIV_ROUND_UP_POW2_SIGNED(value, n) \
48 ({ \
49 typeof(n) _n_ = n; \
50 typeof(value) _value_ = value; \
51 (((_value_) < 0) ? -AV1_DIV_ROUND_UP_POW2(-(_value_), (_n_)) \
52 : AV1_DIV_ROUND_UP_POW2((_value_), (_n_))); \
53 })
54
55 #define DIV_LUT_BITS 8
56 #define DIV_LUT_NUM BIT(DIV_LUT_BITS)
57 #define DIV_LUT_PREC_BITS 14
58 #define WARPEDMODEL_PREC_BITS 16
59 #define WARP_PARAM_REDUCE_BITS 6
60
61 #define AV1_CODEC_MODE_INTRABC(v) FIELD_PREP(BIT(28), !!(v))
62
63 #define AV1_HDR_JNT_COMP(v) FIELD_PREP(BIT(0), !!(v))
64 #define AV1_HDR_DUAL_FILTER(v) FIELD_PREP(BIT(5), !!(v))
65 #define AV1_HDR_MASKED_COMPOUND(v) FIELD_PREP(BIT(6), !!(v))
66 #define AV1_HDR_INTRA_EDGE_FILTER(v) FIELD_PREP(BIT(8), !!(v))
67 #define AV1_HDR_128X128_SUPERBLOCK(v) FIELD_PREP(BIT(10), !!(v))
68 #define AV1_HDR_SCREEN_CONTENT_TOOLS(v) FIELD_PREP(BIT(11), !!(v))
69
70 #define AV1_FLAGS_TX_MODE_LARGEST(v) FIELD_PREP(BIT(0), !!(v))
71 #define AV1_FLAGS_TX_MODE_SELECT(v) FIELD_PREP(BIT(1), !!(v))
72 #define AV1_FLAGS_TX_REDUCED_SET(v) FIELD_PREP(BIT(2), !!(v))
73 #define AV1_FLAGS_ALLOW_WARPED_MOTION(v) FIELD_PREP(BIT(3), !!(v))
74 #define AV1_FLAGS_SKIP_MODE(v) FIELD_PREP(BIT(4), !!(v))
75 #define AV1_FLAGS_INTRABC(v) FIELD_PREP(BIT(6), !!(v))
76 #define AV1_FLAGS_INTEGER_MV(v) FIELD_PREP(BIT(7), !!(v))
77 #define AV1_FLAGS_DISABLE_CDF_UPDATE(v) FIELD_PREP(BIT(8), !!(v))
78 #define AV1_FLAGS_TX_MODE_ONLY_4X4(v) FIELD_PREP(BIT(9), !!(v))
79 #define AV1_FLAGS_HIGH_PRECISION_MV(v) FIELD_PREP(BIT(10), !!(v))
80 #define AV1_FLAGS_SEG_TEMPORAL_UPDATE(v) FIELD_PREP(BIT(13), !!(v))
81 #define AV1_FLAGS_SEG_UPDATE_MAP(v) FIELD_PREP(BIT(14), !!(v))
82 #define AV1_FLAGS_SEG_ENABLED(v) FIELD_PREP(BIT(15), !!(v))
83 #define AV1_FLAGS_SEG_UPDATE_DATA(v) FIELD_PREP(BIT(16), !!(v))
84 #define AV1_FLAGS_INTRA(v) FIELD_PREP(BIT(31), !!(v))
85 #define AV1_FLAGS_ORDER_HINT(v) FIELD_PREP(GENMASK(30, 23), v)
86
87 #define AV1_FLAGS_REFERENCE_SELECT(v) FIELD_PREP(BIT(28), !!(v))
88 #define AV1_FLAGS_INTERPOLATION_FILTER(v) FIELD_PREP(GENMASK(31, 29), v)
89
90 #define AV1_SEG_ALT_Q(v) FIELD_PREP(GENMASK(8, 0), v)
91 #define AV1_SEG_ALT_Q_EN(v) FIELD_PREP(BIT(9), !!(v))
92 #define AV1_SEG_REF_FRAME(v) FIELD_PREP(GENMASK(12, 10), v)
93 #define AV1_SEG_REF_FRAME_EN(v) FIELD_PREP(BIT(13), !!(v))
94 #define AV1_SEG_REF_SKIP_EN(v) FIELD_PREP(BIT(14), !!(v))
95 #define AV1_SEG_REF_GMV_EN(v) FIELD_PREP(BIT(15), !!(v))
96
97 #define AV1_SEG_LF_V(v) FIELD_PREP(GENMASK(6, 0), v)
98 #define AV1_SEG_LF_V_EN(v) FIELD_PREP(BIT(7), !!(v))
99 #define AV1_SEG_LF_U(v) FIELD_PREP(GENMASK(14, 8), v)
100 #define AV1_SEG_LF_U_EN(v) FIELD_PREP(BIT(15), !!(v))
101 #define AV1_SEG_LF_Y_H(v) FIELD_PREP(GENMASK(22, 16), v)
102 #define AV1_SEG_LF_Y_H_EN(v) FIELD_PREP(BIT(23), !!(v))
103 #define AV1_SEG_LF_Y_V(v) FIELD_PREP(GENMASK(30, 24), v)
104 #define AV1_SEG_LF_Y_V_EN(v) FIELD_PREP(BIT(31), !!(v))
105
106 #define AV1_SEG_UNK0(v) FIELD_PREP(BIT(16), !!(v))
107
108 #define AV1_QP_U_DC(v) FIELD_PREP(GENMASK(13, 7), v)
109 #define AV1_QP_Y_DC(v) FIELD_PREP(GENMASK(20, 14), v)
110 #define AV1_QP_BASE_IDX(v) FIELD_PREP(GENMASK(28, 21), v)
111 #define AV1_QP_DELTA_RES(v) FIELD_PREP(GENMASK(30, 29), v)
112 #define AV1_QP_PRESENT(v) FIELD_PREP(BIT(31), !!(v))
113
114 #define AV1_GM_VALID(v) FIELD_PREP(BIT(30), !!(v))
> 115 #define AV1_GM_TYPE(v) FIELD_PREP(GENMASK(31, 30), v)
116 #define AV1_GM_PARAM0(v) FIELD_PREP(GENMASK(29, 15), v)
117 #define AV1_GM_PARAM1(v) FIELD_PREP(GENMASK(14, 0), v)
118
--
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-08-10 20:46 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-08-10 20:45 [asahilinux:bits/240-isp 65/67] drivers/media/platform/apple/avd/avd-av1.c:115:33: error: implicit declaration of function 'FIELD_PREP' 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.