* [intel-linux-intel-lts:5.4/yocto 72/1142] drivers/gpu/drm/kmb/kmb_drv.c:99:31: sparse: sparse: incorrect type in return expression (different address spaces)
@ 2020-08-25 10:41 kernel test robot
0 siblings, 0 replies; 3+ messages in thread
From: kernel test robot @ 2020-08-25 10:41 UTC (permalink / raw)
To: kbuild-all
[-- Attachment #1: Type: text/plain, Size: 3283 bytes --]
tree: https://github.com/intel/linux-intel-lts.git 5.4/yocto
head: eeb611e5394c56d45c5cc8f7dc484c9f19e93143
commit: d855ca729624b25fa0552c548f8805b63bb0c017 [72/1142] drm/kmb: Cleanup probe functions
config: arm-randconfig-s031-20200825 (attached as .config)
compiler: arm-linux-gnueabi-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 d855ca729624b25fa0552c548f8805b63bb0c017
# 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=arm
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/gpu/drm/kmb/kmb_drv.c:99:31: sparse: sparse: incorrect type in return expression (different address spaces) @@ expected void [noderef] <asn:2> * @@ got void * @@
>> drivers/gpu/drm/kmb/kmb_drv.c:99:31: sparse: expected void [noderef] <asn:2> *
>> drivers/gpu/drm/kmb/kmb_drv.c:99:31: sparse: got void *
drivers/gpu/drm/kmb/kmb_drv.c:104:31: sparse: sparse: incorrect type in return expression (different address spaces) @@ expected void [noderef] <asn:2> * @@ got void * @@
drivers/gpu/drm/kmb/kmb_drv.c:104:31: sparse: expected void [noderef] <asn:2> *
drivers/gpu/drm/kmb/kmb_drv.c:104:31: sparse: got void *
drivers/gpu/drm/kmb/kmb_drv.c:110:31: sparse: sparse: incorrect type in return expression (different address spaces) @@ expected void [noderef] <asn:2> * @@ got void * @@
drivers/gpu/drm/kmb/kmb_drv.c:110:31: sparse: expected void [noderef] <asn:2> *
drivers/gpu/drm/kmb/kmb_drv.c:110:31: sparse: got void *
# https://github.com/intel/linux-intel-lts/commit/d855ca729624b25fa0552c548f8805b63bb0c017
git remote add intel-linux-intel-lts https://github.com/intel/linux-intel-lts.git
git fetch --no-tags intel-linux-intel-lts 5.4/yocto
git checkout d855ca729624b25fa0552c548f8805b63bb0c017
vim +99 drivers/gpu/drm/kmb/kmb_drv.c
89
90 static void __iomem *kmb_map_mmio(struct platform_device *pdev, char *name)
91 {
92 struct resource *res;
93 u32 size;
94 void __iomem *mem;
95
96 res = platform_get_resource_byname(pdev, IORESOURCE_MEM, name);
97 if (!res) {
98 DRM_ERROR("failed to get resource for %s\n", name);
> 99 return ERR_PTR(-ENOMEM);
100 }
101 size = resource_size(res);
102 if (!request_mem_region(res->start, size, name)) {
103 DRM_ERROR("failed to reserve %s registers\n", name);
104 return ERR_PTR(-ENOMEM);
105 }
106 mem = ioremap_nocache(res->start, size);
107 if (!mem) {
108 DRM_ERROR("failed to ioremap %s registers\n", name);
109 release_mem_region(res->start, size);
110 return ERR_PTR(-ENOMEM);
111 }
112 return mem;
113 }
114
---
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: 26433 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
* [intel-linux-intel-lts:5.4/yocto 72/1142] drivers/gpu/drm/kmb/kmb_drv.c:99:31: sparse: sparse: incorrect type in return expression (different address spaces)
@ 2021-02-03 0:27 kernel test robot
0 siblings, 0 replies; 3+ messages in thread
From: kernel test robot @ 2021-02-03 0:27 UTC (permalink / raw)
To: kbuild-all
[-- Attachment #1: Type: text/plain, Size: 3252 bytes --]
tree: https://github.com/intel/linux-intel-lts.git 5.4/yocto
head: eeb611e5394c56d45c5cc8f7dc484c9f19e93143
commit: d855ca729624b25fa0552c548f8805b63bb0c017 [72/1142] drm/kmb: Cleanup probe functions
config: arm64-randconfig-s031-20210202 (attached as .config)
compiler: aarch64-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.3-215-g0fb77bb6-dirty
# https://github.com/intel/linux-intel-lts/commit/d855ca729624b25fa0552c548f8805b63bb0c017
git remote add intel-linux-intel-lts https://github.com/intel/linux-intel-lts.git
git fetch --no-tags intel-linux-intel-lts 5.4/yocto
git checkout d855ca729624b25fa0552c548f8805b63bb0c017
# 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=arm64
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/gpu/drm/kmb/kmb_drv.c:99:31: sparse: sparse: incorrect type in return expression (different address spaces) @@ expected void [noderef] <asn:2> * @@ got void * @@
drivers/gpu/drm/kmb/kmb_drv.c:99:31: sparse: expected void [noderef] <asn:2> *
drivers/gpu/drm/kmb/kmb_drv.c:99:31: sparse: got void *
drivers/gpu/drm/kmb/kmb_drv.c:104:31: sparse: sparse: incorrect type in return expression (different address spaces) @@ expected void [noderef] <asn:2> * @@ got void * @@
drivers/gpu/drm/kmb/kmb_drv.c:104:31: sparse: expected void [noderef] <asn:2> *
drivers/gpu/drm/kmb/kmb_drv.c:104:31: sparse: got void *
drivers/gpu/drm/kmb/kmb_drv.c:110:31: sparse: sparse: incorrect type in return expression (different address spaces) @@ expected void [noderef] <asn:2> * @@ got void * @@
drivers/gpu/drm/kmb/kmb_drv.c:110:31: sparse: expected void [noderef] <asn:2> *
drivers/gpu/drm/kmb/kmb_drv.c:110:31: sparse: got void *
vim +99 drivers/gpu/drm/kmb/kmb_drv.c
89
90 static void __iomem *kmb_map_mmio(struct platform_device *pdev, char *name)
91 {
92 struct resource *res;
93 u32 size;
94 void __iomem *mem;
95
96 res = platform_get_resource_byname(pdev, IORESOURCE_MEM, name);
97 if (!res) {
98 DRM_ERROR("failed to get resource for %s\n", name);
> 99 return ERR_PTR(-ENOMEM);
100 }
101 size = resource_size(res);
102 if (!request_mem_region(res->start, size, name)) {
103 DRM_ERROR("failed to reserve %s registers\n", name);
104 return ERR_PTR(-ENOMEM);
105 }
106 mem = ioremap_nocache(res->start, size);
107 if (!mem) {
108 DRM_ERROR("failed to ioremap %s registers\n", name);
109 release_mem_region(res->start, size);
110 return ERR_PTR(-ENOMEM);
111 }
112 return mem;
113 }
114
---
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: 31324 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
* [intel-linux-intel-lts:5.4/yocto 72/1142] drivers/gpu/drm/kmb/kmb_drv.c:99:31: sparse: sparse: incorrect type in return expression (different address spaces)
@ 2021-07-01 0:01 kernel test robot
0 siblings, 0 replies; 3+ messages in thread
From: kernel test robot @ 2021-07-01 0:01 UTC (permalink / raw)
To: kbuild-all
[-- Attachment #1: Type: text/plain, Size: 3250 bytes --]
tree: https://github.com/intel/linux-intel-lts.git 5.4/yocto
head: eeb611e5394c56d45c5cc8f7dc484c9f19e93143
commit: d855ca729624b25fa0552c548f8805b63bb0c017 [72/1142] drm/kmb: Cleanup probe functions
config: arm-randconfig-s031-20210630 (attached as .config)
compiler: arm-linux-gnueabi-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.3-341-g8af24329-dirty
# https://github.com/intel/linux-intel-lts/commit/d855ca729624b25fa0552c548f8805b63bb0c017
git remote add intel-linux-intel-lts https://github.com/intel/linux-intel-lts.git
git fetch --no-tags intel-linux-intel-lts 5.4/yocto
git checkout d855ca729624b25fa0552c548f8805b63bb0c017
# 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=arm
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/gpu/drm/kmb/kmb_drv.c:99:31: sparse: sparse: incorrect type in return expression (different address spaces) @@ expected void [noderef] <asn:2> * @@ got void * @@
drivers/gpu/drm/kmb/kmb_drv.c:99:31: sparse: expected void [noderef] <asn:2> *
drivers/gpu/drm/kmb/kmb_drv.c:99:31: sparse: got void *
drivers/gpu/drm/kmb/kmb_drv.c:104:31: sparse: sparse: incorrect type in return expression (different address spaces) @@ expected void [noderef] <asn:2> * @@ got void * @@
drivers/gpu/drm/kmb/kmb_drv.c:104:31: sparse: expected void [noderef] <asn:2> *
drivers/gpu/drm/kmb/kmb_drv.c:104:31: sparse: got void *
drivers/gpu/drm/kmb/kmb_drv.c:110:31: sparse: sparse: incorrect type in return expression (different address spaces) @@ expected void [noderef] <asn:2> * @@ got void * @@
drivers/gpu/drm/kmb/kmb_drv.c:110:31: sparse: expected void [noderef] <asn:2> *
drivers/gpu/drm/kmb/kmb_drv.c:110:31: sparse: got void *
vim +99 drivers/gpu/drm/kmb/kmb_drv.c
89
90 static void __iomem *kmb_map_mmio(struct platform_device *pdev, char *name)
91 {
92 struct resource *res;
93 u32 size;
94 void __iomem *mem;
95
96 res = platform_get_resource_byname(pdev, IORESOURCE_MEM, name);
97 if (!res) {
98 DRM_ERROR("failed to get resource for %s\n", name);
> 99 return ERR_PTR(-ENOMEM);
100 }
101 size = resource_size(res);
102 if (!request_mem_region(res->start, size, name)) {
103 DRM_ERROR("failed to reserve %s registers\n", name);
104 return ERR_PTR(-ENOMEM);
105 }
106 mem = ioremap_nocache(res->start, size);
107 if (!mem) {
108 DRM_ERROR("failed to ioremap %s registers\n", name);
109 release_mem_region(res->start, size);
110 return ERR_PTR(-ENOMEM);
111 }
112 return mem;
113 }
114
---
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: 31639 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2021-07-01 0:01 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-07-01 0:01 [intel-linux-intel-lts:5.4/yocto 72/1142] drivers/gpu/drm/kmb/kmb_drv.c:99:31: sparse: sparse: incorrect type in return expression (different address spaces) kernel test robot
-- strict thread matches above, loose matches on Subject: below --
2021-02-03 0:27 kernel test robot
2020-08-25 10:41 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.