* drivers/net/ethernet/marvell/octeontx2/af/rvu.c:722:21: sparse: expected struct rvu_fwdata
@ 2020-08-26 6:55 kernel test robot
0 siblings, 0 replies; 5+ messages in thread
From: kernel test robot @ 2020-08-26 6:55 UTC (permalink / raw)
To: kbuild
[-- Attachment #1: Type: text/plain, Size: 4892 bytes --]
CC: kbuild-all(a)lists.01.org
CC: linux-kernel(a)vger.kernel.org
TO: Linu Cherian <lcherian@marvell.com>
CC: Christina Jacob <cjacob@marvell.com>
CC: Rakesh Babu <rsaladi2@marvell.com>
CC: Sunil Goutham <sgoutham@marvell.com>
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@intel.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(a)lists.01.org
[-- Attachment #2: config.gz --]
[-- Type: application/gzip, Size: 39975 bytes --]
^ permalink raw reply [flat|nested] 5+ messages in thread
* drivers/net/ethernet/marvell/octeontx2/af/rvu.c:722:21: sparse: expected struct rvu_fwdata
@ 2020-09-15 9:43 kernel test robot
0 siblings, 0 replies; 5+ messages in thread
From: kernel test robot @ 2020-09-15 9:43 UTC (permalink / raw)
To: kbuild
[-- Attachment #1: Type: text/plain, Size: 5184 bytes --]
CC: kbuild-all(a)lists.01.org
CC: linux-kernel(a)vger.kernel.org
TO: Linu Cherian <lcherian@marvell.com>
CC: Christina Jacob <cjacob@marvell.com>
CC: Rakesh Babu <rsaladi2@marvell.com>
CC: Sunil Goutham <sgoutham@marvell.com>
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: fc4f28bb3daf3265d6bc5f73b497306985bb23ab
commit: 4f4eebf26f0da871fea5b3c489eafce2fbcda8bb octeontx2-af: Optimize data retrieval from firmware
date: 7 months ago
:::::: branch date: 11 hours ago
:::::: commit date: 7 months ago
config: parisc-randconfig-s032-20200914 (attached as .config)
compiler: hppa64-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=parisc
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>
sparse warnings: (new ones prefixed by >>)
drivers/net/ethernet/marvell/octeontx2/af/rvu.c: note: in included file (through arch/parisc/include/uapi/asm/unistd.h, arch/parisc/include/asm/unistd.h, include/uapi/linux/unistd.h, ...):
./arch/parisc/include/generated/uapi/asm/unistd_64.h:362:41: sparse: sparse: no newline at end of file
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 const volatile [noderef] <asn:2> *addr @@ got struct rvu_fwdata *fwdata @@
drivers/net/ethernet/marvell/octeontx2/af/rvu.c:728:28: sparse: expected void const 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 const volatile [noderef] <asn:2> *addr @@ got struct rvu_fwdata *fwdata @@
drivers/net/ethernet/marvell/octeontx2/af/rvu.c:741:28: sparse: expected void const 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
4f4eebf26f0da8 Linu Cherian 2020-03-02 712
4f4eebf26f0da8 Linu Cherian 2020-03-02 713 static int rvu_fwdata_init(struct rvu *rvu)
4f4eebf26f0da8 Linu Cherian 2020-03-02 714 {
4f4eebf26f0da8 Linu Cherian 2020-03-02 715 u64 fwdbase;
4f4eebf26f0da8 Linu Cherian 2020-03-02 716 int err;
4f4eebf26f0da8 Linu Cherian 2020-03-02 717
4f4eebf26f0da8 Linu Cherian 2020-03-02 718 /* Get firmware data base address */
4f4eebf26f0da8 Linu Cherian 2020-03-02 719 err = cgx_get_fwdata_base(&fwdbase);
4f4eebf26f0da8 Linu Cherian 2020-03-02 720 if (err)
4f4eebf26f0da8 Linu Cherian 2020-03-02 721 goto fail;
4f4eebf26f0da8 Linu Cherian 2020-03-02 @722 rvu->fwdata = ioremap_wc(fwdbase, sizeof(struct rvu_fwdata));
4f4eebf26f0da8 Linu Cherian 2020-03-02 723 if (!rvu->fwdata)
4f4eebf26f0da8 Linu Cherian 2020-03-02 724 goto fail;
4f4eebf26f0da8 Linu Cherian 2020-03-02 725 if (!is_rvu_fwdata_valid(rvu)) {
4f4eebf26f0da8 Linu Cherian 2020-03-02 726 dev_err(rvu->dev,
4f4eebf26f0da8 Linu Cherian 2020-03-02 727 "Mismatch in 'fwdata' struct btw kernel and firmware\n");
4f4eebf26f0da8 Linu Cherian 2020-03-02 @728 iounmap(rvu->fwdata);
4f4eebf26f0da8 Linu Cherian 2020-03-02 729 rvu->fwdata = NULL;
4f4eebf26f0da8 Linu Cherian 2020-03-02 730 return -EINVAL;
4f4eebf26f0da8 Linu Cherian 2020-03-02 731 }
4f4eebf26f0da8 Linu Cherian 2020-03-02 732 return 0;
4f4eebf26f0da8 Linu Cherian 2020-03-02 733 fail:
4f4eebf26f0da8 Linu Cherian 2020-03-02 734 dev_info(rvu->dev, "Unable to fetch 'fwdata' from firmware\n");
4f4eebf26f0da8 Linu Cherian 2020-03-02 735 return -EIO;
4f4eebf26f0da8 Linu Cherian 2020-03-02 736 }
4f4eebf26f0da8 Linu Cherian 2020-03-02 737
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all(a)lists.01.org
[-- Attachment #2: config.gz --]
[-- Type: application/gzip, Size: 33253 bytes --]
^ permalink raw reply [flat|nested] 5+ messages in thread
* drivers/net/ethernet/marvell/octeontx2/af/rvu.c:722:21: sparse: expected struct rvu_fwdata
@ 2020-08-26 14:31 ` kernel test robot
0 siblings, 0 replies; 5+ messages in thread
From: kernel test robot @ 2020-08-26 14:31 UTC (permalink / raw)
To: Linu Cherian
Cc: kbuild-all, linux-kernel, Christina Jacob, Rakesh Babu, Sunil Goutham
[-- Attachment #1: Type: text/plain, Size: 4587 bytes --]
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@intel.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
[-- Attachment #2: .config.gz --]
[-- Type: application/gzip, Size: 39975 bytes --]
^ permalink raw reply [flat|nested] 5+ messages in thread
* drivers/net/ethernet/marvell/octeontx2/af/rvu.c:722:21: sparse: expected struct rvu_fwdata
@ 2020-08-26 14:31 ` kernel test robot
0 siblings, 0 replies; 5+ messages in thread
From: kernel test robot @ 2020-08-26 14:31 UTC (permalink / raw)
To: kbuild-all
[-- Attachment #1: Type: text/plain, Size: 4658 bytes --]
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@intel.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(a)lists.01.org
[-- Attachment #2: config.gz --]
[-- Type: application/gzip, Size: 39975 bytes --]
^ permalink raw reply [flat|nested] 5+ messages in thread
* drivers/net/ethernet/marvell/octeontx2/af/rvu.c:722:21: sparse: expected struct rvu_fwdata
@ 2020-08-05 20:51 kernel test robot
0 siblings, 0 replies; 5+ messages in thread
From: kernel test robot @ 2020-08-05 20:51 UTC (permalink / raw)
To: kbuild
[-- Attachment #1: Type: text/plain, Size: 4655 bytes --]
CC: kbuild-all(a)lists.01.org
CC: linux-kernel(a)vger.kernel.org
TO: Linu Cherian <lcherian@marvell.com>
CC: Christina Jacob <cjacob@marvell.com>
CC: Rakesh Babu <rsaladi2@marvell.com>
CC: Sunil Goutham <sgoutham@marvell.com>
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: ecfd7940b8641da6e41ca94eba36876dc2ba827b
commit: 4f4eebf26f0da871fea5b3c489eafce2fbcda8bb octeontx2-af: Optimize data retrieval from firmware
date: 5 months ago
:::::: branch date: 2 hours ago
:::::: commit date: 5 months ago
config: x86_64-randconfig-s022-20200806 (attached as .config)
compiler: gcc-9 (Debian 9.3.0-15) 9.3.0
reproduce:
# apt-get install sparse
# sparse version: v0.6.2-117-g8c7aee71-dirty
git checkout 4f4eebf26f0da871fea5b3c489eafce2fbcda8bb
# save the attached .config to linux build tree
make W=1 C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' ARCH=x86_64
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.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 remote update linus
git checkout 4f4eebf26f0da871fea5b3c489eafce2fbcda8bb
vim +722 drivers/net/ethernet/marvell/octeontx2/af/rvu.c
4f4eebf26f0da8 Linu Cherian 2020-03-02 712
4f4eebf26f0da8 Linu Cherian 2020-03-02 713 static int rvu_fwdata_init(struct rvu *rvu)
4f4eebf26f0da8 Linu Cherian 2020-03-02 714 {
4f4eebf26f0da8 Linu Cherian 2020-03-02 715 u64 fwdbase;
4f4eebf26f0da8 Linu Cherian 2020-03-02 716 int err;
4f4eebf26f0da8 Linu Cherian 2020-03-02 717
4f4eebf26f0da8 Linu Cherian 2020-03-02 718 /* Get firmware data base address */
4f4eebf26f0da8 Linu Cherian 2020-03-02 719 err = cgx_get_fwdata_base(&fwdbase);
4f4eebf26f0da8 Linu Cherian 2020-03-02 720 if (err)
4f4eebf26f0da8 Linu Cherian 2020-03-02 721 goto fail;
4f4eebf26f0da8 Linu Cherian 2020-03-02 @722 rvu->fwdata = ioremap_wc(fwdbase, sizeof(struct rvu_fwdata));
4f4eebf26f0da8 Linu Cherian 2020-03-02 723 if (!rvu->fwdata)
4f4eebf26f0da8 Linu Cherian 2020-03-02 724 goto fail;
4f4eebf26f0da8 Linu Cherian 2020-03-02 725 if (!is_rvu_fwdata_valid(rvu)) {
4f4eebf26f0da8 Linu Cherian 2020-03-02 726 dev_err(rvu->dev,
4f4eebf26f0da8 Linu Cherian 2020-03-02 727 "Mismatch in 'fwdata' struct btw kernel and firmware\n");
4f4eebf26f0da8 Linu Cherian 2020-03-02 @728 iounmap(rvu->fwdata);
4f4eebf26f0da8 Linu Cherian 2020-03-02 729 rvu->fwdata = NULL;
4f4eebf26f0da8 Linu Cherian 2020-03-02 730 return -EINVAL;
4f4eebf26f0da8 Linu Cherian 2020-03-02 731 }
4f4eebf26f0da8 Linu Cherian 2020-03-02 732 return 0;
4f4eebf26f0da8 Linu Cherian 2020-03-02 733 fail:
4f4eebf26f0da8 Linu Cherian 2020-03-02 734 dev_info(rvu->dev, "Unable to fetch 'fwdata' from firmware\n");
4f4eebf26f0da8 Linu Cherian 2020-03-02 735 return -EIO;
4f4eebf26f0da8 Linu Cherian 2020-03-02 736 }
4f4eebf26f0da8 Linu Cherian 2020-03-02 737
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all(a)lists.01.org
[-- Attachment #2: config.gz --]
[-- Type: application/gzip, Size: 39981 bytes --]
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2020-09-15 9:43 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-08-26 6:55 drivers/net/ethernet/marvell/octeontx2/af/rvu.c:722:21: sparse: expected struct rvu_fwdata kernel test robot
-- strict thread matches above, loose matches on Subject: below --
2020-09-15 9:43 kernel test robot
2020-08-26 14:31 kernel test robot
2020-08-26 14:31 ` kernel test robot
2020-08-05 20:51 kernel test robot
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.