From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752609AbdGDKmV (ORCPT ); Tue, 4 Jul 2017 06:42:21 -0400 Received: from terminus.zytor.com ([65.50.211.136]:58029 "EHLO terminus.zytor.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752212AbdGDKmS (ORCPT ); Tue, 4 Jul 2017 06:42:18 -0400 Date: Tue, 4 Jul 2017 03:40:01 -0700 From: tip-bot for Geert Uytterhoeven Message-ID: Cc: hpa@zytor.com, arnd@arndb.de, tglx@linutronix.de, geert@linux-m68k.org, linux-kernel@vger.kernel.org, mingo@kernel.org Reply-To: linux-kernel@vger.kernel.org, mingo@kernel.org, tglx@linutronix.de, geert@linux-m68k.org, hpa@zytor.com, arnd@arndb.de In-Reply-To: <1499162761-12398-1-git-send-email-geert@linux-m68k.org> References: <1499162761-12398-1-git-send-email-geert@linux-m68k.org> To: linux-tip-commits@vger.kernel.org Subject: [tip:irq/urgent] genirq: Force inlining of __irq_startup_managed to prevent build failure Git-Commit-ID: 2372a519f63829b8effcdde5f4564a7e036294f0 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 Commit-ID: 2372a519f63829b8effcdde5f4564a7e036294f0 Gitweb: http://git.kernel.org/tip/2372a519f63829b8effcdde5f4564a7e036294f0 Author: Geert Uytterhoeven AuthorDate: Tue, 4 Jul 2017 12:06:01 +0200 Committer: Thomas Gleixner CommitDate: Tue, 4 Jul 2017 12:36:44 +0200 genirq: Force inlining of __irq_startup_managed to prevent build failure If CONFIG_SMP=n, and gcc (e.g. 4.1.2) decides not to inline __irq_startup_managed(), the build fails with: kernel/built-in.o: In function `irq_startup': (.text+0x38ed8): undefined reference to `irq_set_affinity_locked' Fix this by forcing inlining of __irq_startup_managed(). Fixes: 761ea388e8c4e3ac ("genirq: Handle managed irqs gracefully in irq_startup()") Signed-off-by: Geert Uytterhoeven Signed-off-by: Thomas Gleixner Cc: Arnd Bergmann Link: http://lkml.kernel.org/r/1499162761-12398-1-git-send-email-geert@linux-m68k.org --- kernel/irq/chip.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kernel/irq/chip.c b/kernel/irq/chip.c index 2e30d925..aa5497d 100644 --- a/kernel/irq/chip.c +++ b/kernel/irq/chip.c @@ -234,7 +234,7 @@ __irq_startup_managed(struct irq_desc *desc, struct cpumask *aff, bool force) return IRQ_STARTUP_MANAGED; } #else -static int +static __always_inline int __irq_startup_managed(struct irq_desc *desc, struct cpumask *aff, bool force) { return IRQ_STARTUP_NORMAL;