From: akpm@linux-foundation.org Subject: [merged] dma-debug-track-bucket-lock-state-for-static-checkers.patch removed from -mm tree Date: Wed, 27 Jul 2016 11:58:36 -0700 Message-ID: <5799045c.WHA56UEF6dVxFwmC%akpm@linux-foundation.org> Reply-To: linux-kernel@vger.kernel.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Return-path: Received: from mail.linuxfoundation.org ([140.211.169.12]:39891 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932328AbcG0S6h (ORCPT ); Wed, 27 Jul 2016 14:58:37 -0400 Sender: mm-commits-owner@vger.kernel.org List-Id: mm-commits@vger.kernel.org To: sboyd@codeaurora.org, mm-commits@vger.kernel.org The patch titled Subject: dma-debug: track bucket lock state for static checkers has been removed from the -mm tree. Its filename was dma-debug-track-bucket-lock-state-for-static-checkers.patch This patch was dropped because it was merged into mainline or a subsystem tree ------------------------------------------------------ From: Stephen Boyd Subject: dma-debug: track bucket lock state for static checkers get_hash_bucket() and put_hash_bucket() acquire and release the same spinlock, but this confuses static checkers such as sparse lib/dma-debug.c:254:27: warning: context imbalance in 'get_hash_bucket' - wrong count at exit lib/dma-debug.c:268:13: warning: context imbalance in 'put_hash_bucket' - unexpected unlock Add the appropriate acquire and release statements so that checkers can properly track the lock state. Link: http://lkml.kernel.org/r/20160701191552.24295-1-sboyd@codeaurora.org Signed-off-by: Stephen Boyd Signed-off-by: Andrew Morton --- lib/dma-debug.c | 2 ++ 1 file changed, 2 insertions(+) diff -puN lib/dma-debug.c~dma-debug-track-bucket-lock-state-for-static-checkers lib/dma-debug.c --- a/lib/dma-debug.c~dma-debug-track-bucket-lock-state-for-static-checkers +++ a/lib/dma-debug.c @@ -253,6 +253,7 @@ static int hash_fn(struct dma_debug_entr */ static struct hash_bucket *get_hash_bucket(struct dma_debug_entry *entry, unsigned long *flags) + __acquires(&dma_entry_hash[idx].lock) { int idx = hash_fn(entry); unsigned long __flags; @@ -267,6 +268,7 @@ static struct hash_bucket *get_hash_buck */ static void put_hash_bucket(struct hash_bucket *bucket, unsigned long *flags) + __releases(&bucket->lock) { unsigned long __flags = *flags; _ Patches currently in -mm which might be from sboyd@codeaurora.org are