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 <[email protected] >
Cc: Mike Galbraith <[email protected] >
Cc: Peter Zijlstra <[email protected] >
Cc: Thomas Gleixner <[email protected] >
Cc: [email protected]
Signed-off-by: Ingo Molnar <[email protected] >
2017-03-03 01:43:37 +01:00
..
boot
Merge branch 'for-linus' of git://git.armlinux.org.uk/~rmk/linux-arm
2017-02-28 11:50:53 -08:00
common
sched/headers: Prepare to move signal wakeup & sigpending methods from <linux/sched.h> into <linux/sched/signal.h>
2017-03-02 08:42:32 +01:00
configs
ARM: SoC defconfig updates for v4.11
2017-02-23 15:39:32 -08:00
crypto
crypto: arm/aes - don't use IV buffer to return final keystream block
2017-02-03 18:16:21 +08:00
firmware
include
sched/headers: Prepare to remove the <linux/mm_types.h> dependency from <linux/sched.h>
2017-03-02 08:42:37 +01:00
kernel
sched/headers: Move task->mm handling methods to <linux/sched/mm.h>
2017-03-03 01:43:28 +01:00
kvm
KVM: race-free exit from KVM_RUN without POSIX signals
2017-02-17 12:27:37 +01:00
lib
ARM: 8658/1: uaccess: fix zeroing of 64-bit get_user()
2017-02-16 15:58:32 +00:00
mach-alpine
ARM: 8641/1: treewide: Replace uses of virt_to_phys with __pa_symbol
2017-02-28 11:06:10 +00:00
mach-artpec
mach-asm9260
mach-aspeed
mach-at91
mach-axxia
ARM: 8641/1: treewide: Replace uses of virt_to_phys with __pa_symbol
2017-02-28 11:06:10 +00:00
mach-bcm
sched/headers: Prepare for new header dependencies before moving code to <linux/sched/clock.h>
2017-03-02 08:42:27 +01:00
mach-berlin
ARM: 8646/1: mmu: decouple VECTORS_BASE from Kconfig
2017-02-28 11:06:12 +00:00
mach-clps711x
mach-cns3xxx
mach-davinci
ARM: SoC platform updates
2017-02-23 15:33:54 -08:00
mach-digicolor
mach-dove
mach-ebsa110
mach-efm32
mach-ep93xx
RTC for 4.11
2017-02-27 19:59:21 -08:00
mach-exynos
Merge branch 'for-linus' of git://git.armlinux.org.uk/~rmk/linux-arm
2017-02-28 11:50:53 -08:00
mach-footbridge
mach-gemini
mach-highbank
mach-hisi
Merge branch 'for-linus' of git://git.armlinux.org.uk/~rmk/linux-arm
2017-02-28 11:50:53 -08:00
mach-imx
Merge branch 'for-linus' of git://git.armlinux.org.uk/~rmk/linux-arm
2017-02-28 11:50:53 -08:00
mach-integrator
mach-iop13xx
mach-iop32x
mach-iop33x
mach-ixp4xx
mach-keystone
mach-ks8695
mach-lpc18xx
mach-lpc32xx
mach-mediatek
ARM: 8641/1: treewide: Replace uses of virt_to_phys with __pa_symbol
2017-02-28 11:06:10 +00:00
mach-meson
mach-mmp
mach-moxart
mach-mv78xx0
mach-mvebu
Merge branch 'for-linus' of git://git.armlinux.org.uk/~rmk/linux-arm
2017-02-28 11:50:53 -08:00
mach-mxs
mach-netx
mach-nomadik
mach-nspire
mach-omap1
ARM: SoC platform updates
2017-02-23 15:33:54 -08:00
mach-omap2
sched/headers: Prepare for new header dependencies before moving code to <linux/sched/clock.h>
2017-03-02 08:42:27 +01:00
mach-orion5x
RTC for 4.11
2017-02-27 19:59:21 -08:00
mach-oxnas
mach-picoxcell
mach-prima2
ARM: 8641/1: treewide: Replace uses of virt_to_phys with __pa_symbol
2017-02-28 11:06:10 +00:00
mach-pxa
Merge branch 'for-linus' of git://git.armlinux.org.uk/~rmk/linux-arm
2017-02-28 11:50:53 -08:00
mach-qcom
mach-realview
ARM: 8641/1: treewide: Replace uses of virt_to_phys with __pa_symbol
2017-02-28 11:06:10 +00:00
mach-rockchip
Merge branch 'for-linus' of git://git.armlinux.org.uk/~rmk/linux-arm
2017-02-28 11:50:53 -08:00
mach-rpc
sched/headers: Prepare for new header dependencies before moving code to <linux/sched/mm.h>
2017-03-02 08:42:28 +01:00
mach-s3c24xx
Merge branch 'for-linus' of git://git.armlinux.org.uk/~rmk/linux-arm
2017-02-28 11:50:53 -08:00
mach-s3c64xx
Merge branch 'for-linus' of git://git.armlinux.org.uk/~rmk/linux-arm
2017-02-28 11:50:53 -08:00
mach-s5pv210
Merge branch 'for-linus' of git://git.armlinux.org.uk/~rmk/linux-arm
2017-02-28 11:50:53 -08:00
mach-sa1100
ARM: 8641/1: treewide: Replace uses of virt_to_phys with __pa_symbol
2017-02-28 11:06:10 +00:00
mach-shmobile
Merge branch 'for-linus' of git://git.armlinux.org.uk/~rmk/linux-arm
2017-02-28 11:50:53 -08:00
mach-socfpga
ARM: 8641/1: treewide: Replace uses of virt_to_phys with __pa_symbol
2017-02-28 11:06:10 +00:00
mach-spear
ARM: 8641/1: treewide: Replace uses of virt_to_phys with __pa_symbol
2017-02-28 11:06:10 +00:00
mach-sti
ARM: 8641/1: treewide: Replace uses of virt_to_phys with __pa_symbol
2017-02-28 11:06:10 +00:00
mach-stm32
mach-sunxi
Merge branch 'for-linus' of git://git.armlinux.org.uk/~rmk/linux-arm
2017-02-28 11:50:53 -08:00
mach-tango
ARM: 8641/1: treewide: Replace uses of virt_to_phys with __pa_symbol
2017-02-28 11:06:10 +00:00
mach-tegra
Merge branch 'for-linus' of git://git.armlinux.org.uk/~rmk/linux-arm
2017-02-28 11:50:53 -08:00
mach-u300
mach-uniphier
mach-ux500
Merge branch 'for-linus' of git://git.armlinux.org.uk/~rmk/linux-arm
2017-02-28 11:50:53 -08:00
mach-versatile
mach-vexpress
ARM: 8641/1: treewide: Replace uses of virt_to_phys with __pa_symbol
2017-02-28 11:06:10 +00:00
mach-vt8500
mach-w90x900
mach-zx
ARM: 8641/1: treewide: Replace uses of virt_to_phys with __pa_symbol
2017-02-28 11:06:10 +00:00
mach-zynq
ARM: 8641/1: treewide: Replace uses of virt_to_phys with __pa_symbol
2017-02-28 11:06:10 +00:00
mm
sched/headers: Prepare to remove the <linux/mm_types.h> dependency from <linux/sched.h>
2017-03-02 08:42:37 +01:00
net
nwfpe
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
oprofile
plat-iop
plat-omap
plat-orion
ARM: orion: Register DSA switch as a MDIO device
2017-02-07 10:51:47 -05:00
plat-pxa
plat-samsung
plat-versatile
probes
sched/headers: Prepare for new header dependencies before moving code to <linux/sched/debug.h>
2017-03-02 08:42:34 +01:00
tools
vdso
vfp
sched/headers: Prepare for new header dependencies before moving code to <linux/sched/signal.h>
2017-03-02 08:42:29 +01:00
xen
This is a tree wide change and has been kept separate for that reason.
2017-02-25 13:45:43 -08:00
Kconfig
Merge branch 'for-linus' of git://git.armlinux.org.uk/~rmk/linux-arm
2017-02-28 11:50:53 -08:00
Kconfig-nommu
Kconfig.debug
arch: Move CONFIG_DEBUG_RODATA and CONFIG_SET_MODULE_RONX to be common
2017-02-07 12:32:52 -08:00
Makefile