Hi Harry, [FYI, it's a private test report for your RFC patch.] [auto build test ERROR on drm-intel/for-linux-next] [also build test ERROR on linus/master v5.14-rc3 next-20210730] [cannot apply to linux-arm/drm-armada-devel linux-arm/drm-armada-fixes] [If your patch is applied to the wrong git tree, kindly drop us a note. And when submitting patch, we suggest to use '--base' as documented in https://git-scm.com/docs/git-format-patch] url: https://github.com/0day-ci/linux/commits/Harry-Wentland/A-drm_plane-API-to-support-HDR-planes/20210731-044401 base: git://anongit.freedesktop.org/drm-intel for-linux-next config: ia64-randconfig-r016-20210730 (attached as .config) compiler: ia64-linux-gcc (GCC) 10.3.0 reproduce (this is a W=1 build): wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross chmod +x ~/bin/make.cross # https://github.com/0day-ci/linux/commit/c326e234abc27458025fafb1a4519d37bb47df68 git remote add linux-review https://github.com/0day-ci/linux git fetch --no-tags linux-review Harry-Wentland/A-drm_plane-API-to-support-HDR-planes/20210731-044401 git checkout c326e234abc27458025fafb1a4519d37bb47df68 # save the attached .config to linux build tree mkdir build_dir COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-10.3.0 make.cross O=build_dir ARCH=ia64 SHELL=/bin/bash drivers/gpu/drm/tidss/ If you fix the issue, kindly add following tag as appropriate Reported-by: kernel test robot All errors (new ones prefixed by >>): In file included from arch/ia64/include/asm/pgtable.h:153, from include/linux/pgtable.h:6, from arch/ia64/include/asm/uaccess.h:40, from include/linux/uaccess.h:11, from include/linux/sched/task.h:11, from include/linux/sched/signal.h:9, from include/linux/rcuwait.h:6, from include/linux/percpu-rwsem.h:7, from include/linux/fs.h:33, from include/linux/cgroup.h:17, from include/linux/memcontrol.h:13, from include/linux/swap.h:9, from include/linux/suspend.h:5, from include/linux/regulator/consumer.h:35, from include/linux/i2c.h:18, from include/drm/drm_crtc.h:28, from include/drm/drm_atomic.h:31, from drivers/gpu/drm/tidss/tidss_plane.c:7: arch/ia64/include/asm/mmu_context.h: In function 'reload_context': arch/ia64/include/asm/mmu_context.h:127:41: warning: variable 'old_rr4' set but not used [-Wunused-but-set-variable] 127 | unsigned long rr0, rr1, rr2, rr3, rr4, old_rr4; | ^~~~~~~ drivers/gpu/drm/tidss/tidss_plane.c: In function 'tidss_plane_create': >> drivers/gpu/drm/tidss/tidss_plane.c:242: error: unterminated argument list invoking macro "BIT" 242 | } | >> drivers/gpu/drm/tidss/tidss_plane.c:189:27: error: 'BIT' undeclared (first use in this function) 189 | u32 transfer_functions = BIT(DRM_TF_UNDEFINED; | ^~~ drivers/gpu/drm/tidss/tidss_plane.c:189:27: note: each undeclared identifier is reported only once for each function it appears in >> drivers/gpu/drm/tidss/tidss_plane.c:189:2: error: expected ',' or ';' at end of input 189 | u32 transfer_functions = BIT(DRM_TF_UNDEFINED; | ^~~ >> drivers/gpu/drm/tidss/tidss_plane.c:189:2: error: expected declaration or statement at end of input drivers/gpu/drm/tidss/tidss_plane.c:189:6: warning: unused variable 'transfer_functions' [-Wunused-variable] 189 | u32 transfer_functions = BIT(DRM_TF_UNDEFINED; | ^~~~~~~~~~~~~~~~~~ drivers/gpu/drm/tidss/tidss_plane.c:187:6: warning: unused variable 'color_ranges' [-Wunused-variable] 187 | u32 color_ranges = (BIT(DRM_COLOR_YCBCR_FULL_RANGE) | | ^~~~~~~~~~~~ drivers/gpu/drm/tidss/tidss_plane.c:185:6: warning: unused variable 'color_encodings' [-Wunused-variable] 185 | u32 color_encodings = (BIT(DRM_COLOR_YCBCR_BT601) | | ^~~~~~~~~~~~~~~ drivers/gpu/drm/tidss/tidss_plane.c:184:6: warning: unused variable 'num_planes' [-Wunused-variable] 184 | u32 num_planes = tidss->feat->num_planes; | ^~~~~~~~~~ drivers/gpu/drm/tidss/tidss_plane.c:183:6: warning: unused variable 'possible_crtcs' [-Wunused-variable] 183 | u32 possible_crtcs; | ^~~~~~~~~~~~~~ drivers/gpu/drm/tidss/tidss_plane.c:182:22: warning: unused variable 'type' [-Wunused-variable] 182 | enum drm_plane_type type; | ^~~~ drivers/gpu/drm/tidss/tidss_plane.c:181:22: warning: unused variable 'tplane' [-Wunused-variable] 181 | struct tidss_plane *tplane; | ^~~~~~ drivers/gpu/drm/tidss/tidss_plane.c:242: error: control reaches end of non-void function [-Werror=return-type] 242 | } | At top level: drivers/gpu/drm/tidss/tidss_plane.c:167:37: warning: 'tidss_plane_funcs' defined but not used [-Wunused-const-variable=] 167 | static const struct drm_plane_funcs tidss_plane_funcs = { | ^~~~~~~~~~~~~~~~~ drivers/gpu/drm/tidss/tidss_plane.c:160:44: warning: 'tidss_plane_helper_funcs' defined but not used [-Wunused-const-variable=] 160 | static const struct drm_plane_helper_funcs tidss_plane_helper_funcs = { | ^~~~~~~~~~~~~~~~~~~~~~~~ cc1: some warnings being treated as errors vim +/BIT +242 drivers/gpu/drm/tidss/tidss_plane.c 32a1795f57eecc Jyri Sarha 2019-11-08 175 32a1795f57eecc Jyri Sarha 2019-11-08 176 struct tidss_plane *tidss_plane_create(struct tidss_device *tidss, 32a1795f57eecc Jyri Sarha 2019-11-08 177 u32 hw_plane_id, u32 plane_type, 32a1795f57eecc Jyri Sarha 2019-11-08 178 u32 crtc_mask, const u32 *formats, 32a1795f57eecc Jyri Sarha 2019-11-08 179 u32 num_formats) 32a1795f57eecc Jyri Sarha 2019-11-08 180 { 32a1795f57eecc Jyri Sarha 2019-11-08 181 struct tidss_plane *tplane; 32a1795f57eecc Jyri Sarha 2019-11-08 182 enum drm_plane_type type; 32a1795f57eecc Jyri Sarha 2019-11-08 183 u32 possible_crtcs; 32a1795f57eecc Jyri Sarha 2019-11-08 184 u32 num_planes = tidss->feat->num_planes; 32a1795f57eecc Jyri Sarha 2019-11-08 185 u32 color_encodings = (BIT(DRM_COLOR_YCBCR_BT601) | 32a1795f57eecc Jyri Sarha 2019-11-08 186 BIT(DRM_COLOR_YCBCR_BT709)); 32a1795f57eecc Jyri Sarha 2019-11-08 187 u32 color_ranges = (BIT(DRM_COLOR_YCBCR_FULL_RANGE) | 32a1795f57eecc Jyri Sarha 2019-11-08 188 BIT(DRM_COLOR_YCBCR_LIMITED_RANGE)); c326e234abc274 Bhawanpreet Lakha 2021-07-30 @189 u32 transfer_functions = BIT(DRM_TF_UNDEFINED; 32a1795f57eecc Jyri Sarha 2019-11-08 190 u32 default_encoding = DRM_COLOR_YCBCR_BT601; 32a1795f57eecc Jyri Sarha 2019-11-08 191 u32 default_range = DRM_COLOR_YCBCR_FULL_RANGE; c326e234abc274 Bhawanpreet Lakha 2021-07-30 192 u32 default_tf = DRM_TF_UNDEFINED;; 32a1795f57eecc Jyri Sarha 2019-11-08 193 u32 blend_modes = (BIT(DRM_MODE_BLEND_PREMULTI) | 32a1795f57eecc Jyri Sarha 2019-11-08 194 BIT(DRM_MODE_BLEND_COVERAGE)); 32a1795f57eecc Jyri Sarha 2019-11-08 195 int ret; 32a1795f57eecc Jyri Sarha 2019-11-08 196 9da67433f64eb8 Tomi Valkeinen 2020-04-15 197 tplane = kzalloc(sizeof(*tplane), GFP_KERNEL); 32a1795f57eecc Jyri Sarha 2019-11-08 198 if (!tplane) 32a1795f57eecc Jyri Sarha 2019-11-08 199 return ERR_PTR(-ENOMEM); 32a1795f57eecc Jyri Sarha 2019-11-08 200 32a1795f57eecc Jyri Sarha 2019-11-08 201 tplane->hw_plane_id = hw_plane_id; 32a1795f57eecc Jyri Sarha 2019-11-08 202 32a1795f57eecc Jyri Sarha 2019-11-08 203 possible_crtcs = crtc_mask; 32a1795f57eecc Jyri Sarha 2019-11-08 204 type = plane_type; 32a1795f57eecc Jyri Sarha 2019-11-08 205 32a1795f57eecc Jyri Sarha 2019-11-08 206 ret = drm_universal_plane_init(&tidss->ddev, &tplane->plane, 32a1795f57eecc Jyri Sarha 2019-11-08 207 possible_crtcs, 32a1795f57eecc Jyri Sarha 2019-11-08 208 &tidss_plane_funcs, 32a1795f57eecc Jyri Sarha 2019-11-08 209 formats, num_formats, 32a1795f57eecc Jyri Sarha 2019-11-08 210 NULL, type, NULL); 32a1795f57eecc Jyri Sarha 2019-11-08 211 if (ret < 0) 9da67433f64eb8 Tomi Valkeinen 2020-04-15 212 goto err; 32a1795f57eecc Jyri Sarha 2019-11-08 213 32a1795f57eecc Jyri Sarha 2019-11-08 214 drm_plane_helper_add(&tplane->plane, &tidss_plane_helper_funcs); 32a1795f57eecc Jyri Sarha 2019-11-08 215 32a1795f57eecc Jyri Sarha 2019-11-08 216 drm_plane_create_zpos_property(&tplane->plane, hw_plane_id, 0, 32a1795f57eecc Jyri Sarha 2019-11-08 217 num_planes - 1); 32a1795f57eecc Jyri Sarha 2019-11-08 218 32a1795f57eecc Jyri Sarha 2019-11-08 219 ret = drm_plane_create_color_properties(&tplane->plane, 32a1795f57eecc Jyri Sarha 2019-11-08 220 color_encodings, 32a1795f57eecc Jyri Sarha 2019-11-08 221 color_ranges, c326e234abc274 Bhawanpreet Lakha 2021-07-30 222 transfer_functions, 32a1795f57eecc Jyri Sarha 2019-11-08 223 default_encoding, c326e234abc274 Bhawanpreet Lakha 2021-07-30 224 default_range, c326e234abc274 Bhawanpreet Lakha 2021-07-30 225 default_tf); 32a1795f57eecc Jyri Sarha 2019-11-08 226 if (ret) 9da67433f64eb8 Tomi Valkeinen 2020-04-15 227 goto err; 32a1795f57eecc Jyri Sarha 2019-11-08 228 32a1795f57eecc Jyri Sarha 2019-11-08 229 ret = drm_plane_create_alpha_property(&tplane->plane); 32a1795f57eecc Jyri Sarha 2019-11-08 230 if (ret) 9da67433f64eb8 Tomi Valkeinen 2020-04-15 231 goto err; 32a1795f57eecc Jyri Sarha 2019-11-08 232 32a1795f57eecc Jyri Sarha 2019-11-08 233 ret = drm_plane_create_blend_mode_property(&tplane->plane, blend_modes); 32a1795f57eecc Jyri Sarha 2019-11-08 234 if (ret) 9da67433f64eb8 Tomi Valkeinen 2020-04-15 235 goto err; 32a1795f57eecc Jyri Sarha 2019-11-08 236 32a1795f57eecc Jyri Sarha 2019-11-08 237 return tplane; 9da67433f64eb8 Tomi Valkeinen 2020-04-15 238 9da67433f64eb8 Tomi Valkeinen 2020-04-15 239 err: 9da67433f64eb8 Tomi Valkeinen 2020-04-15 240 kfree(tplane); 9da67433f64eb8 Tomi Valkeinen 2020-04-15 241 return ERR_PTR(ret); 32a1795f57eecc Jyri Sarha 2019-11-08 @242 } --- 0-DAY CI Kernel Test Service, Intel Corporation https://lists.01.org/hyperkitty/list/kbuild-all(a)lists.01.org