Skip to contentSkip to conversation

lib/rbtree_test.c:91:30: sparse: constant 3141592653589793238 is so big it is lo

PATCH New Fengguang Wu 1 participant 1 message Jul 28, 2012 Kernel janitors

lore
Share & tools
lore
#0 lore raw

PATCH 233/308 lib/rbtree_test.c:91:30: sparse: constant 3141592653589793238 is so big it is lo

Hi Michel,

There are new sparse warnings show up in

tree:   git://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git akpm
head:   247109fa112ac912f31efc28e130ed2a0cc1764c
commit: eef00dbbae467827e34273cf4e07a5bebb660108 [233/308] rbtree: performance and correctness test

All sparse warnings:

+ lib/rbtree_test.c:91:30: sparse: constant 3141592653589793238 is so big it is long long include/linux/random.h:87:45: sparse: cast truncates bits from constant value (4f2e5357408c3c09 becomes 408c3c09) lib/rbtree_test.c: In function 'check':
lib/rbtree_test.c:76:4: warning: 'blacks' may be used uninitialized in this function [-Wmaybe-uninitialized]

Could be fixed by appending 'ULL' to the number.

---
0-DAY kernel build testing backend Open Source Technology Centre
Fengguang Wu <[email protected]> Intel Corporation