aboutsummaryrefslogtreecommitdiff
path: root/kernel
diff options
context:
space:
mode:
authorIngo Molnar <mingo@kernel.org>2017-03-08 09:42:52 +0100
committerIngo Molnar <mingo@kernel.org>2017-03-08 10:38:07 +0100
commit65eb2b3976f1b78563a8be7120c7fe3de27a1258 (patch)
treef787f5412d89ab30a1660e637b0033b0baa4ee38 /kernel
parentfc69910f329d61821897871e0e957eda39beb3d8 (diff)
sched/wait: Add <linux/sched/signal.h> dependency for now
The wait_event_interruptible*() APIs are using signal_pending(), so include its header to not build-break users of those APIs. Note that this is overkill as most wait_event*() users don't care about signals - but solving that problem turned out to be more complex. Note two dependency quirks: - the <linux/sched/signal.h> include line needs to be last in wait.h, because that header itself depends on wait-queue types. - we shouldn't include cred.h from sched/signal.h, because cred.h is a complex header that will create a circular dependency if we do so. Instead we include wait.h to gain the waitqueue types, plus we predeclare 'struct cred' for a function prototype. Note that the cred.h change has some knock-on effects. Reported-by: Linus Torvalds <torvalds@linux-foundation.org> Cc: Peter Zijlstra <peterz@infradead.org> Cc: Thomas Gleixner <tglx@linutronix.de> Cc: linux-kernel@vger.kernel.org Signed-off-by: Ingo Molnar <mingo@kernel.org>
Diffstat (limited to 'kernel')
-rw-r--r--kernel/tsacct.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/kernel/tsacct.c b/kernel/tsacct.c
index 370724b45391..63834bd86639 100644
--- a/kernel/tsacct.c
+++ b/kernel/tsacct.c
@@ -23,6 +23,7 @@
#include <linux/tsacct_kern.h>
#include <linux/acct.h>
#include <linux/jiffies.h>
+#include <linux/cred.h>
#include <linux/mm.h>
/*