Content-Type: multipart/mixed; boundary="===============8733609986125109416==" 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 00:41:07 +0800 Message-ID: <202202090006.YLbevIuT-lkp@intel.com> In-Reply-To: <20220208112226.9108-2-potin.lai@quantatw.com> List-Id: --===============8733609986125109416== 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: hexagon-randconfig-r034-20220208 (https://download.01.org/0day-ci/a= rchive/20220209/202202090006.YLbevIuT-lkp(a)intel.com/config) compiler: clang version 15.0.0 (https://github.com/llvm/llvm-project e8bff9= ae54a55b4dbfeb6ba55f723abbd81bf494) 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/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=3Dclang make.cross W=3D= 1 O=3Dbuild_dir ARCH=3Dhexagon SHELL=3D/bin/bash drivers/usb/typec/tcpm/ If you fix the issue, kindly add following tag as appropriate Reported-by: kernel test robot All warnings (new ones prefixed by >>): >> drivers/usb/typec/tcpm/tcpm.c:581:9: warning: comparison of distinct poi= nter types ('typeof (rev) *' (aka 'unsigned int *') and 'typeof (2) *' (aka= 'int *')) [-Wcompare-distinct-pointer-types] return min(rev, PD_MAX_REV); ^~~~~~~~~~~~~~~~~~~~ include/linux/minmax.h:45:19: note: expanded from macro 'min' #define min(x, y) __careful_cmp(x, y, <) ^~~~~~~~~~~~~~~~~~~~~~ include/linux/minmax.h:36:24: note: expanded from macro '__careful_cmp' __builtin_choose_expr(__safe_cmp(x, y), \ ^~~~~~~~~~~~~~~~ include/linux/minmax.h:26:4: note: expanded from macro '__safe_cmp' (__typecheck(x, y) && __no_side_effects(x, y)) ^~~~~~~~~~~~~~~~~ include/linux/minmax.h:20:28: note: expanded from macro '__typecheck' (!!(sizeof((typeof(x) *)1 =3D=3D (typeof(y) *)1))) ~~~~~~~~~~~~~~ ^ ~~~~~~~~~~~~~~ 1 warning generated. 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 --===============8733609986125109416==--