Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp7482039pxb; Thu, 18 Feb 2021 11:10:42 -0800 (PST) X-Google-Smtp-Source: ABdhPJyzguD5q9Qd3OR2zdaYx1vawFuPF6FtKxkPehCFY7IhmrFN3nGzbRY8qmuIsrUMeqwZT3vp X-Received: by 2002:a17:906:c08e:: with SMTP id f14mr5692231ejz.388.1613675442630; Thu, 18 Feb 2021 11:10:42 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1613675442; cv=none; d=google.com; s=arc-20160816; b=F1KAq4Q7AaWwNR33Z2O9tdUFJ7M9bdAxRDjvHChMgPQqpAcKXx5qST5P3+z4TF/9vI pVChamdRPhwJ632M8mAZUTq3wlRxmoxAgVDB4YQYA2BAqDRN3BE9XSvd3jFUxraYOz7R Zp39GYRXNdnvjmhmyRMUQujtcZ+16ndtvwLyOF2vSVY8HomlXt5PvIOPwTTt4XjpWBlW AwQ0d9i5T+2trgSQh7Ab6fhvllznXKno523Z0yUCnpOtbBueRbZT5OlSM6q02V86rfJH a/9V37CPUdXy7xnmIGAeFZDu47pKHydp5Fcy+XO/yAkGaULm5OM8/eVid2zNve/JdNSK L7Sg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-disposition:mime-version:message-id :subject:cc:to:from:dkim-signature:dkim-signature:date; bh=nLRBuVVWvc8V3uVW45ibYaABYhWDXpjkZ5kiNjBTKQk=; b=eO9t8RuB8evnA03Pc6mwPVt7gLNTN0D9KxWCdW8l2ZpG4fiw7D4M+HlsGNc7VYIYsB BNE9qhdEYo3lI+lq5HwxS/e2AThnbOfBc/MV0VZsPoWdgJqchp3MT5YnkWx+dkEeIxJA lYZ7UW9XpfNn5X7dqIDWaU0jWlGMhbKZWnMFm8y7DYZetpF6/huUV2oxxE5vWOVsm4Lp pWpjY0A9b7Ouri6UG7w+OoW3NW639g4GelV9EzvWMRCBP7K9jYVAm38341D0vIzmnX3h vj7bwO7/x1ZnmquVtb3TundKlXg9u8LrAdqRa7LvSUBpLcOWDUglYnb1EuAYZOzwKJ2a MxlQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=vE8Bl+8a; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id cm20si3982607edb.371.2021.02.18.11.10.06; Thu, 18 Feb 2021 11:10:42 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=vE8Bl+8a; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233666AbhBRTGl (ORCPT + 99 others); Thu, 18 Feb 2021 14:06:41 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56832 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234356AbhBRRcJ (ORCPT ); Thu, 18 Feb 2021 12:32:09 -0500 Received: from galois.linutronix.de (Galois.linutronix.de [IPv6:2a0a:51c0:0:12e:550::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2ECD3C061574; Thu, 18 Feb 2021 09:31:28 -0800 (PST) Date: Thu, 18 Feb 2021 18:31:24 +0100 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1613669486; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type; bh=nLRBuVVWvc8V3uVW45ibYaABYhWDXpjkZ5kiNjBTKQk=; b=vE8Bl+8aDfr6BdcXD0gj7H/o1sA/w1cOYT0V+8JyW4JtxHErc89pA+Pz0Fk6Wf0PtuEPZF OUbk5JZ6Tnj37TmhRYe8+9ByHXaU9ipZ/aj6qtaNVVRecTQphXzP4a/keZkPzQW2XO5sSs KiFpcT/P/Ag/ZCUWYMYMVgVBdU905FgHIJjhWq18dUwExx0sFUYdWLo0tfTozIU334n+28 t7td9yWBl4tSAT0EGD13Oim8HReFtrayyovUbnsPi2/LT84olfqqwJspTMIFO6cIVtpxB/ hJHmWgoM++Xo9UATugjrVZAkctW3NGxsOruzmk/lWaLP6xULT1oOEMVMM0+JPQ== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1613669486; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type; bh=nLRBuVVWvc8V3uVW45ibYaABYhWDXpjkZ5kiNjBTKQk=; b=r5bBoiddMeojU/BxwZp5Q3JGx4e4u1hPZNUoeV1fuLyrO/Kd20S7+FDo7vfYfc8V9op81O jV+zSj0NPzBS8fDg== From: Sebastian Andrzej Siewior To: linux-kernel@vger.kernel.org, kasan-dev@googlegroups.com Cc: Dmitry Vyukov , Andrey Konovalov , Ingo Molnar , Peter Zijlstra , Juri Lelli , Vincent Guittot , Dietmar Eggemann , Steven Rostedt , Thomas Gleixner , Ben Segall , Mel Gorman , Daniel Bristot de Oliveira , "David S. Miller" , Jakub Kicinski , Johannes Berg , netdev@vger.kernel.org Subject: [PATCH] kcov: Remove kcov include from sched.h and move it to its users. Message-ID: <20210218173124.iy5iyqv3a4oia4vv@linutronix.de> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The recent addition of in_serving_softirq() to kconv.h results in compile failure on PREEMPT_RT because it requires task_struct::softirq_disable_cnt. This is not available if kconv.h is included from sched.h. It is not needed to include kconv.h from sched.h. All but the net/ user already include the kconv header file. Move the include of the kconv.h header from sched.h it its users. Additionally include sched.h from kconv.h to ensure that everything task_struct related is available. Signed-off-by: Sebastian Andrzej Siewior --- include/linux/kcov.h | 1 + include/linux/sched.h | 1 - net/core/skbuff.c | 1 + net/mac80211/iface.c | 1 + net/mac80211/rx.c | 1 + 5 files changed, 4 insertions(+), 1 deletion(-) diff --git a/include/linux/kcov.h b/include/linux/kcov.h index 4e3037dc12048..55dc338f6bcdd 100644 --- a/include/linux/kcov.h +++ b/include/linux/kcov.h @@ -2,6 +2,7 @@ #ifndef _LINUX_KCOV_H #define _LINUX_KCOV_H +#include #include struct task_struct; diff --git a/include/linux/sched.h b/include/linux/sched.h index 7337630326751..183e9d90841cb 100644 --- a/include/linux/sched.h +++ b/include/linux/sched.h @@ -14,7 +14,6 @@ #include #include #include -#include #include #include #include diff --git a/net/core/skbuff.c b/net/core/skbuff.c index 785daff48030d..e64d0a2e21c31 100644 --- a/net/core/skbuff.c +++ b/net/core/skbuff.c @@ -60,6 +60,7 @@ #include #include #include +#include #include #include diff --git a/net/mac80211/iface.c b/net/mac80211/iface.c index b31417f40bd56..39943c33abbfa 100644 --- a/net/mac80211/iface.c +++ b/net/mac80211/iface.c @@ -15,6 +15,7 @@ #include #include #include +#include #include #include #include "ieee80211_i.h" diff --git a/net/mac80211/rx.c b/net/mac80211/rx.c index 972895e9f22dc..3527b17f235a8 100644 --- a/net/mac80211/rx.c +++ b/net/mac80211/rx.c @@ -17,6 +17,7 @@ #include #include #include +#include #include #include #include -- 2.30.0