Received: by 10.223.185.116 with SMTP id b49csp1025191wrg; Fri, 16 Feb 2018 11:02:21 -0800 (PST) X-Google-Smtp-Source: AH8x224qgXUadq9DaQhcinftQBS/YMnOaj2gLhFBYu/kFMpdmk8eiwcLGjeOlP6x+/J3eHEORRmZ X-Received: by 2002:a17:902:2845:: with SMTP id e63-v6mr6626485plb.438.1518807741575; Fri, 16 Feb 2018 11:02:21 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1518807741; cv=none; d=google.com; s=arc-20160816; b=n5DsrFzROj53FBmplTYWjNwwr1HIBCMbuaSXDRI/Dxa5LH+faduHE1i4p/FG7EmxRm oGIHxmSaWNgWripeZnvLaReyE1N1CmN2qAVFeQpa7BkW/VjRlkdIAOCnuuv8lncggkN3 eLaA7/CN2AfoiYurenu4bBhnm4VySuTqrPiXzcOB98mib5CZvkGoWSm7240F7lu8d/lA g6NR5Z06B+1/rSUeLvi8FIkm3hGMgIdyOXq8pOpX2kL2iwQRb2qv7HT2gviROmAErVxI 8fLwCMJ/AjXF+pIhNEHB6FrDEGPlNb8bi2JR8laAIQ7rLtW5Yz3RW2aWsOMu4acsVvl2 ufOw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-disposition :content-transfer-encoding:mime-version:robot-unsubscribe:robot-id :git-commit-id:subject:to:references:in-reply-to:reply-to:cc :message-id:from:date:arc-authentication-results; bh=9qxoAOAt5tp7pgC8KB9jx/4HUiu8qlr3BwfJs4XMU78=; b=dqVfuFqDNAtsH912boFmm4vK/nX2mniMJgMTFCFJtV85S/6CX5jDQQFMYfzpdUTAaw 7t/tTwnsv3e++rp+ejsWVq8zsAocPM66rMAaF/KEpdz57hkmIpCvhhhM+CxChkgiOQh6 yzjnp2iNFqxDEuQ8MWNtUkBplGpwgTYyzKP4MGB034i3KAGMec5Ra5CXCtLNH9i36SmK m6gX7jJ37/jhCYAFGi66lc2o4uGx2LbQ0omK5WzfX/wtARynf1PPBvvHcXv5SPQGXHAk VXeh7iJ2c8HrVSZVGJGHHrEIHeAifDcMkegixlIlytrBWhHQaHSPNlJP0RQwlSmWM/T5 hzIg== 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 t75si1504600pfe.77.2018.02.16.11.02.05; Fri, 16 Feb 2018 11:02:21 -0800 (PST) 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 S934466AbeBPKvZ (ORCPT + 99 others); Fri, 16 Feb 2018 05:51:25 -0500 Received: from terminus.zytor.com ([198.137.202.136]:45949 "EHLO terminus.zytor.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933316AbeBPKvX (ORCPT ); Fri, 16 Feb 2018 05:51:23 -0500 Received: from terminus.zytor.com (localhost [127.0.0.1]) by terminus.zytor.com (8.15.2/8.15.2) with ESMTP id w1GAoxqi017140; Fri, 16 Feb 2018 02:50:59 -0800 Received: (from tipbot@localhost) by terminus.zytor.com (8.15.2/8.15.2/Submit) id w1GAowRv017137; Fri, 16 Feb 2018 02:50:58 -0800 Date: Fri, 16 Feb 2018 02:50:58 -0800 X-Authentication-Warning: terminus.zytor.com: tipbot set sender to tipbot@zytor.com using -f From: tip-bot for Dou Liyang Message-ID: Cc: mingo@kernel.org, peterz@infradead.org, hpa@zytor.com, tglx@linutronix.de, douly.fnst@cn.fujitsu.com, torvalds@linux-foundation.org, linux-kernel@vger.kernel.org Reply-To: hpa@zytor.com, peterz@infradead.org, mingo@kernel.org, linux-kernel@vger.kernel.org, tglx@linutronix.de, torvalds@linux-foundation.org, douly.fnst@cn.fujitsu.com In-Reply-To: <20180214062554.21020-1-douly.fnst@cn.fujitsu.com> References: <20180214062554.21020-1-douly.fnst@cn.fujitsu.com> To: linux-tip-commits@vger.kernel.org Subject: [tip:x86/apic] x86/apic: Make setup_local_APIC() static Git-Commit-ID: b753a2b79a5bbad35dfaf8d3dba964727c30654a X-Mailer: tip-git-log-daemon Robot-ID: Robot-Unsubscribe: Contact to get blacklisted from these emails MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset=UTF-8 Content-Disposition: inline X-Spam-Status: No, score=-2.9 required=5.0 tests=ALL_TRUSTED,BAYES_00 autolearn=ham autolearn_force=no version=3.4.1 X-Spam-Checker-Version: SpamAssassin 3.4.1 (2015-04-28) on terminus.zytor.com Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Commit-ID: b753a2b79a5bbad35dfaf8d3dba964727c30654a Gitweb: https://git.kernel.org/tip/b753a2b79a5bbad35dfaf8d3dba964727c30654a Author: Dou Liyang AuthorDate: Wed, 14 Feb 2018 14:25:54 +0800 Committer: Ingo Molnar CommitDate: Fri, 16 Feb 2018 10:39:11 +0100 x86/apic: Make setup_local_APIC() static This function isn't used outside of apic.c, so let's mark it static. Signed-off-by: Dou Liyang Cc: Linus Torvalds Cc: Peter Zijlstra Cc: Thomas Gleixner Cc: bhe@redhat.com Cc: ebiederm@xmission.com Link: http://lkml.kernel.org/r/20180214062554.21020-1-douly.fnst@cn.fujitsu.com Signed-off-by: Ingo Molnar --- arch/x86/include/asm/apic.h | 1 - arch/x86/kernel/apic/apic.c | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/arch/x86/include/asm/apic.h b/arch/x86/include/asm/apic.h index 6e1990d..c6a3201 100644 --- a/arch/x86/include/asm/apic.h +++ b/arch/x86/include/asm/apic.h @@ -138,7 +138,6 @@ extern void lapic_shutdown(void); extern void sync_Arb_IDs(void); extern void init_bsp_APIC(void); extern void apic_intr_mode_init(void); -extern void setup_local_APIC(void); extern void init_apic_mappings(void); void register_lapic_address(unsigned long address); extern void setup_boot_APIC_clock(void); diff --git a/arch/x86/kernel/apic/apic.c b/arch/x86/kernel/apic/apic.c index 25ddf02..871018d 100644 --- a/arch/x86/kernel/apic/apic.c +++ b/arch/x86/kernel/apic/apic.c @@ -1414,7 +1414,7 @@ static void lapic_setup_esr(void) * Used to setup local APIC while initializing BSP or bringing up APs. * Always called with preemption disabled. */ -void setup_local_APIC(void) +static void setup_local_APIC(void) { int cpu = smp_processor_id(); unsigned int value, queued;