From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754669AbcBCOYr (ORCPT ); Wed, 3 Feb 2016 09:24:47 -0500 Received: from mga03.intel.com ([134.134.136.65]:17044 "EHLO mga03.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751412AbcBCOYq (ORCPT ); Wed, 3 Feb 2016 09:24:46 -0500 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.22,391,1449561600"; d="scan'208";a="904725389" From: Joonas Lahtinen To: Linux kernel development Cc: Joonas Lahtinen , "Gautham R. Shenoy" , "Rafael J. Wysocki" , Intel graphics driver community testing & development Subject: [PATCH] kernel/cpu: Distinctive name for cpu_hotplug.dep_map Date: Wed, 3 Feb 2016 16:24:28 +0200 Message-Id: <1454509468-10627-1-git-send-email-joonas.lahtinen@linux.intel.com> X-Mailer: git-send-email 2.5.0 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: Gautham R. Shenoy Cc: Rafael J. Wysocki Cc: Intel graphics driver community testing & development Signed-off-by: Joonas Lahtinen --- kernel/cpu.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kernel/cpu.c b/kernel/cpu.c index 5b9d396..6a13f24 100644 --- a/kernel/cpu.c +++ b/kernel/cpu.c @@ -78,7 +78,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.0