Hi Rahul,

Thank you for the patch! Perhaps something to improve:

[auto build test WARNING on net-next/master]

url:    
https://github.com/0day-ci/linux/commits/Rahul-Lakkireddy/cxgb4-rework-on-chip-memory-read/20180116-050826
reproduce:
        # apt-get install sparse
        make ARCH=x86_64 allmodconfig
        make C=1 CF=-D__CHECK_ENDIAN__


sparse warnings: (new ones prefixed by >>)

>> drivers/net/ethernet/chelsio/cxgb4/cudbg_intrinsic_avx.c:48:21: sparse: cast 
>> removes address space of expression

vim +48 drivers/net/ethernet/chelsio/cxgb4/cudbg_intrinsic_avx.c

    37  
    38  unsigned int cudbg_mem_read_avx(struct cudbg_init *pdbg_init, u32 start,
    39                                  u32 offset, u32 size, u32 mem_aperture,
    40                                  u8 *outbuf)
    41  {
    42  #ifdef CONFIG_AS_AVX
    43          u32 max_read_len = CUDBG_MEM_ALIGN_AVX;
    44          struct adapter *adap = pdbg_init->adap;
    45          u8 *reg_addr, *src_addr, *dst_addr;
    46          u32 bytes_read, read_len;
    47  
  > 48          reg_addr = (u8 *)adap->regs + start + offset;

---
0-DAY kernel test infrastructure                Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all                   Intel Corporation

Reply via email to