Content-Type: multipart/mixed; boundary="===============2154120479321299745==" MIME-Version: 1.0 From: Nathan Chancellor To: kbuild-all@lists.01.org Subject: Re: [PATCH v2 6/7] HID: uclogic: Add support for UGEE v2 mouse frames Date: Tue, 26 Jul 2022 08:48:29 -0700 Message-ID: In-Reply-To: <202207261047.hUEFf74G-lkp@intel.com> List-Id: --===============2154120479321299745== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable On Tue, Jul 26, 2022 at 10:33:25AM +0800, kernel test robot wrote: > Hi "Jos=C3=A9, > = > Thank you for the patch! Yet something to improve: > = > [auto build test ERROR on 0cb1fc0988e32bda84c2b7218e0c761af1430baf] > = > url: https://github.com/intel-lab-lkp/linux/commits/Jos-Exp-sito/XP-PE= N-Deco-Pro-S-support-for-5-20-uclogic/20220717-224559 > base: 0cb1fc0988e32bda84c2b7218e0c761af1430baf > config: x86_64-buildonly-randconfig-r002-20220718 (https://download.01.or= g/0day-ci/archive/20220726/202207261047.hUEFf74G-lkp(a)intel.com/config) > compiler: clang version 15.0.0 (https://github.com/llvm/llvm-project fa0c= 7639e91fa1cd0cf2ff0445a1634a90fe850a) > reproduce (this is a W=3D1 build): > wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbi= n/make.cross -O ~/bin/make.cross > chmod +x ~/bin/make.cross > # https://github.com/intel-lab-lkp/linux/commit/10fcf5d5cca4657c5= 3477c392b1fb675d72cfda3 > git remote add linux-review https://github.com/intel-lab-lkp/linux > git fetch --no-tags linux-review Jos-Exp-sito/XP-PEN-Deco-Pro-S-s= upport-for-5-20-uclogic/20220717-224559 > git checkout 10fcf5d5cca4657c53477c392b1fb675d72cfda3 > # save the config file > mkdir build_dir && cp config build_dir/.config > COMPILER_INSTALL_PATH=3D$HOME/0day COMPILER=3Dclang make.cross W= =3D1 O=3Dbuild_dir ARCH=3Dx86_64 SHELL=3D/bin/bash > = > If you fix the issue, kindly add following tag where applicable > Reported-by: kernel test robot > = > All errors (new ones prefixed by >>): > = > >> ld.lld: error: call to __read_overflow marked "dontcall-error": detect= ed read beyond size of object (1st parameter) Unfortunately, LTO makes this warning kind of cryptic but it seems like the wrong template size is being used? This appears to resolve the warning for me. Cheers, Nathan diff --git a/drivers/hid/hid-uclogic-params.c b/drivers/hid/hid-uclogic-par= ams.c index 2407e927d1bf..dd4b1ed6fd1e 100644 --- a/drivers/hid/hid-uclogic-params.c +++ b/drivers/hid/hid-uclogic-params.c @@ -1205,7 +1205,7 @@ static int uclogic_params_ugee_v2_init_frame_mouse(st= ruct uclogic_params *p) = rc =3D uclogic_params_frame_init_with_desc(&p->frame_list[1], uclogic_rdesc_ugee_v2_frame_mouse_template_arr, - uclogic_rdesc_ugee_v2_frame_dial_template_size, + uclogic_rdesc_ugee_v2_frame_mouse_template_size, UCLOGIC_RDESC_V1_FRAME_ID); if (rc) return rc; --===============2154120479321299745==--