* [mmotm:master 80/230] mm/slab.c:1308:4: warning: passing argument 2 of 'slab_set_debugobj_lock_classes_node' makes integer from pointer without a cast
@ 2014-06-20 2:26 kbuild test robot
2014-06-20 21:09 ` Andrew Morton
0 siblings, 1 reply; 2+ messages in thread
From: kbuild test robot @ 2014-06-20 2:26 UTC (permalink / raw)
To: Andrew Morton
Cc: Johannes Weiner, Christoph Lameter, Linux Memory Management List,
kbuild-all
tree: git://git.cmpxchg.org/linux-mmotm.git master
head: df25ba7db0775d87018e2cd92f26b9b087093840
commit: 21d9944b94ac764039a4bd6f0bbb7e4243cf0d30 [80/230] slab-use-get_node-and-kmem_cache_node-functions-fix-2
config: make ARCH=sh titan_defconfig
All warnings:
mm/slab.c: In function 'cpuup_prepare':
>> mm/slab.c:1308:4: warning: passing argument 2 of 'slab_set_debugobj_lock_classes_node' makes integer from pointer without a cast [enabled by default]
mm/slab.c:593:13: note: expected 'int' but argument is of type 'struct kmem_cache_node *'
vim +/slab_set_debugobj_lock_classes_node +1308 mm/slab.c
1292 * We are serialised from CPU_DEAD or
1293 * CPU_UP_CANCELLED by the cpucontrol lock
1294 */
1295 n->shared = shared;
1296 shared = NULL;
1297 }
1298 #ifdef CONFIG_NUMA
1299 if (!n->alien) {
1300 n->alien = alien;
1301 alien = NULL;
1302 }
1303 #endif
1304 spin_unlock_irq(&n->list_lock);
1305 kfree(shared);
1306 free_alien_cache(alien);
1307 if (cachep->flags & SLAB_DEBUG_OBJECTS)
> 1308 slab_set_debugobj_lock_classes_node(cachep, n);
1309 else if (!OFF_SLAB(cachep) &&
1310 !(cachep->flags & SLAB_DESTROY_BY_RCU))
1311 on_slab_lock_classes_node(cachep, n);
1312 }
1313 init_node_lock_keys(node);
1314
1315 return 0;
1316 bad:
---
0-DAY kernel build testing backend Open Source Technology Center
http://lists.01.org/mailman/listinfo/kbuild Intel Corporation
--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org. For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"dont@kvack.org"> email@kvack.org </a>
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [mmotm:master 80/230] mm/slab.c:1308:4: warning: passing argument 2 of 'slab_set_debugobj_lock_classes_node' makes integer from pointer without a cast
2014-06-20 2:26 [mmotm:master 80/230] mm/slab.c:1308:4: warning: passing argument 2 of 'slab_set_debugobj_lock_classes_node' makes integer from pointer without a cast kbuild test robot
@ 2014-06-20 21:09 ` Andrew Morton
0 siblings, 0 replies; 2+ messages in thread
From: Andrew Morton @ 2014-06-20 21:09 UTC (permalink / raw)
To: kbuild test robot
Cc: Johannes Weiner, Christoph Lameter, Linux Memory Management List,
kbuild-all
On Fri, 20 Jun 2014 10:26:23 +0800 kbuild test robot <fengguang.wu@intel.com> wrote:
> tree: git://git.cmpxchg.org/linux-mmotm.git master
> head: df25ba7db0775d87018e2cd92f26b9b087093840
> commit: 21d9944b94ac764039a4bd6f0bbb7e4243cf0d30 [80/230] slab-use-get_node-and-kmem_cache_node-functions-fix-2
> config: make ARCH=sh titan_defconfig
>
> All warnings:
>
> mm/slab.c: In function 'cpuup_prepare':
> >> mm/slab.c:1308:4: warning: passing argument 2 of 'slab_set_debugobj_lock_classes_node' makes integer from pointer without a cast [enabled by default]
> mm/slab.c:593:13: note: expected 'int' but argument is of type 'struct kmem_cache_node *'
>
grr, whack-a-mole.
--- a/mm/slab.c~slab-use-get_node-and-kmem_cache_node-functions-fix-2-fix
+++ a/mm/slab.c
@@ -590,7 +590,8 @@ static inline void on_slab_lock_classes_
{
}
-static void slab_set_debugobj_lock_classes_node(struct kmem_cache *cachep, int node)
+static void slab_set_debugobj_lock_classes_node(struct kmem_cache *cachep,
+ struct kmem_cache_node *n)
{
}
_
--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org. For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"dont@kvack.org"> email@kvack.org </a>
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2014-06-20 21:10 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-06-20 2:26 [mmotm:master 80/230] mm/slab.c:1308:4: warning: passing argument 2 of 'slab_set_debugobj_lock_classes_node' makes integer from pointer without a cast kbuild test robot
2014-06-20 21:09 ` Andrew Morton
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).