Skip to contentSkip to conversation

mm/slab.c:3865:7: error: conflicting types for 'kmem_cache_alloc_node_trace'

DISCUSSION Fengguang Wu 2 participants 2 messages Sep 25, 2012 Kernel janitors

lore
Share & tools
lore
#0 lore raw

Hi Ezequiel,

FYI, kernel build failed on

4052147c0afa1cf05780ed846f37e87cdde9f628 mm, slab: Match SLAB and SLUB kmem_cache_alloc_xxx_trace() prototype x86_64-allyesdebian

All error/warnings:

mm/slab.c:3865:7: error: conflicting types for 'kmem_cache_alloc_node_trace' In file included from include/linux/slab.h:213:0,

                 from mm/slab.c:89:

include/linux/slab_def.h:162:14: note: previous declaration of 'kmem_cache_alloc_node_trace' was here mm/slab.c: In function 'kmem_cache_alloc_node_trace':
mm/slab.c:3872:50: error: '_RET_IP' undeclared (first use in this function) mm/slab.c:3872:50: note: each undeclared identifier is reported only once for each function it appears in mm/slab.c: At top level:
mm/slab.c:3879:44: error: conflicting types for 'kmem_cache_alloc_node_trace'
In file included from include/linux/slab.h:213:0,

                 from mm/slab.c:89:

include/linux/slab_def.h:162:14: note: previous declaration of 'kmem_cache_alloc_node_trace' was here

vim +3865 mm/slab.c
3859
3860 return ret;
3861 }
3862 EXPORT_SYMBOL(kmem_cache_alloc_node);
3863
3864 #ifdef CONFIG_TRACING

Quoted 1 line

3865 void *kmem_cache_alloc_node_trace(struct kmem_cache *cachep,

  3866					  gfp_t flags,
  3867					  int nodeid,
  3868					  size_t size)

---
0-DAY kernel build testing backend Open Source Technology Centre
Fengguang Wu, Yuanhan Liu Intel Corporation

#1 lore raw
Quoted 29 lines · Fengguang Wu

Hi Ezequiel,

FYI, kernel build failed on

4052147c0afa1cf05780ed846f37e87cdde9f628 mm, slab: Match SLAB and SLUB kmem_cache_alloc_xxx_trace() prototype x86_64-allyesdebian

All error/warnings:

mm/slab.c:3865:7: error: conflicting types for 'kmem_cache_alloc_node_trace' In file included from include/linux/slab.h:213:0,

                 from mm/slab.c:89:

include/linux/slab_def.h:162:14: note: previous declaration of 'kmem_cache_alloc_node_trace' was here mm/slab.c: In function 'kmem_cache_alloc_node_trace':
mm/slab.c:3872:50: error: '_RET_IP' undeclared (first use in this function) mm/slab.c:3872:50: note: each undeclared identifier is reported only once for each function it appears in mm/slab.c: At top level:
mm/slab.c:3879:44: error: conflicting types for 'kmem_cache_alloc_node_trace'
In file included from include/linux/slab.h:213:0,

                 from mm/slab.c:89:

include/linux/slab_def.h:162:14: note: previous declaration of 'kmem_cache_alloc_node_trace' was here

vim +3865 mm/slab.c
3859
3860 return ret;
3861 }
3862 EXPORT_SYMBOL(kmem_cache_alloc_node);
3863
3864 #ifdef CONFIG_TRACING

Quoted 5 lines
Quoted 1 line

3865 void *kmem_cache_alloc_node_trace(struct kmem_cache *cachep,

  3866                                    gfp_t flags,
  3867                                    int nodeid,
  3868                                    size_t size)

Thanks! I'm preparing a fix for this (and the other one) right now.

Ezequiel.