tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: 4da9f3302615f4191814f826054846bf843e24fa commit: 670d0a4b10704667765f7d18f7592993d02783aa sparse: use identifiers to define address spaces date: 7 weeks ago config: arc-randconfig-s032-20200805 (attached as .config) compiler: arc-elf-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-117-g8c7aee71-dirty git checkout 670d0a4b10704667765f7d18f7592993d02783aa # 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=arc
If you fix the issue, kindly add following tag as appropriate Reported-by: kernel test robot <[email protected]> sparse warnings: (new ones prefixed by >>) fs/pstore/ram_core.c:278:34: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void volatile [noderef] __iomem *addr @@ got unsigned char * @@ fs/pstore/ram_core.c:278:34: sparse: expected void volatile [noderef] __iomem *addr fs/pstore/ram_core.c:278:34: sparse: got unsigned char * fs/pstore/ram_core.c:311:50: sparse: sparse: incorrect type in argument 2 (different address spaces) @@ expected void const volatile [noderef] __iomem *addr @@ got unsigned char * @@ fs/pstore/ram_core.c:311:50: sparse: expected void const volatile [noderef] __iomem *addr fs/pstore/ram_core.c:311:50: sparse: got unsigned char * fs/pstore/ram_core.c:312:65: sparse: sparse: incorrect type in argument 2 (different address spaces) @@ expected void const volatile [noderef] __iomem *addr @@ got unsigned char * @@ fs/pstore/ram_core.c:312:65: sparse: expected void const volatile [noderef] __iomem *addr fs/pstore/ram_core.c:312:65: sparse: got unsigned char * fs/pstore/ram_core.c:452:20: sparse: sparse: incorrect type in assignment (different address spaces) @@ expected void *va @@ got void [noderef] __iomem * @@ fs/pstore/ram_core.c:452:20: sparse: expected void *va fs/pstore/ram_core.c:452:20: sparse: got void [noderef] __iomem * fs/pstore/ram_core.c:454:20: sparse: sparse: incorrect type in assignment (different address spaces) @@ expected void *va @@ got void [noderef] __iomem * @@ fs/pstore/ram_core.c:454:20: sparse: expected void *va fs/pstore/ram_core.c:454:20: sparse: got void [noderef] __iomem * >> fs/pstore/ram_core.c:542:36: sparse: sparse: incorrect type in argument 1 >> (different address spaces) @@ expected void const [noderef] __iomem >> *addr @@ got void *vaddr @@ >> fs/pstore/ram_core.c:542:36: sparse: expected void const [noderef] >> __iomem *addr fs/pstore/ram_core.c:542:36: sparse: got void *vaddr fs/pstore/ram_core.c:69:17: sparse: sparse: context imbalance in 'buffer_start_add' - unexpected unlock fs/pstore/ram_core.c:95:17: sparse: sparse: context imbalance in 'buffer_size_add' - unexpected unlock -- drivers/gpu/drm/mgag200/mgag200_cursor.c:32:44: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const volatile [noderef] __iomem *addr @@ got void * @@ drivers/gpu/drm/mgag200/mgag200_cursor.c:32:44: sparse: expected void const volatile [noderef] __iomem *addr drivers/gpu/drm/mgag200/mgag200_cursor.c:32:44: sparse: got void * drivers/gpu/drm/mgag200/mgag200_cursor.c:85:52: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const volatile [noderef] __iomem *addr @@ got void * @@ drivers/gpu/drm/mgag200/mgag200_cursor.c:85:52: sparse: expected void const volatile [noderef] __iomem *addr drivers/gpu/drm/mgag200/mgag200_cursor.c:85:52: sparse: got void * >> drivers/gpu/drm/mgag200/mgag200_cursor.c:103:33: sparse: sparse: incorrect >> type in argument 1 (different address spaces) @@ expected void volatile >> [noderef] __iomem *addr @@ got void * @@ >> drivers/gpu/drm/mgag200/mgag200_cursor.c:103:33: sparse: expected void >> volatile [noderef] __iomem *addr drivers/gpu/drm/mgag200/mgag200_cursor.c:103:33: sparse: got void * vim +542 fs/pstore/ram_core.c bb4206f2042d95 drivers/staging/android/persistent_ram.c Anton Vorontsov 2012-05-11 531 d3b487695120b5 drivers/staging/android/persistent_ram.c Anton Vorontsov 2012-05-11 532 void persistent_ram_free(struct persistent_ram_zone *prz) d3b487695120b5 drivers/staging/android/persistent_ram.c Anton Vorontsov 2012-05-11 533 { beeb94321a7a6d fs/pstore/ram_core.c Anton Vorontsov 2012-06-18 534 if (!prz) beeb94321a7a6d fs/pstore/ram_core.c Anton Vorontsov 2012-06-18 535 return; beeb94321a7a6d fs/pstore/ram_core.c Anton Vorontsov 2012-06-18 536 beeb94321a7a6d fs/pstore/ram_core.c Anton Vorontsov 2012-06-18 537 if (prz->vaddr) { d3b487695120b5 drivers/staging/android/persistent_ram.c Anton Vorontsov 2012-05-11 538 if (pfn_valid(prz->paddr >> PAGE_SHIFT)) { 831b624df1b420 fs/pstore/ram_core.c Bin Yang 2018-09-12 539 /* We must vunmap() at page-granularity. */ 831b624df1b420 fs/pstore/ram_core.c Bin Yang 2018-09-12 540 vunmap(prz->vaddr - offset_in_page(prz->paddr)); d3b487695120b5 drivers/staging/android/persistent_ram.c Anton Vorontsov 2012-05-11 541 } else { d3b487695120b5 drivers/staging/android/persistent_ram.c Anton Vorontsov 2012-05-11 @542 iounmap(prz->vaddr); d3b487695120b5 drivers/staging/android/persistent_ram.c Anton Vorontsov 2012-05-11 543 release_mem_region(prz->paddr, prz->size); d3b487695120b5 drivers/staging/android/persistent_ram.c Anton Vorontsov 2012-05-11 544 } beeb94321a7a6d fs/pstore/ram_core.c Anton Vorontsov 2012-06-18 545 prz->vaddr = NULL; beeb94321a7a6d fs/pstore/ram_core.c Anton Vorontsov 2012-06-18 546 } f2531f1976d98a fs/pstore/ram_core.c Kees Cook 2018-03-07 547 if (prz->rs_decoder) { f2531f1976d98a fs/pstore/ram_core.c Kees Cook 2018-03-07 548 free_rs(prz->rs_decoder); f2531f1976d98a fs/pstore/ram_core.c Kees Cook 2018-03-07 549 prz->rs_decoder = NULL; f2531f1976d98a fs/pstore/ram_core.c Kees Cook 2018-03-07 550 } f2531f1976d98a fs/pstore/ram_core.c Kees Cook 2018-03-07 551 kfree(prz->ecc_info.par); f2531f1976d98a fs/pstore/ram_core.c Kees Cook 2018-03-07 552 prz->ecc_info.par = NULL; f2531f1976d98a fs/pstore/ram_core.c Kees Cook 2018-03-07 553 d3b487695120b5 drivers/staging/android/persistent_ram.c Anton Vorontsov 2012-05-11 554 persistent_ram_free_old(prz); 1227daa43bce13 fs/pstore/ram_core.c Kees Cook 2018-10-17 555 kfree(prz->label); d3b487695120b5 drivers/staging/android/persistent_ram.c Anton Vorontsov 2012-05-11 556 kfree(prz); d3b487695120b5 drivers/staging/android/persistent_ram.c Anton Vorontsov 2012-05-11 557 } d3b487695120b5 drivers/staging/android/persistent_ram.c Anton Vorontsov 2012-05-11 558 :::::: The code at line 542 was first introduced by commit :::::: d3b487695120b5342067244253697eabb121436d staging: android: persistent_ram: Introduce persistent_ram_free() :::::: TO: Anton Vorontsov <[email protected]> :::::: CC: Greg Kroah-Hartman <[email protected]> --- 0-DAY CI Kernel Test Service, Intel Corporation https://lists.01.org/hyperkitty/list/[email protected]
.config.gz
Description: application/gzip

