linux_dsm_epyc7002/net/smc
Ingo Molnar c3edc4010e sched/headers: Move task_struct::signal and task_struct::sighand types and accessors into <linux/sched/signal.h>
task_struct::signal and task_struct::sighand are pointers, which would normally make it
straightforward to not define those types in sched.h.

That is not so, because the types are accompanied by a myriad of APIs (macros and inline
functions) that dereference them.

Split the types and the APIs out of sched.h and move them into a new header, <linux/sched/signal.h>.

With this change sched.h does not know about 'struct signal' and 'struct sighand' anymore,
trying to put accessors into sched.h as a test fails the following way:

  ./include/linux/sched.h: In function ‘test_signal_types’:
  ./include/linux/sched.h:2461:18: error: dereferencing pointer to incomplete type ‘struct signal_struct’
                    ^

This reduces the size and complexity of sched.h significantly.

Update all headers and .c code that relied on getting the signal handling
functionality from <linux/sched.h> to include <linux/sched/signal.h>.

The list of affected files in the preparatory patch was partly generated by
grepping for the APIs, and partly by doing coverage build testing, both
all[yes|mod|def|no]config builds on 64-bit and 32-bit x86, and an array of
cross-architecture builds.

Nevertheless some (trivial) build breakage is still expected related to rare
Kconfig combinations and in-flight patches to various kernel code, but most
of it should be handled by this patch.

Acked-by: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Mike Galbraith <efault@gmx.de>
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>
2017-03-03 01:43:37 +01:00
..
af_smc.c sched/headers: Move task_struct::signal and task_struct::sighand types and accessors into <linux/sched/signal.h> 2017-03-03 01:43:37 +01:00
Kconfig smc: netlink interface for SMC sockets 2017-01-09 16:07:41 -05:00
Makefile smc: netlink interface for SMC sockets 2017-01-09 16:07:41 -05:00
smc_cdc.c smc: socket closing and linkgroup cleanup 2017-01-09 16:07:40 -05:00
smc_cdc.h smc: socket closing and linkgroup cleanup 2017-01-09 16:07:40 -05:00
smc_clc.c sched/headers: Move task_struct::signal and task_struct::sighand types and accessors into <linux/sched/signal.h> 2017-03-03 01:43:37 +01:00
smc_clc.h smc: link layer control (LLC) 2017-01-09 16:07:40 -05:00
smc_close.c sched/headers: Move task_struct::signal and task_struct::sighand types and accessors into <linux/sched/signal.h> 2017-03-03 01:43:37 +01:00
smc_close.h smc: socket closing and linkgroup cleanup 2017-01-09 16:07:40 -05:00
smc_core.c smc: some potential use after free bugs 2017-01-30 16:37:55 -05:00
smc_core.h smc: link layer control (LLC) 2017-01-09 16:07:40 -05:00
smc_diag.c smc: netlink interface for SMC sockets 2017-01-09 16:07:41 -05:00
smc_ib.c smc: initialize IB transport incl. PD, MR, QP, CQ, event, WR 2017-01-09 16:07:39 -05:00
smc_ib.h smc: ETH_ALEN as memcpy length for mac addresses 2017-01-12 09:47:01 -05:00
smc_llc.c smc: link layer control (LLC) 2017-01-09 16:07:40 -05:00
smc_llc.h smc: link layer control (LLC) 2017-01-09 16:07:40 -05:00
smc_pnet.c smc: establish pnet table management 2017-01-09 16:07:38 -05:00
smc_pnet.h smc: establish pnet table management 2017-01-09 16:07:38 -05:00
smc_rx.c sched/headers: Move task_struct::signal and task_struct::sighand types and accessors into <linux/sched/signal.h> 2017-03-03 01:43:37 +01:00
smc_rx.h smc: receive data from RMBE 2017-01-09 16:07:40 -05:00
smc_tx.c sched/headers: Move task_struct::signal and task_struct::sighand types and accessors into <linux/sched/signal.h> 2017-03-03 01:43:37 +01:00
smc_tx.h smc: receive data from RMBE 2017-01-09 16:07:40 -05:00
smc_wr.c smc: socket closing and linkgroup cleanup 2017-01-09 16:07:40 -05:00
smc_wr.h smc: socket closing and linkgroup cleanup 2017-01-09 16:07:40 -05:00
smc.h smc: netlink interface for SMC sockets 2017-01-09 16:07:41 -05:00