Re: [PATCH for-next] RDMA/rxe: fix regression caused by recent patch

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Bob,

Thank you for the patch! Perhaps something to improve:

[auto build test WARNING on rdma/for-next]
[also build test WARNING on v5.10-rc1 next-20201029]
[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/Bob-Pearson/RDMA-rxe-fix-regression-caused-by-recent-patch/20201030-052848
base:   https://git.kernel.org/pub/scm/linux/kernel/git/rdma/rdma.git for-next
config: powerpc-allyesconfig (attached as .config)
compiler: powerpc64-linux-gcc (GCC) 9.3.0
reproduce (this is a W=1 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/880fe509bd2bdc73c885fd887cb3935000855d49
        git remote add linux-review https://github.com/0day-ci/linux
        git fetch --no-tags linux-review Bob-Pearson/RDMA-rxe-fix-regression-caused-by-recent-patch/20201030-052848
        git checkout 880fe509bd2bdc73c885fd887cb3935000855d49
        # save the attached .config to linux build tree
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=powerpc 

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@xxxxxxxxx>

All warnings (new ones prefixed by >>):

   drivers/infiniband/sw/rxe/rxe_verbs.c: In function 'rxe_register_device':
>> drivers/infiniband/sw/rxe/rxe_verbs.c:1143:20: warning: assignment to 'u64 *' {aka 'long long unsigned int *'} from 'long long unsigned int' makes pointer from integer without a cast [-Wint-conversion]
    1143 |  dev->dev.dma_mask = DMA_BIT_MASK(64);
         |                    ^

vim +1143 drivers/infiniband/sw/rxe/rxe_verbs.c

  1125	
  1126	int rxe_register_device(struct rxe_dev *rxe, const char *ibdev_name)
  1127	{
  1128		int err;
  1129		struct ib_device *dev = &rxe->ib_dev;
  1130		struct crypto_shash *tfm;
  1131	
  1132		strlcpy(dev->node_desc, "rxe", sizeof(dev->node_desc));
  1133	
  1134		dev->node_type = RDMA_NODE_IB_CA;
  1135		dev->phys_port_cnt = 1;
  1136		dev->num_comp_vectors = num_possible_cpus();
  1137	
  1138		/* rdma_rxe never does real DMA but does rely on
  1139		 * pinning user memory in MRs to avoid page faults
  1140		 * in responder and completer tasklets
  1141		 */
  1142		dev->dev.parent = rxe_dma_device(rxe);
> 1143		dev->dev.dma_mask = DMA_BIT_MASK(64);

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@xxxxxxxxxxxx

Attachment: .config.gz
Description: application/gzip


[Index of Archives]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Photo]     [Yosemite News]     [Yosemite Photos]     [Linux Kernel]     [Linux SCSI]     [XFree86]

  Powered by Linux