From patchwork Fri Nov 3 10:39:57 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnd Bergmann X-Patchwork-Id: 117874 Delivered-To: patch@linaro.org Received: by 10.140.22.164 with SMTP id 33csp3291857qgn; Fri, 3 Nov 2017 03:40:51 -0700 (PDT) X-Google-Smtp-Source: ABhQp+QuxA2IqSASe1r1spAxlOCOYFoWLg+7ALd7cs1zNvzgYdTEbWlna4dP/WdVPEfoJXapZgrg X-Received: by 10.101.65.11 with SMTP id w11mr6797663pgp.207.1509705651373; Fri, 03 Nov 2017 03:40:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1509705651; cv=none; d=google.com; s=arc-20160816; b=m4nCiYPuB9M5wppI+5Y/Cp4paPUghhAqK77VAdYPnLKWGKlYR/mYvqEZNlsVcJ1EAO LQuoj3hzSlbpIWjf4k2dowhcMrZpJRbsaVNpzAO+M6tSd6qSuQ3S8z0jAktIx5c1APnr GMBIe/3xCiFj5PpC2Bk2L21OROihYVW0bImYe9sNs2OBZmnFlwowznPVO5nMQkaX8x1z C7XORKn25ZKuO82iQ0Hd1HHc1M+V2MNfWddYJF5DrM3x8HTVc+ckN2acJKglP3esgNo3 wIKEbHhTdeWpbYjSbKn6P61hCI/hDf4JkrHzjDEKMbQlbiYzZgh5ny6jEFH7dxlsveV6 Q/8Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :arc-authentication-results; bh=+UQh+1+uAKEwlURd+4SGg8c3k5sLMFrImcB+g9gXCO0=; b=SD2Mq4RRdyHNOmzHzlHdlJUZLX3kqafHFP0aTvXLLhJpGyoWB9ENIF+eZpRV3BRdpe 7hzBIN6G1FY25OH1eTqOV6hfPcJ7aDy+UhbAVNcdVd0N5eXY3YHGUXw8otjpPrQ+Jp3O tNds0JrHJBH2lOHcbdx6khuds1Ee25u3Xak3c6tVlQFwggQnng/9Lc82EgaDunk+AOtM uDXJIVxzZxQSWy0/g+e9ZSDg2r1RouoBulPUeP7I68E8lp2jxiKaobPeOCqEF3kUPzdB DvtCh1V7VpBGdWbPLiNw8sIKQqJKy9gwkwBW0SrGhtfhCG++YKwcAESQ7rz7c/i7wBz5 1rcQ== 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 j5si5877135pgc.544.2017.11.03.03.40.51; Fri, 03 Nov 2017 03:40:51 -0700 (PDT) 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 S1755924AbdKCKkt (ORCPT + 26 others); Fri, 3 Nov 2017 06:40:49 -0400 Received: from mout.kundenserver.de ([217.72.192.74]:50920 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752964AbdKCKkr (ORCPT ); Fri, 3 Nov 2017 06:40:47 -0400 Received: from wuerfel.lan ([109.193.157.232]) by mrelayeu.kundenserver.de (mreue104 [212.227.15.145]) with ESMTPA (Nemesis) id 0MQODc-1dgqGP2Kbs-00Thkd; Fri, 03 Nov 2017 11:40:37 +0100 From: Arnd Bergmann To: Steven Rostedt , Ingo Molnar Cc: Arnd Bergmann , Masami Hiramatsu , linux-kernel@vger.kernel.org Subject: [PATCH] tracing: make PREEMPTIRQ_EVENTS depend on TRACING Date: Fri, 3 Nov 2017 11:39:57 +0100 Message-Id: <20171103104031.270375-1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x9Ppq2vxoKVxXfvc6bh2NLlQ== Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org When CONFIG_TRACING is disabled, the new preemptirq events tracer produces a build failure: In file included from kernel/trace/trace_irqsoff.c:17:0: kernel/trace/trace.h: In function 'trace_test_and_set_recursion': kernel/trace/trace.h:542:28: error: 'struct task_struct' has no member named 'trace_recursion' Adding an explicit dependency avoids the broken configuration. Fixes: d59158162e03 ("tracing: Add support for preempt and irq enable/disable events") Signed-off-by: Arnd Bergmann --- No idea if this is the best solution, it just happened to fix the build failure for me. --- kernel/trace/Kconfig | 1 + 1 file changed, 1 insertion(+) -- 2.9.0 diff --git a/kernel/trace/Kconfig b/kernel/trace/Kconfig index 1ff10ca078d6..c8c18c793c86 100644 --- a/kernel/trace/Kconfig +++ b/kernel/trace/Kconfig @@ -164,6 +164,7 @@ config PREEMPTIRQ_EVENTS bool "Enable trace events for preempt and irq disable/enable" select TRACE_IRQFLAGS depends on DEBUG_PREEMPT || !PROVE_LOCKING + depends on TRACING default n help Enable tracing of disable and enable events for preemption and irqs.