All of lore.kernel.org
 help / color / mirror / Atom feed
* [lee-linaro:google/android-3.18-batch 203/521] fs/pstore/ram_core.c:302:50: sparse: sparse: incorrect type in argument 2 (different address spaces)
@ 2020-12-30 19:08 kernel test robot
  2020-12-31  8:32 ` Lee Jones
  0 siblings, 1 reply; 3+ messages in thread
From: kernel test robot @ 2020-12-30 19:08 UTC (permalink / raw)
  To: kbuild-all

[-- Attachment #1: Type: text/plain, Size: 6951 bytes --]

tree:   https://git.linaro.org/people/lee.jones/linux.git google/android-3.18-batch
head:   4067e89d337bc9eff1775d036695028b3ea3487c
commit: f1cd3961404b6c4ce4ba782e0427fe1e53d07f46 [203/521] pstore/ram: Use memcpy_fromio() to save old buffer
config: powerpc-randconfig-s031-20201230 (attached as .config)
compiler: powerpc-linux-gcc (GCC) 5.5.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-184-g1b896707-dirty
        git remote add lee-linaro https://git.linaro.org/people/lee.jones/linux.git
        git fetch --no-tags lee-linaro google/android-3.18-batch
        git checkout f1cd3961404b6c4ce4ba782e0427fe1e53d07f46
        # save the attached .config to linux build tree
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-5.5.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 >>)"
   fs/pstore/ram_core.c:101:35: sparse: sparse: Variable length array is used.
   fs/pstore/ram_core.c:114:35: sparse: sparse: Variable length array is used.
   fs/pstore/ram_core.c:269:34: sparse: sparse: incorrect type in argument 1 (different address spaces) @@     expected void volatile [noderef] <asn:2> *d @@     got unsigned char * @@
   fs/pstore/ram_core.c:269:34: sparse:     expected void volatile [noderef] <asn:2> *d
   fs/pstore/ram_core.c:269:34: sparse:     got unsigned char *
>> fs/pstore/ram_core.c:302:50: sparse: sparse: incorrect type in argument 2 (different address spaces) @@     expected void const volatile [noderef] <asn:2> *s @@     got unsigned char * @@
   fs/pstore/ram_core.c:302:50: sparse:     expected void const volatile [noderef] <asn:2> *s
   fs/pstore/ram_core.c:302:50: sparse:     got unsigned char *
   fs/pstore/ram_core.c:303:65: sparse: sparse: incorrect type in argument 2 (different address spaces) @@     expected void const volatile [noderef] <asn:2> *s @@     got unsigned char * @@
   fs/pstore/ram_core.c:303:65: sparse:     expected void const volatile [noderef] <asn:2> *s
   fs/pstore/ram_core.c:303:65: sparse:     got unsigned char *
   fs/pstore/ram_core.c:444:20: sparse: sparse: incorrect type in assignment (different address spaces) @@     expected void *va @@     got void [noderef] <asn:2> * @@
   fs/pstore/ram_core.c:444:20: sparse:     expected void *va
   fs/pstore/ram_core.c:444:20: sparse:     got void [noderef] <asn:2> *
   fs/pstore/ram_core.c:446:20: sparse: sparse: incorrect type in assignment (different address spaces) @@     expected void *va @@     got void [noderef] <asn:2> * @@
   fs/pstore/ram_core.c:446:20: sparse:     expected void *va
   fs/pstore/ram_core.c:446:20: sparse:     got void [noderef] <asn:2> *
   fs/pstore/ram_core.c:528:36: sparse: sparse: incorrect type in argument 1 (different address spaces) @@     expected void volatile [noderef] <asn:2> *addr @@     got void *vaddr @@
   fs/pstore/ram_core.c:528:36: sparse:     expected void volatile [noderef] <asn:2> *addr
   fs/pstore/ram_core.c:528:36: sparse:     got void *vaddr
   fs/pstore/ram_core.c:68:17: sparse: sparse: context imbalance in 'buffer_start_add' - unexpected unlock
   fs/pstore/ram_core.c:94:17: sparse: sparse: context imbalance in 'buffer_size_add' - unexpected unlock
   In file included from arch/powerpc/include/asm/pgtable-ppc32.h:7:0,
                    from arch/powerpc/include/asm/pgtable.h:19,
                    from include/linux/mm.h:63,
                    from include/linux/memblock.h:18,
                    from fs/pstore/ram_core.c:24:
   include/linux/sched.h:1067:42: warning: type qualifiers ignored on function return type [-Wignored-qualifiers]
    const struct sched_group_energy * const(*sched_domain_energy_f)(int cpu);
                                             ^
   In file included from include/linux/memblock.h:18:0,
                    from fs/pstore/ram_core.c:24:
   include/linux/mm.h: In function 'is_vmalloc_addr':
   include/linux/mm.h:378:14: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
     return addr >= VMALLOC_START && addr < VMALLOC_END;
                 ^
   In file included from include/linux/ioport.h:12:0,
                    from include/linux/device.h:16,
                    from fs/pstore/ram_core.c:17:
   fs/pstore/ram_core.c: In function 'buffer_start_add':
   fs/pstore/ram_core.c:63:22: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
     while (unlikely(new >= prz->buffer_size))
                         ^
   include/linux/compiler.h:176:42: note: in definition of macro 'unlikely'
    # define unlikely(x) __builtin_expect(!!(x), 0)
                                             ^
   fs/pstore/ram_core.c: In function 'persistent_ram_write':
   fs/pstore/ram_core.c:313:17: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
     if (unlikely(c > prz->buffer_size)) {
                    ^
   include/linux/compiler.h:176:42: note: in definition of macro 'unlikely'
    # define unlikely(x) __builtin_expect(!!(x), 0)
                                             ^
   fs/pstore/ram_core.c: In function 'persistent_ram_write_user':
   fs/pstore/ram_core.c:344:17: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
     if (unlikely(c > prz->buffer_size)) {
                    ^
   include/linux/compiler.h:176:42: note: in definition of macro 'unlikely'
    # define unlikely(x) __builtin_expect(!!(x), 0)
                                             ^
   fs/pstore/ram_core.c:365:29: warning: signed and unsigned type in conditional expression [-Wsign-compare]
     return unlikely(ret) ? ret : count;
                                ^

vim +302 fs/pstore/ram_core.c

   282	
   283	void persistent_ram_save_old(struct persistent_ram_zone *prz)
   284	{
   285		struct persistent_ram_buffer *buffer = prz->buffer;
   286		size_t size = buffer_size(prz);
   287		size_t start = buffer_start(prz);
   288	
   289		if (!size)
   290			return;
   291	
   292		if (!prz->old_log) {
   293			persistent_ram_ecc_old(prz);
   294			prz->old_log = kmalloc(size, GFP_KERNEL);
   295		}
   296		if (!prz->old_log) {
   297			pr_err("failed to allocate buffer\n");
   298			return;
   299		}
   300	
   301		prz->old_log_size = size;
 > 302		memcpy_fromio(prz->old_log, &buffer->data[start], size - start);
   303		memcpy_fromio(prz->old_log + size - start, &buffer->data[0], start);
   304	}
   305	

---
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: 14636 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [lee-linaro:google/android-3.18-batch 203/521] fs/pstore/ram_core.c:302:50: sparse: sparse: incorrect type in argument 2 (different address spaces)
  2020-12-30 19:08 [lee-linaro:google/android-3.18-batch 203/521] fs/pstore/ram_core.c:302:50: sparse: sparse: incorrect type in argument 2 (different address spaces) kernel test robot
@ 2020-12-31  8:32 ` Lee Jones
  2020-12-31 12:05   ` Philip Li
  0 siblings, 1 reply; 3+ messages in thread
From: Lee Jones @ 2020-12-31  8:32 UTC (permalink / raw)
  To: kbuild-all

[-- Attachment #1: Type: text/plain, Size: 358 bytes --]

On Thu, 31 Dec 2020, kernel test robot wrote:

> tree:   https://git.linaro.org/people/lee.jones/linux.git google/android-3.18-batch

Please refrain from testing this branch.

Thank you!

-- 
Lee Jones [李琼斯]
Senior Technical Lead - Developer Services
Linaro.org │ Open source software for Arm SoCs
Follow Linaro: Facebook | Twitter | Blog

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [lee-linaro:google/android-3.18-batch 203/521] fs/pstore/ram_core.c:302:50: sparse: sparse: incorrect type in argument 2 (different address spaces)
  2020-12-31  8:32 ` Lee Jones
@ 2020-12-31 12:05   ` Philip Li
  0 siblings, 0 replies; 3+ messages in thread
From: Philip Li @ 2020-12-31 12:05 UTC (permalink / raw)
  To: kbuild-all

[-- Attachment #1: Type: text/plain, Size: 733 bytes --]

On Thu, Dec 31, 2020 at 08:32:24AM +0000, Lee Jones wrote:
> On Thu, 31 Dec 2020, kernel test robot wrote:
> 
> > tree:   https://git.linaro.org/people/lee.jones/linux.git google/android-3.18-batch
> 
> Please refrain from testing this branch.
got it, we only ignore android-3.18-queue now, and will update pattern
to match google/android-3.18.

Thanks

> 
> Thank you!
> 
> -- 
> Lee Jones [李琼斯]
> Senior Technical Lead - Developer Services
> Linaro.org │ Open source software for Arm SoCs
> Follow Linaro: Facebook | Twitter | Blog
> _______________________________________________
> kbuild-all mailing list -- kbuild-all(a)lists.01.org
> To unsubscribe send an email to kbuild-all-leave(a)lists.01.org

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2020-12-31 12:05 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-12-30 19:08 [lee-linaro:google/android-3.18-batch 203/521] fs/pstore/ram_core.c:302:50: sparse: sparse: incorrect type in argument 2 (different address spaces) kernel test robot
2020-12-31  8:32 ` Lee Jones
2020-12-31 12:05   ` Philip Li

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.