From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932562AbXIFUGQ (ORCPT ); Thu, 6 Sep 2007 16:06:16 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S932574AbXIFUDZ (ORCPT ); Thu, 6 Sep 2007 16:03:25 -0400 Received: from smtp.polymtl.ca ([132.207.4.11]:39715 "EHLO smtp.polymtl.ca" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932577AbXIFUDX (ORCPT ); Thu, 6 Sep 2007 16:03:23 -0400 Message-Id: <20070906200211.450883939@polymtl.ca> References: <20070906200124.595238505@polymtl.ca> User-Agent: quilt/0.46-1 Date: Thu, 06 Sep 2007 16:01:27 -0400 From: Mathieu Desnoyers To: akpm@linux-foundation.org, linux-kernel@vger.kernel.org Cc: Mathieu Desnoyers , Ananth N Mavinakayanahalli , hch@infradead.org, prasanna@in.ibm.com, anil.s.keshavamurthy@intel.com, davem@davemloft.net Subject: [patch 03/10] Kprobes - declare kprobe_mutex static Content-Disposition: inline; filename=kprobes-declare-kprobes-mutex-static.patch X-Poly-FromMTA: (dijkstra.casi.polymtl.ca [132.207.72.10]) at Thu, 6 Sep 2007 20:02:12 +0000 Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Since it will not be used by other kernel objects, it makes sense to declare it static. Signed-off-by: Mathieu Desnoyers Acked-by: Ananth N Mavinakayanahalli CC: hch@infradead.org CC: prasanna@in.ibm.com CC: anil.s.keshavamurthy@intel.com CC: davem@davemloft.net --- kernel/kprobes.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) Index: linux-2.6-lttng/kernel/kprobes.c =================================================================== --- linux-2.6-lttng.orig/kernel/kprobes.c 2007-08-19 09:09:15.000000000 -0400 +++ linux-2.6-lttng/kernel/kprobes.c 2007-08-19 17:18:07.000000000 -0400 @@ -68,7 +68,7 @@ static struct hlist_head kretprobe_inst_ /* NOTE: change this value only with kprobe_mutex held */ static bool kprobe_enabled; -DEFINE_MUTEX(kprobe_mutex); /* Protects kprobe_table */ +static DEFINE_MUTEX(kprobe_mutex); /* Protects kprobe_table */ DEFINE_SPINLOCK(kretprobe_lock); /* Protects kretprobe_inst_table */ static DEFINE_PER_CPU(struct kprobe *, kprobe_instance) = NULL; -- Mathieu Desnoyers Computer Engineering Ph.D. Student, Ecole Polytechnique de Montreal OpenPGP key fingerprint: 8CD5 52C3 8E3C 4140 715F BA06 3F25 A8FE 3BAE 9A68