Web lists-archives.com

[tip:WIP.x86/stackguards 1/32] mm/slab.c:1486:27: error: expected '}' before ';' token




tree:   https://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git WIP.x86/stackguards
head:   310a7f5b0b42c6a8edeb74ae3289a98896e0e5c9
commit: 7552063baa017438f2bfd6060e0b949808acc812 [1/32] mm/slab: Fix broken stack trace storage
config: x86_64-randconfig-x003-201915 (attached as .config)
compiler: gcc-7 (Debian 7.3.0-1) 7.3.0
reproduce:
        git checkout 7552063baa017438f2bfd6060e0b949808acc812
        # save the attached .config to linux build tree
        make ARCH=x86_64 

All errors (new ones prefixed by >>):

   mm/slab.c: In function 'store_stackinfo':
>> mm/slab.c:1486:27: error: expected '}' before ';' token
       .max_entries = size - 4;
                              ^

vim +1486 mm/slab.c

  1468	
  1469	#ifdef CONFIG_DEBUG_PAGEALLOC
  1470	static void store_stackinfo(struct kmem_cache *cachep, unsigned long *addr,
  1471				    unsigned long caller)
  1472	{
  1473		int size = cachep->object_size / sizeof(unsigned long);
  1474	
  1475		addr = (unsigned long *)&((char *)addr)[obj_offset(cachep)];
  1476	
  1477		if (size < 5)
  1478			return;
  1479	
  1480		*addr++ = 0x12345678;
  1481		*addr++ = caller;
  1482		*addr++ = smp_processor_id();
  1483	#ifdef CONFIG_STACKTRACE
  1484		{
  1485			struct stack_trace trace = {
> 1486				.max_entries	= size - 4;
  1487				.entries	= addr;
  1488				.skip		= 3;
  1489			};
  1490	
  1491			save_stack_trace(&trace);
  1492			addr += trace.nr_entries;
  1493		}
  1494	#endif
  1495		*addr = 0x87654321;
  1496	}
  1497	

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

Attachment: .config.gz
Description: application/gzip