Re: [PATCH v4 3/3] UBSAN: run-time undefined behavior sanity checker

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

 



Hi Andrey,

[auto build test WARNING on next-20151203]
[cannot apply to tip/x86/core kbuild/rc-fixes v4.4-rc3 v4.4-rc2 v4.4-rc1 v4.4-rc3]

url:    https://github.com/0day-ci/linux/commits/Andrey-Ryabinin/UBSAN-run-time-undefined-behavior-sanity-checker/20151204-202547
config: i386-allmodconfig (attached as .config)
reproduce:
        # save the attached .config to linux build tree
        make ARCH=i386 

All warnings (new ones prefixed by >>):

   lib/ubsan.c: In function 'val_to_string':
>> lib/ubsan.c:121:8: warning: unused variable 'val' [-Wunused-variable]
     u_max val = get_unsigned_val(type, value);
           ^

vim +/val +121 lib/ubsan.c

   105	}
   106	
   107	static u_max get_unsigned_val(struct type_descriptor *type, unsigned long val)
   108	{
   109		if (is_inline_int(type))
   110			return val;
   111	
   112		if (type_bit_width(type) == 64)
   113			return *(u64 *)val;
   114	
   115		return *(u_max *)val;
   116	}
   117	
   118	static void val_to_string(char *str, size_t size, struct type_descriptor *type,
   119		unsigned long value)
   120	{
 > 121		u_max val = get_unsigned_val(type, value);
   122	
   123		if (type_is_int(type)) {
   124			if (type_bit_width(type) == 128) {
   125	#ifdef CONFIG_ARCH_SUPPORTS_INT128
   126				scnprintf(str, size, "0x%08x%08x%08x%08x",
   127					(u32)(val >> 96),
   128					(u32)(val >> 64),
   129					(u32)(val >> 32),

---
0-DAY kernel test infrastructure                Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all                   Intel Corporation

Attachment: .config.gz
Description: Binary data


[Index of Archives]     [Linux&nblp;USB Development]     [Linux Media]     [Video for Linux]     [Linux Audio Users]     [Yosemite Secrets]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux