Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp7496360pxb; Thu, 18 Feb 2021 11:34:54 -0800 (PST) X-Google-Smtp-Source: ABdhPJyRK5Z9MbXsQ48rznhp27dfVGqzgqY0HuL+HkGZLi+XPyQcV12flcK9yMpeUrnVt2itp3tn X-Received: by 2002:aa7:cf92:: with SMTP id z18mr5732235edx.244.1613676894424; Thu, 18 Feb 2021 11:34:54 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1613676894; cv=none; d=google.com; s=arc-20160816; b=zS/NA9XdGSBYy5lwUos3FXif/jdAZP2fze6xEHuYTLiDUVU5ztK/dx5YkYphL4+G4c 9R2BMfBkgasIIlcLchqts910Zj8Et4zSlXQ+5I8N5zaBb2AVdfNfQuvehfFDC1PRrfC5 70uhrXviWLJt0QKxIcX3Qj9ZCwJr3Vn+7Uyby+1iQ6fvItH4/mBK/f+Ulsohrm3tGaZB kYtKDxln2cq30qLasrKChkBY+LgXCJwS0zMOzNWZLvaOt7miTONqC3L9wuk8zQXaHYgT FizVz79zONUr3SZ+7RkBxAO70Ftz2Oi2imC8/5TDud316izmjd7bmN+1Gg43cmWF+H1Y NQoA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=7G3JVW2KBRmJBfDlGzhqslH0TpNnVSsRPoclsWcVzgU=; b=UnZS2orcn9KixR/kGA2qczSy3STXAeC8Vhhm6EeoQyCjcAFZ6PRtUev/r9IrTsvfLx qy1qE5CmSQIkULRsZXXZPTgjS0r2hQtX+Fk52+26HmFAFScM4L1T8B8Uc0lbfwFiSPWY OpKtnqlqQok24sjWl5OYLJ83zEY4kPawXU5epiDIubT0YR/2JP/kb0gk2U0jFm5Kvpz7 B4Ltzprg2qm/mSYRrIQTFevQsEbPxG657EmQeGXbFCHYqbA5M/mb/5eRbnAOfP9uVF/J sIY0STN680rX2E9WyZoEZAqr0WWIAabTLhlIjuDUAara1MefJz4D5HABK5Hg6Qx23Vsi BcCg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=nH4c5dgF; 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=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id q17si4288409ejy.390.2021.02.18.11.34.30; Thu, 18 Feb 2021 11:34:54 -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=@google.com header.s=20161025 header.b=nH4c5dgF; 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=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232523AbhBRTdb (ORCPT + 99 others); Thu, 18 Feb 2021 14:33:31 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46194 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233567AbhBRSxS (ORCPT ); Thu, 18 Feb 2021 13:53:18 -0500 Received: from mail-pj1-x1033.google.com (mail-pj1-x1033.google.com [IPv6:2607:f8b0:4864:20::1033]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 22002C061788 for ; Thu, 18 Feb 2021 10:52:38 -0800 (PST) Received: by mail-pj1-x1033.google.com with SMTP id t2so2084980pjq.2 for ; Thu, 18 Feb 2021 10:52:38 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=7G3JVW2KBRmJBfDlGzhqslH0TpNnVSsRPoclsWcVzgU=; b=nH4c5dgFbUZmDtgfk+VV1PCxveHS/Cq4rmiOFy2ks+yFW3f773CI/SqukOQzVv2U68 kLPB2WFYxM4HtXwie9S8onJLm1N6gmKbodxFDR6n02UzYHl6nKq+zBIXan1D1UhbuDyn Y0h3ZcN56AyPZT1Vy6FWaHdkL3MrTtrypHIgsBBWXbvjjbndDfhD9vNSfR5DuxVmEzI9 PnhKm7nVnV7obC1McKnlkablLJV5EKcMWY1/aD/zbo4xhPClgqZLsqTWRttPQdIj4qwy Mz2NTPdV9m6V/6NjyIzKT1vpfFC1Yc0WO0QRlf/z46LAO1Yv0k8JRvdZTZ9Gtd/9+F6a eupw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=7G3JVW2KBRmJBfDlGzhqslH0TpNnVSsRPoclsWcVzgU=; b=NmNg5LJm+y6O9DQYLFcDmf6coavUXWhENJXe3WydQtjveyY7cnjoAY0utrFfskvKBE Z5wVJ37kXFMwftDD/gMNji/i16eukb1InZ2Am7oYyEPEBRgCZanWBLt7Ih6PiCMFb7GB jL+i4P2aquI5A4M4qzumtdJRS22bEqgvbHb8CgY+MKbQHzDvq3YiOE3XZkq7zuagMBNj T1v5Cg7oj3CP1pMt30eFu7GgCsfp7w9D4jQ/eoefHDQLC+qUMdXPn/us0DBv1dxNuOYK xN11FldzU0V88TtuHGYSkwQuABnJx3u64AqKHOSbuqKfAZl/uXr39MbahHUZgMxX9Ks2 ubCA== X-Gm-Message-State: AOAM532e/ZUlNRYyerJImUs5mLBTzpY7LLdNjXXiiLt/c4rJC+AfLiPc Mj8iQdMpL5pvSqd93dEG+/nST47/ben1FCwg8dOoXA== X-Received: by 2002:a17:90b:3756:: with SMTP id ne22mr5109449pjb.41.1613674357497; Thu, 18 Feb 2021 10:52:37 -0800 (PST) MIME-Version: 1.0 References: <20210218173124.iy5iyqv3a4oia4vv@linutronix.de> In-Reply-To: <20210218173124.iy5iyqv3a4oia4vv@linutronix.de> From: Andrey Konovalov Date: Thu, 18 Feb 2021 19:52:26 +0100 Message-ID: Subject: Re: [PATCH] kcov: Remove kcov include from sched.h and move it to its users. To: Sebastian Andrzej Siewior Cc: LKML , kasan-dev , 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 Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Feb 18, 2021 at 6:31 PM Sebastian Andrzej Siewior wrote: > > 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 Acked-by: Andrey Konovalov