[<prev] [next>] [day] [month] [year] [list]
Message-ID: <20200826143107.GG24519@xsang-OptiPlex-9020>
Date: Wed, 26 Aug 2020 22:31:07 +0800
From: kernel test robot <lkp@...el.com>
To: Linu Cherian <lcherian@...vell.com>
Cc: kbuild-all@...ts.01.org, linux-kernel@...r.kernel.org,
Christina Jacob <cjacob@...vell.com>,
Rakesh Babu <rsaladi2@...vell.com>,
Sunil Goutham <sgoutham@...vell.com>
Subject: drivers/net/ethernet/marvell/octeontx2/af/rvu.c:722:21: sparse:
expected struct rvu_fwdata
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: 2ac69819ba9e3d8d550bb5d2d2df74848e556812
commit: 4f4eebf26f0da871fea5b3c489eafce2fbcda8bb octeontx2-af: Optimize data retrieval from firmware
date: 6 months ago
:::::: branch date: 6 hours ago
:::::: commit date: 6 months ago
config: powerpc-randconfig-s031-20200826 (attached as .config)
compiler: powerpc64le-linux-gcc (GCC) 9.3.0
reproduce:
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# apt-get install sparse
# sparse version: v0.6.2-191-g10164920-dirty
git checkout 4f4eebf26f0da871fea5b3c489eafce2fbcda8bb
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' ARCH=powerpc
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel 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 [noderef] <asn:2> * @@
>> 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 struct rvu_fwdata *fwdata @@
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 struct rvu_fwdata *fwdata @@
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
# https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=4f4eebf26f0da871fea5b3c489eafce2fbcda8bb
git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
git fetch --no-tags linus master
git checkout 4f4eebf26f0da871fea5b3c489eafce2fbcda8bb
vim +722 drivers/net/ethernet/marvell/octeontx2/af/rvu.c
4f4eebf26f0da87 Linu Cherian 2020-03-02 712
4f4eebf26f0da87 Linu Cherian 2020-03-02 713 static int rvu_fwdata_init(struct rvu *rvu)
4f4eebf26f0da87 Linu Cherian 2020-03-02 714 {
4f4eebf26f0da87 Linu Cherian 2020-03-02 715 u64 fwdbase;
4f4eebf26f0da87 Linu Cherian 2020-03-02 716 int err;
4f4eebf26f0da87 Linu Cherian 2020-03-02 717
4f4eebf26f0da87 Linu Cherian 2020-03-02 718 /* Get firmware data base address */
4f4eebf26f0da87 Linu Cherian 2020-03-02 719 err = cgx_get_fwdata_base(&fwdbase);
4f4eebf26f0da87 Linu Cherian 2020-03-02 720 if (err)
4f4eebf26f0da87 Linu Cherian 2020-03-02 721 goto fail;
4f4eebf26f0da87 Linu Cherian 2020-03-02 @722 rvu->fwdata = ioremap_wc(fwdbase, sizeof(struct rvu_fwdata));
4f4eebf26f0da87 Linu Cherian 2020-03-02 723 if (!rvu->fwdata)
4f4eebf26f0da87 Linu Cherian 2020-03-02 724 goto fail;
4f4eebf26f0da87 Linu Cherian 2020-03-02 725 if (!is_rvu_fwdata_valid(rvu)) {
4f4eebf26f0da87 Linu Cherian 2020-03-02 726 dev_err(rvu->dev,
4f4eebf26f0da87 Linu Cherian 2020-03-02 727 "Mismatch in 'fwdata' struct btw kernel and firmware\n");
4f4eebf26f0da87 Linu Cherian 2020-03-02 @728 iounmap(rvu->fwdata);
4f4eebf26f0da87 Linu Cherian 2020-03-02 729 rvu->fwdata = NULL;
4f4eebf26f0da87 Linu Cherian 2020-03-02 730 return -EINVAL;
4f4eebf26f0da87 Linu Cherian 2020-03-02 731 }
4f4eebf26f0da87 Linu Cherian 2020-03-02 732 return 0;
4f4eebf26f0da87 Linu Cherian 2020-03-02 733 fail:
4f4eebf26f0da87 Linu Cherian 2020-03-02 734 dev_info(rvu->dev, "Unable to fetch 'fwdata' from firmware\n");
4f4eebf26f0da87 Linu Cherian 2020-03-02 735 return -EIO;
4f4eebf26f0da87 Linu Cherian 2020-03-02 736 }
4f4eebf26f0da87 Linu Cherian 2020-03-02 737
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
Download attachment ".config.gz" of type "application/gzip" (39975 bytes)
Powered by blists - more mailing lists