From patchwork Mon Jun 8 22:24:48 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Maxime Coquelin X-Patchwork-Id: 6568461 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 634A0C0020 for ; Mon, 8 Jun 2015 22:28:23 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 7536820434 for ; Mon, 8 Jun 2015 22:28:22 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 765F0203B7 for ; Mon, 8 Jun 2015 22:28:21 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1Z25Tr-0003wf-7m; Mon, 08 Jun 2015 22:25:19 +0000 Received: from mail-wi0-x22d.google.com ([2a00:1450:400c:c05::22d]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1Z25Tl-0002nT-Bn for linux-arm-kernel@lists.infradead.org; Mon, 08 Jun 2015 22:25:14 +0000 Received: by wiga1 with SMTP id a1so101084223wig.0 for ; Mon, 08 Jun 2015 15:24:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id:mime-version:content-type :content-transfer-encoding; bh=TsrDthOb/Kz/2ET8PmbJOr9KOEKYUzC+QJweAX3X/BI=; b=ck27OQ0z/ug/YSokydlf+t2ypCiSsGxfEJMWUmniV1ztNoVcmsOkRjaqCbTcjEhlmv oBWLaCLHPSXPz/t7ZP32uGXWWjGBhaLdBXJSu6cPwXscpFEBU1JYokjZiH0/WwGNfkBa oJTmvzdQk4LksO7/5P83SXnjuMSOJNAf6CFxD0ElH7FoShU1LHf2KMtVYtZEcbcOYDwE lygksOsmPv1yXlpS9KGhXOfkVEggfNMPq55KSqpot6AT3lkOr4ld3rZqVxr7oUMasqUX ZMYmMVTszn78SIM4TKUmhy6OrJPJNYgq/CVPM2RM2wPWhWbv4G4d2Raf5yAPGxrWZBYB K4XA== X-Received: by 10.180.74.210 with SMTP id w18mr26120782wiv.77.1433802289672; Mon, 08 Jun 2015 15:24:49 -0700 (PDT) Received: from lmecul0520.st.com. (75.159.140.88.rev.sfr.net. [88.140.159.75]) by mx.google.com with ESMTPSA id ez19sm3117871wid.19.2015.06.08.15.24.48 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 08 Jun 2015 15:24:49 -0700 (PDT) From: Maxime Coquelin To: Russell King , Arnd Bergmann , u.kleine-koenig@pengutronix.de 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 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20150608_152513_587817_88082D62 X-CRM114-Status: GOOD ( 10.68 ) X-Spam-Score: -0.6 (/) Cc: Russell King , linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, =?UTF-8?q?Uwe=20Kleine-K=C3=B6nig?= X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Spam-Status: No, score=-4.1 required=5.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_MED, T_DKIM_INVALID, T_RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP 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