Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp4480626imm; Tue, 7 Aug 2018 02:08:36 -0700 (PDT) X-Google-Smtp-Source: AAOMgpclkRf5reQknjPLc/hadyaBiGR/Ag25NKi0+49EvWNOZIrxZTw+3TKZ/lak8/PBFC9DaSyR X-Received: by 2002:a62:843:: with SMTP id c64-v6mr21017759pfd.14.1533632916776; Tue, 07 Aug 2018 02:08:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1533632916; cv=none; d=google.com; s=arc-20160816; b=LVpAk091n9nHL7RqLai8piBiLmWzoW1YnrGGXgG9hCEtXFjHqDGwZ4fXLMIpngbOKI Nw1RCS9g+8a7p8vOqNP/fmFTom+38PFQYD3wPwmvEf4dR0n+ZSbBoacTc/2Wn+u8d4xE UeQ6oc2L+W2XVxJYqsl+tsm3C8Ci479Zxwh4vG/0IeZAigUbJw9IAYq2QX5mlHg3YfZT CdHqNus2rov/dpIU9+nFyFBow//DWhRaxNh3X7TkQo8QTgCLmo4OVH290UK/6GGo3BYW jxOJZU8psLHi9wdv0hRIIt6Oj26a0EMlKQvx9rOrfS2m78IhNcol5MzAggzrevgmSOY9 tuYg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:content-transfer-encoding :message-id:date:subject:cc:to:from:arc-authentication-results; bh=o/uaHdp1LbCHS+gwkqchhkvdc5kjIYweCOCAmeqZ+CI=; b=RaChZiwm4121j0TBAXcF7Y3Grz0I8yqIUCh3Y1+RkQsg90qy0FWekBYySj17/Voa1H EYEXWo9RX8GCo7hlTjyEwm8DdtTzAOpydaIJatxVVIZuxU0MTXoKmt9iKqmsGW8g6BnV ZgrNBaG/03SHtoiYJvbWLOSX56mqQnRAdUw7TsoDBKC2iRuCNCavGpv6RNGIuNknGEzW vNEJCBHuRnTbypmfNbrzcVyumcj9b3A3fga3nqy/wf+c0UWBFbMAsex1NJT+0Nbte5Xk EYNiIC1WYtMB7u8kqC/TratOVrqTrTVS1i102G9BpeHrdUOxYQoOEDPQIZuoZtd9cDWH evaw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id z12-v6si700917pgu.692.2018.08.07.02.08.21; Tue, 07 Aug 2018 02:08:36 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1733147AbeHGLCE (ORCPT + 99 others); Tue, 7 Aug 2018 07:02:04 -0400 Received: from szxga04-in.huawei.com ([45.249.212.190]:10639 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1727578AbeHGLCE (ORCPT ); Tue, 7 Aug 2018 07:02:04 -0400 Received: from DGGEMS410-HUB.china.huawei.com (unknown [172.30.72.58]) by Forcepoint Email with ESMTP id 5DA46CF6426C8; Tue, 7 Aug 2018 16:48:42 +0800 (CST) Received: from localhost.localdomain.localdomain (10.175.113.25) by DGGEMS410-HUB.china.huawei.com (10.3.19.210) with Microsoft SMTP Server id 14.3.399.0; Tue, 7 Aug 2018 16:48:33 +0800 From: Mao Wenan To: Peter Zijlstra , Ingo Molnar , Will Deacon CC: Mao Wenan , , Subject: [PATCH] rtmutex: Drop pointless static qualifier in rt_mutex_adjust_prio_chain() Date: Tue, 7 Aug 2018 08:56:03 +0000 Message-ID: <1533632163-93769-1-git-send-email-maowenan@huawei.com> X-Mailer: git-send-email 1.8.3.1 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 7bit MIME-Version: 1.0 X-Originating-IP: [10.175.113.25] X-CFilter-Loop: Reflected Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org There is no need to have the 'T *v' variable static since new value always be assigned before use it. Signed-off-by: Mao Wenan --- kernel/locking/rtmutex.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kernel/locking/rtmutex.c b/kernel/locking/rtmutex.c index 2823d41..ba70db8 100644 --- a/kernel/locking/rtmutex.c +++ b/kernel/locking/rtmutex.c @@ -472,7 +472,7 @@ static int rt_mutex_adjust_prio_chain(struct task_struct *task, * We limit the lock chain length for each invocation. */ if (++depth > max_lock_depth) { - static int prev_max; + int prev_max; /* * Print this only once. If the admin changes the limit,