[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <201911230316.nf7UrK3V%lkp@intel.com>
Date: Sat, 23 Nov 2019 03:37:24 +0800
From: kbuild test robot <lkp@...el.com>
To: sunil.kovvuri@...il.com
Cc: kbuild-all@...ts.01.org, netdev@...r.kernel.org,
davem@...emloft.net, Linu Cherian <lcherian@...vell.com>,
Rakesh Babu <rsaladi2@...vell.com>,
Vamsi Attunuru <vamsi.attunuru@...vell.com>,
Sunil Goutham <sgoutham@...vell.com>
Subject: Re: [PATCH 02/15] octeontx2-af: Add support for importing firmware
data
Hi,
I love your patch! Perhaps something to improve:
[auto build test WARNING on net-next/master]
[also build test WARNING on next-20191122]
[cannot apply to v5.4-rc8]
[if your patch is applied to the wrong git tree, please drop us a note to help
improve the system. BTW, we also suggest to use '--base' option to specify the
base tree in git format-patch, please see https://stackoverflow.com/a/37406982]
url: https://github.com/0day-ci/linux/commits/sunil-kovvuri-gmail-com/octeontx2-af-SSO-TIM-HW-blocks-and-other-config-support/20191118-002309
base: https://git.kernel.org/pub/scm/linux/kernel/git/davem/net-next.git 19b7e21c55c81713c4011278143006af9f232504
reproduce:
# apt-get install sparse
# sparse version: v0.6.1-32-g233d4e1-dirty
make ARCH=x86_64 allmodconfig
make C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__'
If you fix the issue, kindly add following tag
Reported-by: kbuild test robot <lkp@...el.com>
sparse warnings: (new ones prefixed by >>)
>> drivers/net/ethernet/marvell/octeontx2/af/rvu.c:722:21: sparse: sparse: incorrect type in assignment (different address spaces) @@ expected struct rvu_fwdata *fwdata @@ got void struct rvu_fwdata *fwdata @@
>> drivers/net/ethernet/marvell/octeontx2/af/rvu.c:722:21: sparse: expected struct rvu_fwdata *fwdata
>> drivers/net/ethernet/marvell/octeontx2/af/rvu.c:722:21: sparse: got void [noderef] <asn:2> *
>> drivers/net/ethernet/marvell/octeontx2/af/rvu.c:728:28: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void volatile [noderef] <asn:2> *addr @@ got [noderef] <asn:2> *addr @@
>> drivers/net/ethernet/marvell/octeontx2/af/rvu.c:728:28: sparse: expected void volatile [noderef] <asn:2> *addr
>> drivers/net/ethernet/marvell/octeontx2/af/rvu.c:728:28: sparse: got struct rvu_fwdata *fwdata
drivers/net/ethernet/marvell/octeontx2/af/rvu.c:741:28: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void volatile [noderef] <asn:2> *addr @@ got [noderef] <asn:2> *addr @@
drivers/net/ethernet/marvell/octeontx2/af/rvu.c:741:28: sparse: expected void volatile [noderef] <asn:2> *addr
drivers/net/ethernet/marvell/octeontx2/af/rvu.c:741:28: sparse: got struct rvu_fwdata *fwdata
vim +722 drivers/net/ethernet/marvell/octeontx2/af/rvu.c
712
713 static int rvu_fwdata_init(struct rvu *rvu)
714 {
715 u64 fwdbase;
716 int err;
717
718 /* Get firmware data base address */
719 err = cgx_get_fwdata_base(&fwdbase);
720 if (err)
721 goto fail;
> 722 rvu->fwdata = ioremap_wc(fwdbase, sizeof(struct rvu_fwdata));
723 if (!rvu->fwdata)
724 goto fail;
725 if (!is_rvu_fwdata_valid(rvu)) {
726 dev_err(rvu->dev,
727 "Mismatch in 'fwdata' struct btw kernel and firmware\n");
> 728 iounmap(rvu->fwdata);
729 rvu->fwdata = NULL;
730 return -EINVAL;
731 }
732 return 0;
733 fail:
734 dev_info(rvu->dev, "Unable to fetch 'fwdata' from firmware\n");
735 return -EIO;
736 }
737
---
0-DAY kernel test infrastructure Open Source Technology Center
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org Intel Corporation
Powered by blists - more mailing lists