Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753117Ab0AVNlZ (ORCPT ); Fri, 22 Jan 2010 08:41:25 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1752861Ab0AVNlW (ORCPT ); Fri, 22 Jan 2010 08:41:22 -0500 Received: from ns.dcl.info.waseda.ac.jp ([133.9.216.194]:62793 "EHLO ns.dcl.info.waseda.ac.jp" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752106Ab0AVNjW (ORCPT ); Fri, 22 Jan 2010 08:39:22 -0500 From: Hitoshi Mitake To: Ingo Molnar Cc: linux-kernel@vger.kernel.org, Hitoshi Mitake , Peter Zijlstra , Paul Mackerras , Frederic Weisbecker Subject: [PATCH 09/12] lockdep: Fix the way to initialize class_mutex for information of file and line Date: Fri, 22 Jan 2010 22:39:10 +0900 Message-Id: <1264167553-6510-10-git-send-email-mitake@dcl.info.waseda.ac.jp> X-Mailer: git-send-email 1.6.5.2 In-Reply-To: <1264167553-6510-1-git-send-email-mitake@dcl.info.waseda.ac.jp> References: <1264167553-6510-1-git-send-email-mitake@dcl.info.waseda.ac.jp> Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1450 Lines: 36 This patch adds __FILE__ and __LINE__ to arguments passed for __mutex_init() called in __class_register(). This affects to lockdep_map of class_mutex of struct class_private, and these will be used to make trace lock events more human friendly. Signed-off-by: Hitoshi Mitake Cc: Peter Zijlstra Cc: Paul Mackerras Cc: Frederic Weisbecker Acked-by: Greg Kroah-Hartman --- drivers/base/class.c | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git a/drivers/base/class.c b/drivers/base/class.c index 161746d..cc0630f 100644 --- a/drivers/base/class.c +++ b/drivers/base/class.c @@ -162,7 +162,8 @@ int __class_register(struct class *cls, struct lock_class_key *key) klist_init(&cp->class_devices, klist_class_dev_get, klist_class_dev_put); INIT_LIST_HEAD(&cp->class_interfaces); kset_init(&cp->class_dirs); - __mutex_init(&cp->class_mutex, "struct class mutex", key); + __mutex_init(&cp->class_mutex, "struct class mutex", key, + __FILE__, __LINE__); error = kobject_set_name(&cp->class_subsys.kobj, "%s", cls->name); if (error) { kfree(cp); -- 1.6.5.2 -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/