lkml.org 
[lkml]   [2008]   [Aug]   [19]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
Subjectcontext imbalance false positive sparse warnings
Just building one directory of the kernel (./fs/*.c), ie "make bzImage
C=1" generates more than 200 sparse warnings similar to
warning: context imbalance in 'set_task_ioprio': wrong count at exit

Even the simplest use cases throw this error e.g. fs/super.c line 162-164:

static void put_super(struct super_block *sb)
{
spin_lock(&sb_lock);
__put_super(sb);
spin_unlock(&sb_lock);
}


It doesn't look like sparse has been fixed in a few months, unless the
sparse tool repository has moved from the
/pub/scm / devel/sparse/sparse.git
directory on git.kernel.org

Is there a way to turn just this warning off (the thousands of context
imbalance messages generated by the kernel build make it harder to see
real errors which sparse could catch)?



--
Thanks,

Steve


\
 
 \ /
  Last update: 2008-08-19 23:23    [W:0.252 / U:2.244 seconds]
©2003-2018 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site