From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1765639AbXG2PDx (ORCPT ); Sun, 29 Jul 2007 11:03:53 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1764247AbXG2O6K (ORCPT ); Sun, 29 Jul 2007 10:58:10 -0400 Received: from mailout.stusta.mhn.de ([141.84.69.5]:47803 "EHLO mailhub.stusta.mhn.de" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1764160AbXG2O6I (ORCPT ); Sun, 29 Jul 2007 10:58:08 -0400 Date: Sun, 29 Jul 2007 16:57:44 +0200 From: Adrian Bunk To: Andrew Morton Cc: Ingo Molnar , linux-kernel@vger.kernel.org Subject: [2.6 patch] kernel/rtmutex-debug.c: cleanups Message-ID: <20070729145744.GQ16817@stusta.de> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline User-Agent: Mutt/1.5.16 (2007-06-11) Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org This patch contains the following cleanups: - make the needlessly global variable rt_trace_on static - remove the unused global function deadlock_trace_off() Signed-off-by: Adrian Bunk --- This patch has been sent on: - 1 Jul 2007 - 4 Apr 2007 --- linux-2.6.21-rc5-mm3/kernel/rtmutex-debug.c.old 2007-04-03 01:29:12.000000000 +0200 +++ linux-2.6.21-rc5-mm3/kernel/rtmutex-debug.c 2007-04-03 01:29:59.000000000 +0200 @@ -88,12 +88,7 @@ * into the tracing code when doing error printk or * executing a BUG(): */ -int rt_trace_on = 1; - -void deadlock_trace_off(void) -{ - rt_trace_on = 0; -} +static int rt_trace_on = 1; static void printk_task(struct task_struct *p) {