Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932521AbbFHWY5 (ORCPT ); Mon, 8 Jun 2015 18:24:57 -0400 Received: from mail-wi0-f176.google.com ([209.85.212.176]:35551 "EHLO mail-wi0-f176.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752696AbbFHWYu (ORCPT ); Mon, 8 Jun 2015 18:24:50 -0400 From: Maxime Coquelin To: Russell King , Arnd Bergmann , u.kleine-koenig@pengutronix.de Cc: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, =?UTF-8?q?Uwe=20Kleine-K=C3=B6nig?= , Russell King Subject: [PATCH] ARM: Re-enable TRACE_IRQFLAGS_SUPPORT on ARMv7-M Date: Tue, 9 Jun 2015 00:24:48 +0200 Message-Id: <1433802288-25508-1-git-send-email-mcoquelin.stm32@gmail.com> X-Mailer: git-send-email 1.9.1 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: 1729 Lines: 48 Commit cb1293e2f594 ("ARM: 8375/1: disable some options on ARMv7-M") causes build failure on ARMv7-M machines: CC arch/arm/kernel/asm-offsets.s In file included from include/linux/sem.h:5:0, from include/linux/sched.h:35, from arch/arm/kernel/asm-offsets.c:14: include/linux/rcupdate.h: In function 'rcu_read_lock_sched_held': include/linux/rcupdate.h:539:2: error: implicit declaration of function 'arch_irqs_disabled' [-Werror=implicit-function-declaration] return preempt_count() != 0 || irqs_disabled(); ^ Commit cb1293e2f594 was initially introduced to fix build errors with randconfig, as ARMv7-m selects TRACE_IRQFLAGS_SUPPORT but breaks build when TRACE_IRQFLAGS is selected. As there is no proper support yet for TRACE_IRQFLAGS, this patch partially reverts commit cb1293e2f594, with the downside of build errors with randconfig when TRACE_IRQFLAGS gets selected. Cc: Arnd Bergmann Cc: Uwe Kleine-König Cc: Russell King Signed-off-by: Maxime Coquelin --- arch/arm/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/Kconfig b/arch/arm/Kconfig index b47457d..e4e1694 100644 --- a/arch/arm/Kconfig +++ b/arch/arm/Kconfig @@ -171,7 +171,7 @@ config LOCKDEP_SUPPORT config TRACE_IRQFLAGS_SUPPORT bool - default !CPU_V7M + default y config RWSEM_XCHGADD_ALGORITHM bool -- 1.9.1 -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/