From mboxrd@z Thu Jan 1 00:00:00 1970 Content-Type: multipart/mixed; boundary="===============5022920915913337961==" MIME-Version: 1.0 From: kernel test robot To: kbuild-all@lists.01.org Subject: Re: [PATCH 1/4] RDMA/irdma: Use auxiliary_device driver data helpers Date: Wed, 22 Dec 2021 15:34:04 +0800 Message-ID: <202112221515.JG78ViIG-lkp@intel.com> In-Reply-To: <20211221235852.323752-2-david.e.box@linux.intel.com> List-Id: --===============5022920915913337961== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Hi "David, I love your patch! Perhaps something to improve: [auto build test WARNING on rdma/for-next] [also build test WARNING on staging/staging-testing linus/master v5.16-rc6 = next-20211221] [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/David-E-Box/driver_core-Au= xiliary-drvdata-helper-cleanup/20211222-080023 base: https://git.kernel.org/pub/scm/linux/kernel/git/rdma/rdma.git for-n= ext config: arc-allyesconfig (https://download.01.org/0day-ci/archive/20211222/= 202112221515.JG78ViIG-lkp(a)intel.com/config) compiler: arceb-elf-gcc (GCC) 11.2.0 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/a9d461b63d0256caecd213865= ac56ffb48b60c48 git remote add linux-review https://github.com/0day-ci/linux git fetch --no-tags linux-review David-E-Box/driver_core-Auxiliary-= drvdata-helper-cleanup/20211222-080023 git checkout a9d461b63d0256caecd213865ac56ffb48b60c48 # save the config file to linux build tree mkdir build_dir COMPILER_INSTALL_PATH=3D$HOME/0day COMPILER=3Dgcc-11.2.0 make.cross= O=3Dbuild_dir ARCH=3Darc SHELL=3D/bin/bash drivers/infiniband/hw/irdma/ dr= ivers/infiniband/hw/mlx5/ drivers/net/ethernet/mellanox/mlx5/core/ drivers/= vdpa/mlx5/ If you fix the issue, kindly add following tag as appropriate Reported-by: kernel test robot All warnings (new ones prefixed by >>): drivers/infiniband/hw/irdma/main.c: In function 'irdma_remove': drivers/infiniband/hw/irdma/main.c:210:38: error: implicit declaration o= f function 'auxiliary_get_drvdata' [-Werror=3Dimplicit-function-declaration] 210 | struct irdma_device *iwdev =3D auxiliary_get_drvdata(aux= _dev); | ^~~~~~~~~~~~~~~~~~~~~ >> drivers/infiniband/hw/irdma/main.c:210:38: warning: initialization of 's= truct irdma_device *' from 'int' makes pointer from integer without a cast = [-Wint-conversion] drivers/infiniband/hw/irdma/main.c: In function 'irdma_probe': drivers/infiniband/hw/irdma/main.c:297:9: error: implicit declaration of= function 'auxiliary_set_drvdata' [-Werror=3Dimplicit-function-declaration] 297 | auxiliary_set_drvdata(aux_dev, iwdev); | ^~~~~~~~~~~~~~~~~~~~~ cc1: some warnings being treated as errors -- drivers/infiniband/hw/mlx5/main.c: In function 'mlx5r_mp_probe': drivers/infiniband/hw/mlx5/main.c:4425:9: error: implicit declaration of= function 'auxiliary_set_drvdata' [-Werror=3Dimplicit-function-declaration] 4425 | auxiliary_set_drvdata(adev, mpi); | ^~~~~~~~~~~~~~~~~~~~~ drivers/infiniband/hw/mlx5/main.c: In function 'mlx5r_mp_remove': drivers/infiniband/hw/mlx5/main.c:4433:15: error: implicit declaration o= f function 'auxiliary_get_drvdata' [-Werror=3Dimplicit-function-declaration] 4433 | mpi =3D auxiliary_get_drvdata(adev); | ^~~~~~~~~~~~~~~~~~~~~ >> drivers/infiniband/hw/mlx5/main.c:4433:13: warning: assignment to 'struc= t mlx5_ib_multiport_info *' from 'int' makes pointer from integer without a= cast [-Wint-conversion] 4433 | mpi =3D auxiliary_get_drvdata(adev); | ^ drivers/infiniband/hw/mlx5/main.c: In function 'mlx5r_remove': >> drivers/infiniband/hw/mlx5/main.c:4491:13: warning: assignment to 'struc= t mlx5_ib_dev *' from 'int' makes pointer from integer without a cast [-Win= t-conversion] 4491 | dev =3D auxiliary_get_drvdata(adev); | ^ cc1: some warnings being treated as errors vim +210 drivers/infiniband/hw/irdma/main.c 203 = 204 static void irdma_remove(struct auxiliary_device *aux_dev) 205 { 206 struct iidc_auxiliary_dev *iidc_adev =3D container_of(aux_dev, 207 struct iidc_auxiliary_dev, 208 adev); 209 struct ice_pf *pf =3D iidc_adev->pf; > 210 struct irdma_device *iwdev =3D auxiliary_get_drvdata(aux_dev); 211 = 212 irdma_ib_unregister_device(iwdev); 213 ice_rdma_update_vsi_filter(pf, iwdev->vsi_num, false); 214 = 215 pr_debug("INIT: Gen2 PF[%d] device remove success\n", PCI_FUNC(pf->= pdev->devfn)); 216 } 217 = --- 0-DAY CI Kernel Test Service, Intel Corporation https://lists.01.org/hyperkitty/list/kbuild-all(a)lists.01.org --===============5022920915913337961==--