From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751791AbcFILtA (ORCPT ); Thu, 9 Jun 2016 07:49:00 -0400 Received: from mga11.intel.com ([192.55.52.93]:53458 "EHLO mga11.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750825AbcFILs6 (ORCPT ); Thu, 9 Jun 2016 07:48:58 -0400 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.26,444,1459839600"; d="scan'208";a="972179725" From: Joonas Lahtinen To: Linux kernel development Cc: Joonas Lahtinen , Ingo Molnar , Peter Zijlstra , "Gautham R. Shenoy" , intel-gfx@lists.freedesktop.org, trivial@kernel.org Subject: [PATCH] kernel/cpu: Distinct name for cpu_hotplug.dep_map Date: Thu, 9 Jun 2016 14:48:39 +0300 Message-Id: <1465472919-10499-1-git-send-email-joonas.lahtinen@linux.intel.com> X-Mailer: git-send-email 2.5.5 In-Reply-To: <1455539446.5499.2.camel@linux.intel.com> References: <1455539446.5499.2.camel@linux.intel.com> Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Use distinctive name for cpu_hotplug.dep_map to avoid the actual cpu_hotplug.lock appearing as cpu_hotplug.lock#2 in lockdep splats. Cc: Ingo Molnar Cc: Peter Zijlstra Cc: Gautham R. Shenoy Cc: intel-gfx@lists.freedesktop.org Cc: trivial@kernel.org Acked-by: Gautham R. Shenoy Signed-off-by: Joonas Lahtinen --- This time CC'ing trivial@kernel.org too in the hopes of finally getting this in. --- kernel/cpu.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kernel/cpu.c b/kernel/cpu.c index d948e44..d74199d 100644 --- a/kernel/cpu.c +++ b/kernel/cpu.c @@ -155,7 +155,7 @@ static struct { .wq = __WAIT_QUEUE_HEAD_INITIALIZER(cpu_hotplug.wq), .lock = __MUTEX_INITIALIZER(cpu_hotplug.lock), #ifdef CONFIG_DEBUG_LOCK_ALLOC - .dep_map = {.name = "cpu_hotplug.lock" }, + .dep_map = STATIC_LOCKDEP_MAP_INIT("cpu_hotplug.dep_map", &cpu_hotplug.dep_map), #endif }; -- 2.5.5