Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752414AbdGDH3a (ORCPT ); Tue, 4 Jul 2017 03:29:30 -0400 Received: from cn.fujitsu.com ([59.151.112.132]:4139 "EHLO heian.cn.fujitsu.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1751910AbdGDH33 (ORCPT ); Tue, 4 Jul 2017 03:29:29 -0400 X-IronPort-AV: E=Sophos;i="5.22,518,1449504000"; d="scan'208";a="20829146" Subject: Re: [PATCH] x86/platform/uv/BAU: minor cleanup, make some local functions static To: Thomas Gleixner References: <20170703142258.18240-1-colin.king@canonical.com> <86c2556c-cc0e-b221-b81e-4433b61f0f82@cn.fujitsu.com> CC: Colin King , Ingo Molnar , "H . Peter Anvin" , , Andrew Banman , Mike Travis , Dimitri Sivanich , , From: Dou Liyang Message-ID: <7bc9c995-df1e-7b0f-4431-a0ae53080afe@cn.fujitsu.com> Date: Tue, 4 Jul 2017 15:29:20 +0800 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.4.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset="windows-1252"; format=flowed Content-Transfer-Encoding: 7bit X-Originating-IP: [10.167.226.106] X-yoursite-MailScanner-ID: 53B4147E98A6.AB72A X-yoursite-MailScanner: Found to be clean X-yoursite-MailScanner-From: douly.fnst@cn.fujitsu.com Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 994 Lines: 42 Hi Thomas, At 07/04/2017 03:19 PM, Thomas Gleixner wrote: > On Tue, 4 Jul 2017, Dou Liyang wrote: >> At 07/03/2017 10:22 PM, Colin King wrote: >>> -int normal_busy(struct bau_control *bcp) >>> +static int normal_busy(struct bau_control *bcp) >> >> In my opinion, there is no need to mark *normal_busy* static, remove it >> directly. >> >> the commit c5d35d399e68(x86/UV2: Work around BAU bug) add it to >> handle_uv2_busy(), but the handle_uv2_busy() is rewritten now. the >> normal_busy is unused, can be remove. > > Correct. > >> By the way, there are also an other function named >> uv_bau_message_interrupt() can be remove. > > Not so much. > > # git grep uv_bau_message_interrupt arch/x86/ > arch/x86/entry/entry_64.S:apicinterrupt3 UV_BAU_MESSAGE uv_bau_message_intr1 uv_bau_message_interrupt > arch/x86/platform/uv/tlb_uv.c:void uv_bau_message_interrupt(struct pt_regs *regs) > Oops, Indeed! you are right. ;) Thanks, dou. > Thanks, > > tglx > > > > >