From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Steve French" Subject: context imbalance false positive sparse warnings Date: Tue, 19 Aug 2008 16:47:29 -0500 Message-ID: <524f69650808191447o62a421c3n65f3938c9fc28dd7@mail.gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Return-path: Received: from nf-out-0910.google.com ([64.233.182.186]:55592 "EHLO nf-out-0910.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753880AbYHSVra (ORCPT ); Tue, 19 Aug 2008 17:47:30 -0400 Received: by nf-out-0910.google.com with SMTP id d3so80314nfc.21 for ; Tue, 19 Aug 2008 14:47:29 -0700 (PDT) Content-Disposition: inline Sender: linux-sparse-owner@vger.kernel.org List-Id: linux-sparse@vger.kernel.org To: linux-sparse@vger.kernel.org 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