All of lore.kernel.org
 help / color / mirror / Atom feed
* context imbalance false positive sparse warnings
@ 2008-08-19 21:47 Steve French
  2008-08-19 22:00 ` Stalin Kenny
  0 siblings, 1 reply; 6+ messages in thread
From: Steve French @ 2008-08-19 21:47 UTC (permalink / raw)
  To: linux-sparse

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

^ permalink raw reply	[flat|nested] 6+ messages in thread
* context imbalance false positive sparse warnings
@ 2008-08-19 21:19 Steve French
  0 siblings, 0 replies; 6+ messages in thread
From: Steve French @ 2008-08-19 21:19 UTC (permalink / raw)
  To: LKML; +Cc: sparse

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

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2008-09-10  7:47 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-08-19 21:47 context imbalance false positive sparse warnings Steve French
2008-08-19 22:00 ` Stalin Kenny
2008-08-19 22:22   ` Steve French
2008-08-19 22:26     ` Harvey Harrison
2008-09-10  7:47       ` Johannes Berg
  -- strict thread matches above, loose matches on Subject: below --
2008-08-19 21:19 Steve French

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.