Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

arch: Add SYSVIPC_COMPAT for all architectures

The existing per-arch definitions are pretty much historic cruft.
Move SYSVIPC_COMPAT into init/Kconfig.

Signed-off-by: Guo Ren <guoren@linux.alibaba.com>
Signed-off-by: Guo Ren <guoren@kernel.org>
Acked-by: Arnd Bergmann <arnd@arndb.de>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Tested-by: Heiko Stuebner <heiko@sntech.de>
Acked-by: Helge Deller <deller@gmx.de> # parisc
Link: https://lore.kernel.org/r/20220405071314.3225832-5-guoren@kernel.org
Signed-off-by: Palmer Dabbelt <palmer@rivosinc.com>

authored by

Guo Ren and committed by
Palmer Dabbelt
0cbed0ee 3ce0f237

+4 -30
-4
arch/arm64/Kconfig
··· 2122 2122 2123 2123 endmenu 2124 2124 2125 - config SYSVIPC_COMPAT 2126 - def_bool y 2127 - depends on COMPAT && SYSVIPC 2128 - 2129 2125 menu "Power management options" 2130 2126 2131 2127 source "kernel/power/Kconfig"
-5
arch/mips/Kconfig
··· 3198 3198 config COMPAT 3199 3199 bool 3200 3200 3201 - config SYSVIPC_COMPAT 3202 - bool 3203 - 3204 3201 config MIPS32_O32 3205 3202 bool "Kernel support for o32 binaries" 3206 3203 depends on 64BIT 3207 3204 select ARCH_WANT_OLD_COMPAT_IPC 3208 3205 select COMPAT 3209 3206 select MIPS32_COMPAT 3210 - select SYSVIPC_COMPAT if SYSVIPC 3211 3207 help 3212 3208 Select this option if you want to run o32 binaries. These are pure 3213 3209 32-bit binaries as used by the 32-bit Linux/MIPS port. Most of ··· 3217 3221 select ARCH_WANT_COMPAT_IPC_PARSE_VERSION 3218 3222 select COMPAT 3219 3223 select MIPS32_COMPAT 3220 - select SYSVIPC_COMPAT if SYSVIPC 3221 3224 help 3222 3225 Select this option if you want to run n32 binaries. These are 3223 3226 64-bit binaries using 32-bit quantities for addressing and certain
-4
arch/parisc/Kconfig
··· 331 331 def_bool y 332 332 depends on 64BIT 333 333 334 - config SYSVIPC_COMPAT 335 - def_bool y 336 - depends on COMPAT && SYSVIPC 337 - 338 334 config AUDIT_ARCH 339 335 def_bool y 340 336
-5
arch/powerpc/Kconfig
··· 298 298 select ARCH_WANT_OLD_COMPAT_IPC 299 299 select COMPAT_OLD_SIGACTION 300 300 301 - config SYSVIPC_COMPAT 302 - bool 303 - depends on COMPAT && SYSVIPC 304 - default y 305 - 306 301 config SCHED_OMIT_FRAME_POINTER 307 302 bool 308 303 default y
-3
arch/s390/Kconfig
··· 399 399 (and some other stuff like libraries and such) is needed for 400 400 executing 31 bit applications. It is safe to say "Y". 401 401 402 - config SYSVIPC_COMPAT 403 - def_bool y if COMPAT && SYSVIPC 404 - 405 402 config SMP 406 403 def_bool y 407 404
-5
arch/sparc/Kconfig
··· 488 488 select ARCH_WANT_OLD_COMPAT_IPC 489 489 select COMPAT_OLD_SIGACTION 490 490 491 - config SYSVIPC_COMPAT 492 - bool 493 - depends on COMPAT && SYSVIPC 494 - default y 495 - 496 491 source "drivers/sbus/char/Kconfig"
-4
arch/x86/Kconfig
··· 2872 2872 if COMPAT 2873 2873 config COMPAT_FOR_U64_ALIGNMENT 2874 2874 def_bool y 2875 - 2876 - config SYSVIPC_COMPAT 2877 - def_bool y 2878 - depends on SYSVIPC 2879 2875 endif 2880 2876 2881 2877 endmenu
+4
init/Kconfig
··· 390 390 depends on SYSCTL 391 391 default y 392 392 393 + config SYSVIPC_COMPAT 394 + def_bool y 395 + depends on COMPAT && SYSVIPC 396 + 393 397 config POSIX_MQUEUE 394 398 bool "POSIX Message Queues" 395 399 depends on NET