From mboxrd@z Thu Jan 1 00:00:00 1970 From: Al Viro Subject: Re: [PATCH] block_dev: Suppress bdev_cache_init() kmemleak warninig Date: Mon, 9 Jan 2012 23:03:16 +0000 Message-ID: <20120109230316.GZ23916@ZenIV.linux.org.uk> References: <20120109224436.GA3429@swordfish> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org To: Sergey Senozhatsky Return-path: Content-Disposition: inline In-Reply-To: <20120109224436.GA3429@swordfish> Sender: linux-kernel-owner@vger.kernel.org List-Id: linux-fsdevel.vger.kernel.org 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...