Re: [Intel-gfx] [PATCH v3] lib: Add a simple prime number generator

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Chris,

[auto build test WARNING on linus/master]
[also build test WARNING on v4.9 next-20161216]
[if your patch is applied to the wrong git tree, please drop us a note to help improve the system]

url:    https://github.com/0day-ci/linux/commits/Chris-Wilson/lib-Add-a-simple-prime-number-generator/20161217-013805
reproduce:
        # apt-get install sparse
        make ARCH=x86_64 allmodconfig
        make C=1 CF=-D__CHECK_ENDIAN__


sparse warnings: (new ones prefixed by >>)

   include/linux/compiler.h:253:8: sparse: attribute 'no_sanitize_address': unknown attribute
>> lib/prime_numbers.c:220:20: sparse: incompatible types in comparison expression (different address spaces)

vim +220 lib/prime_numbers.c

   204				return -EINVAL;
   205			}
   206			last = x;
   207		}
   208	
   209		pr_info("selftest(%lu) passed, last prime was %lu", x, last);
   210		return 0;
   211	}
   212	
   213	static int __init primes_init(void)
   214	{
   215		return selftest(selftest_max);
   216	}
   217	
   218	static void __exit primes_exit(void)
   219	{
 > 220		if (primes != &small_primes)
   221			kfree_rcu((struct primes *)primes, rcu);
   222	}
   223	
   224	module_init(primes_init);
   225	module_exit(primes_exit);
   226	
   227	module_param_named(selftest, selftest_max, ulong, 0400);
   228	

---
0-DAY kernel test infrastructure                Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all                   Intel Corporation
_______________________________________________
dri-devel mailing list
dri-devel@xxxxxxxxxxxxxxxxxxxxx
https://lists.freedesktop.org/mailman/listinfo/dri-devel




[Index of Archives]     [Linux DRI Users]     [Linux Intel Graphics]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [XFree86]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [XFree86]
  Powered by Linux