Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1576891
| Path | csiph.com!aioe.org!bofh.it!news.nic.it!robomod |
|---|---|
| From | Ingo Molnar <mingo@kernel.org> |
| Newsgroups | linux.kernel |
| Subject | [PATCH 25/35] sched/headers: Remove <linux/rwsem.h> from <linux/sched.h> |
| Date | Wed, 08 Feb 2017 20:10:02 +0100 |
| Message-ID | <t8FMS-4eP-1@gated-at.bofh.it> (permalink) |
| References | <t8FMS-4eP-3@gated-at.bofh.it> |
| Dkim-Signature | v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:cc:subject:date:message-id:in-reply-to:references; bh=raDI1o2umdfUDr5kIfKfkeJyGNduCd1I90EissFwNHI=; b=NTEGOfV64ODN0bbADfY1Q2HTU/KnmLc5ic9zIgj8At7gMgs1F/39R7rLlGj769/H7I Tl11R7SXN1YsoXu8SVsUrcXXHgBDgCGhcZCrofKipNdbtxHFfblHr/p1MY/oYVIkE5vo nnuUDSrvtTwL/ESVqC4F7ouZhCh/xqHJhjaWKPukQOoNxesyCnmA7CgTSDNFwlfm/BJp o9c0z/cyKiqnRhrq4iSVzFf70rVTl083UfdxVc7waRVHQhbLysqBvoBOpAhZhBBjGeYR xK9A/UBuwaqLUFYr6mpAeNNZRolftnFVSX2grlllY2Qnoq8D0k3cgcvzQQU3KLb35phg +nzw== |
| X-Google-Dkim-Signature | v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id :in-reply-to:references; bh=raDI1o2umdfUDr5kIfKfkeJyGNduCd1I90EissFwNHI=; b=gBJfa49jM/61W/rZ8lqMjlcPgjgc9qwPz18MQEXGgdHG8SWzMtIBfxTULt1NxnfsTz UpyEUAx+aorDFjQ/KcBsrJmfHwVcvGvI+B4eg5Ah8jo+83dwCfy0PavCDdnPRvOvM00B rUoP+i2m5dSumuDZNhLcoOkcSaamfvtEAok/3Y1RAi22W2eB+PelpuTGCM1BT7KwSi29 eMi1R468fawPBXiF7oyK9vzQ0BHyDN/LV8QCqhbIe1gmTJJ6wi95sRYh8tmsnYBEblr3 Mi5wQl9/BOPmXzjMT4OiGvdfStSDCROl6Kqhi7gPK2uCY/NoNMBmkuYxmR2yG9N8Rtmp ZPaA== |
| X-Gm-Message-State | AIkVDXIas8lvh9/RC1/JJpbK4Sd/ErUXM0B8SK616N06IkoXSXUpEAueFoZkUzQvqPIxRw== |
| X-Received | by 10.223.150.84 with SMTP id c20mr20400617wra.178.1486579939264; Wed, 08 Feb 2017 10:52:19 -0800 (PST) |
| X-Mailer | git-send-email 2.7.4 |
| Sender | robomod@news.nic.it |
| List-ID | <linux-kernel.vger.kernel.org> |
| X-Mailing-List | linux-kernel@vger.kernel.org |
| Approved | robomod@news.nic.it |
| Lines | 57 |
| Organization | linux.* mail to news gateway |
| X-Original-Cc | Andrew Morton <akpm@linux-foundation.org>, Linus Torvalds <torvalds@linux-foundation.org>, Mike Galbraith <efault@gmx.de>, Oleg Nesterov <oleg@redhat.com>, Peter Zijlstra <peterz@infradead.org>, Thomas Gleixner <tglx@linutronix.de> |
| X-Original-Date | Wed, 8 Feb 2017 19:51:17 +0100 |
| X-Original-Message-ID | <1486579887-18499-26-git-send-email-mingo@kernel.org> |
| X-Original-References | <1486579887-18499-1-git-send-email-mingo@kernel.org> |
| X-Original-Sender | linux-kernel-owner@vger.kernel.org |
| Xref | csiph.com linux.kernel:1576891 |
Show key headers only | View raw
This is a stray header that is not needed by anything in sched.h,
so remove it.
Update files that relied on the stray inclusion.
This reduces the size of the header dependency graph.
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Mike Galbraith <efault@gmx.de>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: Ingo Molnar <mingo@kernel.org>
---
include/linux/sched.h | 2 --
include/linux/user_namespace.h | 1 +
kernel/utsname_sysctl.c | 1 +
3 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/include/linux/sched.h b/include/linux/sched.h
index fa722c4c18a3..da3847ac3956 100644
--- a/include/linux/sched.h
+++ b/include/linux/sched.h
@@ -226,8 +226,6 @@ struct task_cputime {
#define prof_exp stime
#define sched_exp sum_exec_runtime
-#include <linux/rwsem.h>
-
#ifdef CONFIG_SCHED_INFO
struct sched_info {
/* cumulative counters */
diff --git a/include/linux/user_namespace.h b/include/linux/user_namespace.h
index 746ee376e603..b3613ee889d9 100644
--- a/include/linux/user_namespace.h
+++ b/include/linux/user_namespace.h
@@ -5,6 +5,7 @@
#include <linux/nsproxy.h>
#include <linux/ns_common.h>
#include <linux/sched.h>
+#include <linux/rwsem.h>
#include <linux/sysctl.h>
#include <linux/err.h>
diff --git a/kernel/utsname_sysctl.c b/kernel/utsname_sysctl.c
index c8eac43267e9..233cd8fc6910 100644
--- a/kernel/utsname_sysctl.c
+++ b/kernel/utsname_sysctl.c
@@ -14,6 +14,7 @@
#include <linux/utsname.h>
#include <linux/sysctl.h>
#include <linux/wait.h>
+#include <linux/rwsem.h>
#ifdef CONFIG_PROC_SYSCTL
--
2.7.4
Back to linux.kernel | Previous | Next | Find similar | Unroll thread
[PATCH 25/35] sched/headers: Remove <linux/rwsem.h> from <linux/sched.h> Ingo Molnar <mingo@kernel.org> - 2017-02-08 20:10 +0100
csiph-web