[RFC PATCH] sched/wait: Add <linux/sched/signal.h> dependency for now
From: Ingo Molnar
Date: Wed Mar 08 2017 - 04:26:16 EST
* Ingo Molnar <mingo@xxxxxxxxxx> wrote:
> In any case, it's clear that this stuff is in no way v4.11 material, so as a
> bridging fix I propose we add a sched/signal.h include to wait.h (or just move
> signal_pending() temporarily), until it's all resolved for real for v4.12.
I.e. I propose the patch below as the v4.11 solution.
The two dependency quirks are not very elegant, plus to add insult to injury we
now revert to the original situation in v4.10 where wait.h includes sched/signal.h
and sched/signal.h includes wait.h (which the header guards sort out properly),
but it appears to build fine here in (still very light, x86-defconfig) build
Note that there's some dependency fallout from the cred.h change, but it's all
correctly adding a dependency for types/APIs that are defined in cred.h - i.e.
it's improving things in that regard. (Could split this patch into two patches:
first the cred.h change, then the signal types hack.)
I'll do more testing over the day to see how well this approach works. Not yet
signed off by me. I'll post updated versions over the day if there's any changes.
This removes the time pressure to untangle the wait.h mess for v4.11.