Content-Type: multipart/mixed; boundary="===============4189989299655767293==" MIME-Version: 1.0 From: kernel test robot To: kbuild-all@lists.01.org Subject: Re: [PATCH v2 1/2] usb: typec: tcpm: add interface for passing supported_pd_rev from tcpc_dev Date: Wed, 09 Feb 2022 14:53:30 +0800 Message-ID: <202202091453.L5BVOjcx-lkp@intel.com> In-Reply-To: <20220208112226.9108-2-potin.lai@quantatw.com> List-Id: --===============4189989299655767293== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Hi Potin, Thank you for the patch! Perhaps something to improve: [auto build test WARNING on usb/usb-testing] [also build test WARNING on v5.17-rc3 next-20220208] [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/Potin-Lai/usb-typec-tcpm-a= dd-interface-for-passing-supported_pd_rev-from-tcpc_dev/20220208-202246 base: https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb.git usb-= testing config: arm64-randconfig-s031-20220208 (https://download.01.org/0day-ci/arc= hive/20220209/202202091453.L5BVOjcx-lkp(a)intel.com/config) compiler: aarch64-linux-gcc (GCC) 11.2.0 reproduce: wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/= make.cross -O ~/bin/make.cross chmod +x ~/bin/make.cross # apt-get install sparse # sparse version: v0.6.4-dirty # https://github.com/0day-ci/linux/commit/322696594704fa918e63d1c80= fa6d346a02e9a28 git remote add linux-review https://github.com/0day-ci/linux git fetch --no-tags linux-review Potin-Lai/usb-typec-tcpm-add-inter= face-for-passing-supported_pd_rev-from-tcpc_dev/20220208-202246 git checkout 322696594704fa918e63d1c80fa6d346a02e9a28 # save the config file to linux build tree mkdir build_dir COMPILER_INSTALL_PATH=3D$HOME/0day COMPILER=3Dgcc-11.2.0 make.cross= C=3D1 CF=3D'-fdiagnostic-prefix -D__CHECK_ENDIAN__' O=3Dbuild_dir ARCH=3Da= rm64 SHELL=3D/bin/bash drivers/usb/typec/tcpm/ If you fix the issue, kindly add following tag as appropriate Reported-by: kernel test robot sparse warnings: (new ones prefixed by >>) >> drivers/usb/typec/tcpm/tcpm.c:581:16: sparse: sparse: incompatible types= in comparison expression (different signedness): >> drivers/usb/typec/tcpm/tcpm.c:581:16: sparse: unsigned int * >> drivers/usb/typec/tcpm/tcpm.c:581:16: sparse: int * vim +581 drivers/usb/typec/tcpm/tcpm.c 573 = 574 static u32 tcpm_pd_supported_rev(struct tcpm_port *port) 575 { 576 u32 rev =3D PD_MAX_REV; 577 = 578 if (port->tcpc->supported_pd_rev) 579 rev =3D port->tcpc->supported_pd_rev(port->tcpc); 580 = > 581 return min(rev, PD_MAX_REV); 582 } 583 = --- 0-DAY CI Kernel Test Service, Intel Corporation https://lists.01.org/hyperkitty/list/kbuild-all(a)lists.01.org --===============4189989299655767293==--