Content-Type: multipart/mixed; boundary="===============6533448159249333282==" MIME-Version: 1.0 From: kernel test robot To: kbuild-all@lists.01.org Subject: Re: [PATCH v1 3/9] drm: add drm_atomic_helper_bridge_dsi_input_bus_fmt Date: Mon, 07 Feb 2022 01:05:38 +0800 Message-ID: <202202070113.dsmEk0pf-lkp@intel.com> In-Reply-To: <20220206154405.1243333-4-sam@ravnborg.org> List-Id: --===============6533448159249333282== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Hi Sam, I love your patch! Yet something to improve: [auto build test ERROR on drm/drm-next] [also build test ERROR on drm-intel/for-linux-next drm-tip/drm-tip drm-exyn= os/exynos-drm-next tegra-drm/drm/tegra/for-next v5.17-rc2 next-20220204] [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/Sam-Ravnborg/drm-bridge-ps= 8640-and-ti-sn65dsi86-updates/20220206-234638 base: git://anongit.freedesktop.org/drm/drm drm-next config: hexagon-buildonly-randconfig-r003-20220206 (https://download.01.org= /0day-ci/archive/20220207/202202070113.dsmEk0pf-lkp(a)intel.com/config) compiler: clang version 15.0.0 (https://github.com/llvm/llvm-project 6daaf5= a44925592c764c59219b0024ee06317028) reproduce (this is a W=3D1 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/d72252f11e9d51bd1da85eb99= 299f3d8fec36bc2 git remote add linux-review https://github.com/0day-ci/linux git fetch --no-tags linux-review Sam-Ravnborg/drm-bridge-ps8640-and= -ti-sn65dsi86-updates/20220206-234638 git checkout d72252f11e9d51bd1da85eb99299f3d8fec36bc2 # save the config file to linux build tree mkdir build_dir COMPILER_INSTALL_PATH=3D$HOME/0day COMPILER=3Dclang make.cross W=3D= 1 O=3Dbuild_dir ARCH=3Dhexagon SHELL=3D/bin/bash drivers/gpu/drm/ If you fix the issue, kindly add following tag as appropriate Reported-by: kernel test robot All errors (new ones prefixed by >>): >> drivers/gpu/drm/drm_atomic_helper.c:3583:23: error: use of undeclared id= entifier 'MAX_INPUT_SEL_FORMATS' input_fmts =3D kcalloc(MAX_INPUT_SEL_FORMATS, sizeof(*input_fmts= ), GFP_KERNEL); ^ 1 error generated. vim +/MAX_INPUT_SEL_FORMATS +3583 drivers/gpu/drm/drm_atomic_helper.c 3552 = 3553 /** 3554 * drm_atomic_helper_bridge_dsi_input_bus_fmt - Define one DSI outpu= t format 3555 * 3556 * @bridge: bridge control structure 3557 * @bridge_state: new bridge state 3558 * @crtc_state: new CRTC state 3559 * @conn_state: new connector state 3560 * @output_fmt: tested output bus format 3561 * @num_input_fmts: will contain the size of the returned array 3562 * 3563 * This helper is an implementation of the 3564 * &drm_bridge_funcs.atomic_get_input_bus_fmts operation for bridges= that supports 3565 * a single DSI media bus format MEDIA_BUS_FMT_RGB888_1X24. 3566 * 3567 * RETURNS 3568 * A format array with one entry containing MEDIA_BUS_FMT_RGB888_1X2= 4, 3569 * or NULL if the allocation failed 3570 */ 3571 u32 * 3572 drm_atomic_helper_bridge_dsi_input_bus_fmt(struct drm_bridge *bridge, 3573 struct drm_bridge_state *bridge_state, 3574 struct drm_crtc_state *crtc_state, 3575 struct drm_connector_state *conn_state, 3576 u32 output_fmt, 3577 unsigned int *num_input_fmts) 3578 { 3579 u32 *input_fmts; 3580 = 3581 *num_input_fmts =3D 0; 3582 = > 3583 input_fmts =3D kcalloc(MAX_INPUT_SEL_FORMATS, sizeof(*input_fmts), = GFP_KERNEL); --- 0-DAY CI Kernel Test Service, Intel Corporation https://lists.01.org/hyperkitty/list/kbuild-all(a)lists.01.org --===============6533448159249333282==--