Hi Linus,
On 12 Feb 2007, at 15:50, Linus Torvalds wrote:
On Mon, 12 Feb 2007, Anton Altaparmakov wrote:
What can I do to tell sparse that this code is ok and there should
not be a
warning? Is there a "__ignore_context_imbalance" or something
that I can mark
up the {un,}lock_kernel() with or something like that?
No, you should annotate the function as already having the lock when
entered.
[snip]
int myfunction(..)
__releases(kernel_lock)
__acquires(kernel_lock)
{
unlock_kernel();
..
lock_kernel();
}
Great, thanks! That works a treat. (-:
Best regards,
Anton
--
Anton Altaparmakov <aia21 at cam.ac.uk> (replace at with @)
Unix Support, Computing Service, University of Cambridge, CB2 3QH, UK
Linux NTFS maintainer, http://www.linux-ntfs.org/
-
To unsubscribe from this list: send the line "unsubscribe linux-sparse" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html