From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1758623AbYHSVUQ (ORCPT ); Tue, 19 Aug 2008 17:20:16 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1753318AbYHSVUA (ORCPT ); Tue, 19 Aug 2008 17:20:00 -0400 Received: from ik-out-1112.google.com ([66.249.90.178]:15079 "EHLO ik-out-1112.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753056AbYHSVT7 (ORCPT ); Tue, 19 Aug 2008 17:19:59 -0400 DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:cc:mime-version:content-type :content-transfer-encoding:content-disposition; b=MxVP1OkiWmMWozB234XQWw9fcfG4Bsdn4iswWaYd+KVyR62QGPOjLiIAV8Dc3AgVT0 Mln+z1vReMBoCfXabp45UU5S9LcfqS3ddWiBdq+zpLx2ipCKprdYSYn5lBloLRcMX5VG xCzirMIrt6db+6vpy2Bp3kqrjgi8Yhiy8TrK8= Message-ID: <524f69650808191419j3e3a261dj9757ae4ea7a682bf@mail.gmail.com> Date: Tue, 19 Aug 2008 16:19:58 -0500 From: "Steve French" To: LKML Subject: context imbalance false positive sparse warnings Cc: sparse@vger.kernel.org MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@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