Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753182AbdFVLJ7 (ORCPT ); Thu, 22 Jun 2017 07:09:59 -0400 Received: from terminus.zytor.com ([65.50.211.136]:32961 "EHLO terminus.zytor.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752630AbdFVLJ6 (ORCPT ); Thu, 22 Jun 2017 07:09:58 -0400 Date: Thu, 22 Jun 2017 04:06:18 -0700 From: tip-bot for Dou Liyang Message-ID: Cc: peterz@infradead.org, hpa@zytor.com, linux-kernel@vger.kernel.org, mingo@kernel.org, douly.fnst@cn.fujitsu.com, tglx@linutronix.de, torvalds@linux-foundation.org Reply-To: peterz@infradead.org, hpa@zytor.com, mingo@kernel.org, linux-kernel@vger.kernel.org, douly.fnst@cn.fujitsu.com, tglx@linutronix.de, torvalds@linux-foundation.org In-Reply-To: <1498040061-5332-1-git-send-email-douly.fnst@cn.fujitsu.com> References: <1498040061-5332-1-git-send-email-douly.fnst@cn.fujitsu.com> To: linux-tip-commits@vger.kernel.org Subject: [tip:x86/apic] x86/apic: Make init_legacy_irqs() __init Git-Commit-ID: a884d25f383133c845d23c2cce929ba15994ca62 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 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1579 Lines: 46 Commit-ID: a884d25f383133c845d23c2cce929ba15994ca62 Gitweb: http://git.kernel.org/tip/a884d25f383133c845d23c2cce929ba15994ca62 Author: Dou Liyang AuthorDate: Wed, 21 Jun 2017 18:14:21 +0800 Committer: Ingo Molnar CommitDate: Thu, 22 Jun 2017 10:34:41 +0200 x86/apic: Make init_legacy_irqs() __init This function is only called by arch_early_irq_init(), which is an __init function, so mark the child function __init as well. In addition mark it inline for the !CONFIG_X86_IO_APIC case. Signed-off-by: Dou Liyang Cc: Linus Torvalds Cc: Peter Zijlstra Cc: Thomas Gleixner Link: http://lkml.kernel.org/r/1498040061-5332-1-git-send-email-douly.fnst@cn.fujitsu.com Signed-off-by: Ingo Molnar --- arch/x86/kernel/apic/vector.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/x86/kernel/apic/vector.c b/arch/x86/kernel/apic/vector.c index f3557a1..e66d8e4 100644 --- a/arch/x86/kernel/apic/vector.c +++ b/arch/x86/kernel/apic/vector.c @@ -405,7 +405,7 @@ int __init arch_probe_nr_irqs(void) } #ifdef CONFIG_X86_IO_APIC -static void init_legacy_irqs(void) +static void __init init_legacy_irqs(void) { int i, node = cpu_to_node(0); struct apic_chip_data *data; @@ -424,7 +424,7 @@ static void init_legacy_irqs(void) } } #else -static void init_legacy_irqs(void) { } +static inline void init_legacy_irqs(void) { } #endif int __init arch_early_irq_init(void)