Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp1783998ybv; Sun, 23 Feb 2020 15:19:08 -0800 (PST) X-Google-Smtp-Source: APXvYqyZQU4wt5BMQxxWh1Z7rp5jNmruLmxuvME8EdkJ+Ulufgwg6qNQ0v8gTaN3j7D/a7PblLS5 X-Received: by 2002:aca:55cc:: with SMTP id j195mr10804925oib.22.1582499948527; Sun, 23 Feb 2020 15:19:08 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1582499948; cv=none; d=google.com; s=arc-20160816; b=g8RZM//5JDIu4ZDCFF3XaHHrHdF2L1csZPn0sYU1em/+faxSgit3NKe/meQHH6Lmxk cMJqaJtKksGoyqyvrZk0SnY+RRJZTH52aBefvpDEF0Cuu3/YHJD8vcszqZpbLUF0sm9l /D30nbQ43nGT2pYqDb4+Z9c7hp0j0Bt4QUCmueJ+LFtyk+bjLPs1xk/e7tLodZKl8+SM iK9JJ/rLkR1r3R+5O9KDy2LFwA4paHF693nLyw3wsxknAByVEitJN0Y+urgkY9Jynn+m lMmCpd4aZpkRwbjWW/bBBkw1KRwAuoqCPrmj+r0P3OphaaBNsg66ChIeAplxDwdCuK3L zJZw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=D226Q712hm4RRuLjuRLwvzFIxXTYHeeP4FIQmGcb/n4=; b=IdWJYVMlrRKFHNzJkqbM+LkZBA41eyL19fGXnt/8tAjM8fhyyMhvsv3IWODeM+04od 6VGiFLusg4TSChLcQbgun/OppSRDxls63BVLCoeD/3p3sDth8nN17SMGOhNr82HKC5Dy BP7QRqIs6PXCXMvGrCawKqZ3N4yVHBFJ421Xx4/eXot6YzawNLbxPmZ86dRFleYnykLC +anx/BRD+xIMnaMFN+mF81aOK3ajKMRy4Nk6jmfD/+umS9Q1XUR2WcLoQady6kwYQbal /lz7MmPv5VlyICAbD4+7zk6kz6gWK1LDZX69nEUFoCIP7F1Hbx1+R8618w+X4cK65UVq yWbw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=GCLwLyyF; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id l5si5665404otn.35.2020.02.23.15.18.57; Sun, 23 Feb 2020 15:19:08 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=GCLwLyyF; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727816AbgBWXSc (ORCPT + 99 others); Sun, 23 Feb 2020 18:18:32 -0500 Received: from mail-wm1-f66.google.com ([209.85.128.66]:55566 "EHLO mail-wm1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727151AbgBWXS0 (ORCPT ); Sun, 23 Feb 2020 18:18:26 -0500 Received: by mail-wm1-f66.google.com with SMTP id q9so7177675wmj.5; Sun, 23 Feb 2020 15:18:25 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=D226Q712hm4RRuLjuRLwvzFIxXTYHeeP4FIQmGcb/n4=; b=GCLwLyyF5ZoS6d1OmnyDt1cTIkPYcFUnQewizYiPNQ5Ombi1m0z17U0Krh/rOyOkn4 n/Lc0hrlyUSfl3Fwv+bRNjPqgyHv8WnWsf2K36q9iXs4xQBQFhovuQH4CyTn8DWIp6WY AVdnQxUK2GhvjAlHrepv5euNhFIhhlxmSN4b3/7PIHcAFnT5wmB41qb2SDo45QOfBVWi RfO+9IF/OYARyUrm1WbG9pkWGpdEEz6OH0f2w8i1kM0zZAkFN5LmzTa9Y7iuxa/nDnAS ZhA3AFm6+1JRxWw0c+3J6/saRBfwGeI+cLXUGPf5tOtREVUIAD8EGjMKzp0KAED2OP4o ViUA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=D226Q712hm4RRuLjuRLwvzFIxXTYHeeP4FIQmGcb/n4=; b=VgY4x1uKfMT9EpSgGUPN6h2TMgyMWcoDK86GZBRPRfqXTgGG0jplICfPxBukOdcLeZ ZZpHLp6pEbO2KiqeCvBOFx6RI4/+pZLhu6CVcfHPJQkjukeEEbhQl/LWGiDrDG+ti+8O 8uel0U2tJN9Uu0erWa4ZE2ZK546rGGZ/I9PzxnZzUnJFy3neMjn/u7CydVOEjmSz8X+T RZHv+X8A5/RwWe6sJylXMwKeWiWhnE3Musa8SCjcfQ4VSeKTFBo5Ww6tYs1ugohVilk8 +cvH8FDbb08QHUET21Ze93rDTN9LX+4WH135Ea++pyaTipUiNRQH8q0XOCt2pnFKFh+W I47Q== X-Gm-Message-State: APjAAAUwWJPhq+0/lmjFCSeVKw8q70ui/LMDGjIyKvCVZuxF42T5XprR 1vNkn1BWKpxJeawXRFpZhw== X-Received: by 2002:a05:600c:414e:: with SMTP id h14mr17871964wmm.179.1582499904465; Sun, 23 Feb 2020 15:18:24 -0800 (PST) Received: from ninjahost.lan (host-2-102-13-223.as13285.net. [2.102.13.223]) by smtp.googlemail.com with ESMTPSA id q6sm8968203wrf.67.2020.02.23.15.18.23 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 23 Feb 2020 15:18:24 -0800 (PST) From: Jules Irenge To: boqun.feng@gmail.com Cc: jbi.octave@gmail.com, linux-kernel@vger.kernel.org, Sudeep Dutt , Ashutosh Dixit , Vinod Koul , Dan Williams , dmaengine@vger.kernel.org (open list:DMA GENERIC OFFLOAD ENGINE SUBSYSTEM) Subject: [PATCH 24/30] dmaengine: mic_x100_dma: Add missing annotation for mic_dma_tx_submit_unlock() Date: Sun, 23 Feb 2020 23:17:05 +0000 Message-Id: <20200223231711.157699-25-jbi.octave@gmail.com> X-Mailer: git-send-email 2.24.1 In-Reply-To: <20200223231711.157699-1-jbi.octave@gmail.com> References: <0/30> <20200223231711.157699-1-jbi.octave@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Sparse reports a warning dma_cookie_t mic_dma_tx_submit_unlock() warning: context imbalance in mic_dma_tx_submit_unlock() - unexpected unlock The root cause is the missing annotation at mic_dma_tx_submit_unlock() Add the missing annotation __releases(&mic_ch->prep_lock) Signed-off-by: Jules Irenge --- drivers/dma/mic_x100_dma.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/dma/mic_x100_dma.c b/drivers/dma/mic_x100_dma.c index fea8608a7810..d15c41151d09 100644 --- a/drivers/dma/mic_x100_dma.c +++ b/drivers/dma/mic_x100_dma.c @@ -236,6 +236,7 @@ static inline void mic_dma_update_pending(struct mic_dma_chan *ch) } static dma_cookie_t mic_dma_tx_submit_unlock(struct dma_async_tx_descriptor *tx) + __releases(&mic_ch->prep_lock) { struct mic_dma_chan *mic_ch = to_mic_dma_chan(tx->chan); dma_cookie_t cookie; -- 2.24.1