[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <201801160933.dVCWbUfA%fengguang.wu@intel.com>
Date: Tue, 16 Jan 2018 09:59:27 +0800
From: kbuild test robot <lkp@...el.com>
To: Rahul Lakkireddy <rahul.lakkireddy@...lsio.com>
Cc: kbuild-all@...org, netdev@...r.kernel.org, davem@...emloft.net,
ganeshgr@...lsio.com, nirranjan@...lsio.com, indranil@...lsio.com,
Rahul Lakkireddy <rahul.lakkireddy@...lsio.com>
Subject: Re: [PATCH net-next 1/2] cxgb4: rework on-chip memory read
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.c:29:14: sparse: incorrect type in assignment (different base types) @@ expected restricted __be32 <noident> @@ got unsignrestricted __be32 <noident> @@
drivers/net/ethernet/chelsio/cxgb4/cudbg_intrinsic.c:29:14: expected restricted __be32 <noident>
drivers/net/ethernet/chelsio/cxgb4/cudbg_intrinsic.c:29:14: got unsigned int <noident>
vim +29 drivers/net/ethernet/chelsio/cxgb4/cudbg_intrinsic.c
21
22 unsigned int cudbg_mem_read_def(struct cudbg_init *pdbg_init,
23 u32 start, u32 offset, u32 size,
24 u32 mem_aperture, u8 *outbuf)
25 {
26 struct adapter *adap = pdbg_init->adap;
27 __be32 *buf = (__be32 *)outbuf;
28
> 29 *buf = le32_to_cpu((__force __le32)
30 t4_read_reg(adap, start + offset));
31
32 return sizeof(__be32);
33 }
34
---
0-DAY kernel test infrastructure Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all Intel Corporation
Powered by blists - more mailing lists