Skip to contentSkip to conversation

mm/slab_common.c:196:6: sparse: symbol 'print_slabinf

PATCH Glauber Costa 2 participants 2 messages Sep 28, 2012 Kernel janitors

lore
Share & tools
lore
#0 lore raw
Quoted 2 lines · Fengguang Wu

Hi Glauber,

Fenghuang,

Quoted 7 lines

FYI, there are new sparse warnings show up in

tree:   git://git.kernel.org/pub/scm/linux/kernel/git/glommer/memcg.git slab-common/slabinfo
head:   0521160acc51bc8385807752e69dd38d976aef22
commit: 162166afaaa413f42fc655f3a87140b9a08c0a6e [18/21] move print_slabinfo_header to slab_common.c

+ mm/slab_common.c:196:6: sparse: symbol 'print_slabinfo_header' was not declared. Should it be static?

I fixed that.

Quoted 8 lines

--
+ mm/slub.c:1713:6: sparse: symbol 'init_kmem_cache_cpus' was not declared. Should it be static?
+ mm/slub.c:1938:5: sparse: symbol 'put_cpu_partial' was not declared. Should it be static?
+ mm/slub.c:1068:40: sparse: context imbalance in 'free_debug_processing' - different lock contexts for basic block
+ mm/slub.c:1856:28: sparse: context imbalance in 'deactivate_slab' - unexpected unlock
+ mm/slub.c:1885:44: sparse: context imbalance in 'unfreeze_partials' - unexpected unlock
+ mm/slub.c:2539:31: sparse: context imbalance in '__slab_free' - unexpected unlock

My patch does not touch those functions at all. (I checked in git blame, and they are in the tree for a while now).

If you want to send a patch fixing this upstream, you can add my Acked-by

(I could do that too, but you deserve the credit!)

#1 lore raw
Quoted 9 lines · Glauber Costa
Quoted 2 lines · Fengguang Wu

Hi Glauber,

Fenghuang,

Quoted 2 lines

FYI, there are new sparse warnings show up in

Quoted 7 lines
Quoted 5 lines
tree:   git://git.kernel.org/pub/scm/linux/kernel/git/glommer/memcg.git slab-common/slabinfo
head:   0521160acc51bc8385807752e69dd38d976aef22
commit: 162166afaaa413f42fc655f3a87140b9a08c0a6e [18/21] move print_slabinfo_header to slab_common.c

+ mm/slab_common.c:196:6: sparse: symbol 'print_slabinfo_header' was not declared. Should it be static?

I fixed that.

Thanks!

Quoted 9 lines
Quoted 8 lines

--
+ mm/slub.c:1713:6: sparse: symbol 'init_kmem_cache_cpus' was not declared. Should it be static?
+ mm/slub.c:1938:5: sparse: symbol 'put_cpu_partial' was not declared. Should it be static?
+ mm/slub.c:1068:40: sparse: context imbalance in 'free_debug_processing' - different lock contexts for basic block
+ mm/slub.c:1856:28: sparse: context imbalance in 'deactivate_slab' - unexpected unlock
+ mm/slub.c:1885:44: sparse: context imbalance in 'unfreeze_partials' - unexpected unlock
+ mm/slub.c:2539:31: sparse: context imbalance in '__slab_free' - unexpected unlock

Quoted 6 lines

My patch does not touch those functions at all. (I checked in git blame, and they are in the tree for a while now).

If you want to send a patch fixing this upstream, you can add my Acked-by

(I could do that too, but you deserve the credit!)

OK, I'll send a standalone patch for making the functions static.

Thanks,
Fengguang