Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753227AbdHJQa2 (ORCPT ); Thu, 10 Aug 2017 12:30:28 -0400 Received: from youngberry.canonical.com ([91.189.89.112]:50343 "EHLO youngberry.canonical.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752772AbdHJQa1 (ORCPT ); Thu, 10 Aug 2017 12:30:27 -0400 From: Colin King To: Thomas Gleixner , Ingo Molnar , "H . Peter Anvin" , x86@kernel.org, Andrew Banman , Mike Travis , Dimitri Sivanich Cc: kernel-janitors@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] x86/platform/uv: make timeout_base_ns const and process_uv2_message static Date: Thu, 10 Aug 2017 17:30:06 +0100 Message-Id: <20170810163006.13926-1-colin.king@canonical.com> X-Mailer: git-send-email 2.11.0 MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1315 Lines: 38 From: Colin Ian King Make array timeout_base_ns const. Also the function process_uv2_message is local to the source and do not need to be in global scope, so make it static. Cleans up sparse warning: symbol 'process_uv2_message' was not declared. Should it be static? Signed-off-by: Colin Ian King --- arch/x86/platform/uv/tlb_uv.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/x86/platform/uv/tlb_uv.c b/arch/x86/platform/uv/tlb_uv.c index 3e4bdb442fbc..f44c0bc95aa2 100644 --- a/arch/x86/platform/uv/tlb_uv.c +++ b/arch/x86/platform/uv/tlb_uv.c @@ -26,7 +26,7 @@ static struct bau_operations ops __ro_after_init; /* timeouts in nanoseconds (indexed by UVH_AGING_PRESCALE_SEL urgency7 30:28) */ -static int timeout_base_ns[] = { +static const int timeout_base_ns[] = { 20, 160, 1280, @@ -1216,7 +1216,7 @@ static struct bau_pq_entry *find_another_by_swack(struct bau_pq_entry *msg, * set a bit in the UVH_LB_BAU_INTD_SOFTWARE_ACKNOWLEDGE register. * Such a message must be ignored. */ -void process_uv2_message(struct msg_desc *mdp, struct bau_control *bcp) +static void process_uv2_message(struct msg_desc *mdp, struct bau_control *bcp) { unsigned long mmr_image; unsigned char swack_vec; -- 2.11.0