Received: by 2002:a25:d7c1:0:0:0:0:0 with SMTP id o184csp3290371ybg; Mon, 28 Oct 2019 10:25:12 -0700 (PDT) X-Google-Smtp-Source: APXvYqye82iH0vIkgFeknG2Z2rL9bCHRR0yOA701d7af0qpfGpV8MDQPyvoD7Qjui86DkS+0P4nr X-Received: by 2002:a17:906:4d4f:: with SMTP id b15mr17294897ejv.81.1572283512011; Mon, 28 Oct 2019 10:25:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1572283512; cv=none; d=google.com; s=arc-20160816; b=HSP3RP77itzzYoavjafKUodqvwV90w3G6dyfbKXcNBbGAG2n6mqWRy+zIK5G1EAwAv 1sbTLy2a1P1pYzEu7QY+9yfs+wBkBBzufTnHoo9zvPXtshjVcZ5neacI82Qxi0XG3iRS iQRBp2jotmBtTnOdpWe2YyEYt7QCzH8YUIY2DClsJ/VF//Ua1gLKpIaB7+DGAzFq8los Gljzmw7v93VpXP3nnbswXE+ZHg5ia8D6IPnA15dY3q6YM4tIiGT+uUUFjAk9PL4UHXUj +rrWzUTAR/m3k/Ikjbh/icFIomtd2qFTQR6FkIqusbzbkPYhFoWBBbS6TnCmxXcL7Cb6 ixSQ== 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; bh=DrHdln/VOl4X+wAZA31cYukm9Zgu7gG/HffwIq4wtJo=; b=gue5DuIpTmeqa35Jcw4FmTnOgpNTKgGOa7szWLv9nMOmOn9npeVSlc3E58DhR5G8yJ 6avWv8Lgc9/y5Et0n7sP4zpHp4qXzknSJlnSdyTP+PJYXNuIxRlfvzai8oouWV1hMb9H 3KO4xl2rmPXa7qetmLL7zCj+BI+dQUifNyJt8Hw038OmCDtPiHhqrCEPobQvJJDifNVE 3NXWJt34JSEiMZCFLfK0sZupWvLOLf7+R3zxvHbhG9K/IorFmA0m4rgRGYsfloiO3rZB SI0oeHeHuhLzAex1B3Hik2qHX6T0ULRSIbw3RiHCxbZRxUUSC/X0dO/hZi7HoKw1IDLo sgrQ== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id d47si7678144ede.139.2019.10.28.10.24.48; Mon, 28 Oct 2019 10:25:11 -0700 (PDT) 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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1732244AbfJ1HHU (ORCPT + 99 others); Mon, 28 Oct 2019 03:07:20 -0400 Received: from mga18.intel.com ([134.134.136.126]:19783 "EHLO mga18.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1732191AbfJ1HHT (ORCPT ); Mon, 28 Oct 2019 03:07:19 -0400 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga003.fm.intel.com ([10.253.24.29]) by orsmga106.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 28 Oct 2019 00:07:18 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.68,239,1569308400"; d="scan'208";a="205111226" Received: from black.fi.intel.com (HELO black.fi.intel.com.) ([10.237.72.28]) by FMSMGA003.fm.intel.com with ESMTP; 28 Oct 2019 00:07:17 -0700 From: Alexander Shishkin To: Greg Kroah-Hartman Cc: linux-kernel@vger.kernel.org, Alexander Shishkin , Andy Shevchenko Subject: [GIT PULL 2/7] intel_th: msu: Fix an uninitialized mutex Date: Mon, 28 Oct 2019 09:06:46 +0200 Message-Id: <20191028070651.9770-3-alexander.shishkin@linux.intel.com> X-Mailer: git-send-email 2.23.0 In-Reply-To: <20191028070651.9770-1-alexander.shishkin@linux.intel.com> References: <20191028070651.9770-1-alexander.shishkin@linux.intel.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 Commit 615c164da0eb ("intel_th: msu: Introduce buffer interface") added a mutex that it forgot to initialize, resulting in a lockdep splat. Fix that by initializing the mutex statically. Signed-off-by: Alexander Shishkin Reviewed-by: Andy Shevchenko --- drivers/hwtracing/intel_th/msu.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/hwtracing/intel_th/msu.c b/drivers/hwtracing/intel_th/msu.c index fc9f15f36ad4..51021020fa3f 100644 --- a/drivers/hwtracing/intel_th/msu.c +++ b/drivers/hwtracing/intel_th/msu.c @@ -164,7 +164,7 @@ struct msc { }; static LIST_HEAD(msu_buffer_list); -static struct mutex msu_buffer_mutex; +static DEFINE_MUTEX(msu_buffer_mutex); /** * struct msu_buffer_entry - internal MSU buffer bookkeeping -- 2.23.0