Content-Type: multipart/mixed; boundary="===============5218217047691551877==" MIME-Version: 1.0 From: kbuild test robot To: kbuild-all@lists.01.org Subject: Re: [PATCH v8 01/17] drm/dp_mst: Add PBN calculation for DSC modes Date: Fri, 06 Dec 2019 08:22:04 +0800 Message-ID: <201912060739.ESIJ27eX%lkp@intel.com> In-Reply-To: <20191203143530.27262-2-mikita.lipski@amd.com> List-Id: --===============5218217047691551877== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Hi, Thank you for the patch! Perhaps something to improve: [auto build test WARNING on next-20191203] [cannot apply to drm-intel/for-linux-next linus/master v5.4-rc8 drm-exynos/= exynos-drm-next v5.4] [if your patch is applied to the wrong git tree, please drop us a note to h= elp improve the system. BTW, we also suggest to use '--base' option to specify = the base tree in git format-patch, please see https://stackoverflow.com/a/37406= 982] url: https://github.com/0day-ci/linux/commits/mikita-lipski-amd-com/DSC-= MST-support-for-DRM-and-AMDGPU/20191204-020604 base: 1ab75b2e415a29dba9aec94f203c6f88dbfc0ba0 reproduce: # apt-get install sparse # sparse version: v0.6.1-91-g817270f-dirty make ARCH=3Dx86_64 allmodconfig make C=3D1 CF=3D'-fdiagnostic-prefix -D__CHECK_ENDIAN__' If you fix the issue, kindly add following tag Reported-by: kbuild test robot sparse warnings: (new ones prefixed by >>) >> drivers/gpu/drm/selftests/test-drm_dp_mst_helper.c:28:43: sparse: sparse= : not enough arguments for function drm_dp_calc_pbn_mode vim +28 drivers/gpu/drm/selftests/test-drm_dp_mst_helper.c 7cbce45d624322 Lyude Paul 2019-09-03 13 = 7cbce45d624322 Lyude Paul 2019-09-03 14 int igt_dp_mst_calc_pbn_mode(void= *ignored) 7cbce45d624322 Lyude Paul 2019-09-03 15 { 7cbce45d624322 Lyude Paul 2019-09-03 16 int pbn, i; 7cbce45d624322 Lyude Paul 2019-09-03 17 const struct { 7cbce45d624322 Lyude Paul 2019-09-03 18 int rate; 7cbce45d624322 Lyude Paul 2019-09-03 19 int bpp; 7cbce45d624322 Lyude Paul 2019-09-03 20 int expected; 7cbce45d624322 Lyude Paul 2019-09-03 21 } test_params[] =3D { 7cbce45d624322 Lyude Paul 2019-09-03 22 { 154000, 30, 689 }, 7cbce45d624322 Lyude Paul 2019-09-03 23 { 234000, 30, 1047 }, 7cbce45d624322 Lyude Paul 2019-09-03 24 { 297000, 24, 1063 }, 7cbce45d624322 Lyude Paul 2019-09-03 25 }; 7cbce45d624322 Lyude Paul 2019-09-03 26 = 7cbce45d624322 Lyude Paul 2019-09-03 27 for (i =3D 0; i < ARRAY_SIZE(tes= t_params); i++) { 7cbce45d624322 Lyude Paul 2019-09-03 @28 pbn =3D drm_dp_calc_pbn_mode(te= st_params[i].rate, 7cbce45d624322 Lyude Paul 2019-09-03 29 test_params[i].bpp); 7cbce45d624322 Lyude Paul 2019-09-03 30 FAIL(pbn !=3D test_params[i].ex= pected, 7cbce45d624322 Lyude Paul 2019-09-03 31 "Expected PBN %d for clock= %d bpp %d, got %d\n", 7cbce45d624322 Lyude Paul 2019-09-03 32 test_params[i].expected, t= est_params[i].rate, 7cbce45d624322 Lyude Paul 2019-09-03 33 test_params[i].bpp, pbn); 7cbce45d624322 Lyude Paul 2019-09-03 34 } 7cbce45d624322 Lyude Paul 2019-09-03 35 = 7cbce45d624322 Lyude Paul 2019-09-03 36 return 0; 7cbce45d624322 Lyude Paul 2019-09-03 37 } 2f015ec6eab693 Lyude Paul 2019-09-03 38 = :::::: The code@line 28 was first introduced by commit :::::: 7cbce45d6243225914b5c967b4ee927a2327842a drm/dp_mst: Move test_calc_= pbn_mode() into an actual selftest :::::: TO: Lyude Paul :::::: CC: Lyude Paul --- 0-DAY kernel test infrastructure Open Source Technology Cen= ter https://lists.01.org/hyperkitty/list/kbuild-all(a)lists.01.org Intel Corpor= ation --===============5218217047691551877==--