Re: [PATCH] block_dev: Suppress bdev_cache_init() kmemleak warninig

From: Al Viro
Date: Mon Jan 09 2012 - 18:03:42 EST


On Tue, Jan 10, 2012 at 01:44:36AM +0300, Sergey Senozhatsky wrote:

> due to attempt to mark pointer to `struct vfsmount' as a gray object, which
> is embedded into `struct mount' returned from alloc_vfsmnt(). Pass actual
> allocated `struct mount' pointer to kmemleak_not_leak() instead.

*snort*

how about turning bd_mnt into a static instead and to hell with messing with
annotations? It's not like one word of .bss was worth those convolutions...
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/