Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp1784135ybv; Sun, 23 Feb 2020 15:19:21 -0800 (PST) X-Google-Smtp-Source: APXvYqwTdguoEPFvePXnH6ksZkPSn/NP6aSwq/BCoqQ3JjelakvMIGWshRUV7k4QRlaJNUCLUqSv X-Received: by 2002:aca:1c01:: with SMTP id c1mr10576802oic.18.1582499961803; Sun, 23 Feb 2020 15:19:21 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1582499961; cv=none; d=google.com; s=arc-20160816; b=usk3ZVmowIaZtPGX934UYToEng5oy+JntmFVHkHkyc1zTYJe4VksWiIFTd3rovqGqq ztKWzupnne8VlAJqaF7SKuPk2yJ30QZSyCRH+3S+vKpmn8SLWNIc1U64gO+ZaPiKC+6w FkUAjVV+xVU7oBKDmalb1aE1cBRIL/I9nh+K3hblSJskIH1PPQg1ySAoMrtlfcmiEDlp zj/isDng+87BbBsUYLnj5mhLObgg0hznnOIJaLJ8sWHEzcLpOgBbk9sttlRGI8lsjGDD Nw3hcuU0hc+oJOpRt/92tRseg//mhRBWzQ/VMi5M3tHDDGZ+KOCCtUYyCDJj46BtXg4P Vtlg== 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=d52I2cg4cQGyAeOzWmCnImcQNbb68kdLDPhQMpl0hX0=; b=deCXpb94toZkopz45Uup9JZvIua0iOsqxfyzNkbxey7kcK+t4j8yh2pp9KL6JbXibe oRUhvJLaww3fIHHY2PF7kzt6xgXlPwLvFyzDH3KqsBp68wMg4TiIt76Jv0c2qIZgRq7Y 1fuBTD3iq3enFH9L6biPiiJoP58G2uICGTup3hPtgfeC7J0Ol/9o/HxBUDWVwR8C+PvC VDLeTF1c7zRe5uuhnNoPMx9S5cwDRgaCJPt4pDWGA63IyrCaXUmbhx0boF+Xqvn38iKs RT/xBLEv4aSCZYj8kNQi6+koLtmE8ZAuMPC6dz3jnb39mz/x0VXU1aceDBRrqhZT0OrK OmCw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=iRYBDkeQ; 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 200si3968158oii.156.2020.02.23.15.19.10; Sun, 23 Feb 2020 15:19:21 -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=iRYBDkeQ; 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 S1727858AbgBWXSi (ORCPT + 99 others); Sun, 23 Feb 2020 18:18:38 -0500 Received: from mail-wr1-f67.google.com ([209.85.221.67]:35710 "EHLO mail-wr1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727837AbgBWXSg (ORCPT ); Sun, 23 Feb 2020 18:18:36 -0500 Received: by mail-wr1-f67.google.com with SMTP id w12so8248404wrt.2 for ; Sun, 23 Feb 2020 15:18:35 -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=d52I2cg4cQGyAeOzWmCnImcQNbb68kdLDPhQMpl0hX0=; b=iRYBDkeQ4db5W3MUDu0oR5U/Kb/B0rCA+HzQGJSDMO1cEzbzEJK2wWaP5MDxjSKr1h j1rOgh/9eTwk+Xu5o7uVeYMmTjEZZNCLqkcL1nfYmCgwYopCzLPlI/g22fJGCLbnJqeo AEYr421i8eeHOjanFCkblFnv2Is0kxbP+es1kQLIRF4zI2T0Y5Wp9mikAunnv3U02FvH 5Nydert3ZrjQSiGEyy6E28QTzou9vF3s9+68a08XhtCKA7eKcObub1NhHvBihg32j8+1 KwqRUvHVR6Sy4+Rzdy7snQEJsahkHApsArExqEovxJWjqx3WxIom+5bZ1a2UBsm+Ymb8 Zl8A== 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=d52I2cg4cQGyAeOzWmCnImcQNbb68kdLDPhQMpl0hX0=; b=LB+LnjkZ52X3SK51sPdNjjgAL4ln8nQlvI3R4ocOaD3akcO8kVGWrC/aiB2jtat1hF /mXnNgf/kXrz1Di2UIMKch5U+in7ZLZvOsmjoit36e0YiedzM6TIvhlIFry/npFrOQOM dFUJS6ie7C/EdJObGg/Pa4KXmwUThto9wYkVB77EJUdVL9W24dScXXgSXh6LXDqyCsJZ Kc1XES+RRv9grxlSpbroJRFXRTwTWq6Qv26B2pnZFutmvonNmsSKaqFqiMSgb3+1zjcE k7OAcNZiT9W4tlsyZvJIMCk2+QWFB3Gd7bhLZU+1SHSoAsra66CquUK+wCnPEeSaxeh4 6cKQ== X-Gm-Message-State: APjAAAVrIliOINl7u5B24HuHNTlJ62LO1sS0zTwzZ6xgUhjTzPLCqeZ1 hNImPLIvB+eaWPor7Qq2dQ== X-Received: by 2002:a5d:5267:: with SMTP id l7mr61272635wrc.84.1582499914687; Sun, 23 Feb 2020 15:18:34 -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.33 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 23 Feb 2020 15:18:34 -0800 (PST) From: Jules Irenge To: boqun.feng@gmail.com Cc: jbi.octave@gmail.com, linux-kernel@vger.kernel.org, Oded Gabbay , Arnd Bergmann , Greg Kroah-Hartman , Tomer Tayar , Omer Shpigelman , Dalit Ben Zoor Subject: [PATCH 28/30] habanalabs: Add missing annotation for goya_hw_queues_unlock() Date: Sun, 23 Feb 2020 23:17:09 +0000 Message-Id: <20200223231711.157699-29-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 at goya_hw_queues_unlock() warning: context imbalance in goya_hw_queues_unlock() - unexpected unlock The root cause is a missing annotation at goya_hw_queues_unlock() Add the missing __releases(&goya->hw_queues_lock) annotation Signed-off-by: Jules Irenge --- drivers/misc/habanalabs/goya/goya.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/misc/habanalabs/goya/goya.c b/drivers/misc/habanalabs/goya/goya.c index 8ca7ee57cbc1..6138b461d0f8 100644 --- a/drivers/misc/habanalabs/goya/goya.c +++ b/drivers/misc/habanalabs/goya/goya.c @@ -5081,6 +5081,7 @@ static void goya_hw_queues_lock(struct hl_device *hdev) } static void goya_hw_queues_unlock(struct hl_device *hdev) + __releases(&goya->hw_queues_lock) { struct goya_device *goya = hdev->asic_specific; -- 2.24.1