Received: by 2002:a05:6a10:9afc:0:0:0:0 with SMTP id t28csp2260089pxm; Sun, 27 Feb 2022 16:19:10 -0800 (PST) X-Google-Smtp-Source: ABdhPJznHS+nUB0CRWcQdKU5A2Nd3YA3asr2er3C33aXgYhEYICEkko2atobFkFDTpVB9hgJ/dAC X-Received: by 2002:a05:6402:375:b0:404:c2be:3b8c with SMTP id s21-20020a056402037500b00404c2be3b8cmr16606903edw.247.1646007549901; Sun, 27 Feb 2022 16:19:09 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1646007549; cv=none; d=google.com; s=arc-20160816; b=GLKcY2ikcbc/++4VgXevNkDwcU70l3goJDqFACGc7cP9XK0fiiLYuVQR2snfddPeYn sYtD4fYac+Vug55EmvM52Z/N6j4s9bcekThsb1yB2n7QdvCoKTvxFhqSAKpCz5qu1RX2 DuUDSjYTQ62Slvmkpt3bAGwTGakw+48H8cXpIrKFQ6jCzk+ISuUbVxqJL+fYWHFISlEx dBSbuXLjlk5SN22fky4/mevlUwho+ZI/bE2HixxZiSGaMnXqEiTiU9y0Btpbe+60Vmom lhQa25aCH3JMOqEdXOlOdbo1c8W4jWKXtatLSYrnr0OV2h1mCQmipn/Gnwree+TMmqdD WqgQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=uOhquRzTu4orS3EP1LuNl795zRLXfwXF4m23JosfPgM=; b=znmhKkwMM5oh10r0IjEN/z3UhaWG5vcpE5apaA4WBgN2DCfHjCiADK3xtwk/9u5QdH LCZ+Ot79QNUffGxWTF9v7rFeiKSoXFYk0zVdaT0KJirbgitwJ8DgypJlCop7lQvgfGFo jgf9AUHUfr9tBx07KsWs5mh7D58PRXEympZ+W44a2LXNHSITdf2zTvr2rpQv4xxapBxN tnYUiJcLodL7hkpUPwt6RtI+bjfp1+J6A0ehzmqns0ukwwmgrjm4VdEVyppJiPlRpBI3 rIfCp6vB+YaU37ywdvTTBfbOc/J3nX0wXAzOXd2IaojVYLX/sNfoMEBX2DeGSOBaobzg vD3w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=MkDRhYJe; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id g6-20020a50bf46000000b00410a39f661esi5826934edk.495.2022.02.27.16.18.48; Sun, 27 Feb 2022 16:19:09 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=MkDRhYJe; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231674AbiB0QaH (ORCPT + 99 others); Sun, 27 Feb 2022 11:30:07 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54426 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231666AbiB0QaC (ORCPT ); Sun, 27 Feb 2022 11:30:02 -0500 Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 865ED6D1A7; Sun, 27 Feb 2022 08:29:23 -0800 (PST) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id 1D9C2B80CD5; Sun, 27 Feb 2022 16:29:22 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id CD19EC340F2; Sun, 27 Feb 2022 16:29:15 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1645979360; bh=W7iu4530nabTWQXD2mTmuctIqIwVpgCzFglD2gmX8bk=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=MkDRhYJe/BGF1tIjaZP4YuDXV0vy5XnF3iD0vf7ZSz92qkGjROS2kQ+3VZzlBX9EK Pkcoq+wjuZnC2RLEjSKHq7GoA6Ep22b41BZZZixhbzDjWbjSEdDSgWSQeehIpwmoYp ehB+npqU5uF2ZO/2Iu7U7q1+0WMXJQwlhUHM9q8L+Wp/mQXUVP9latz05ZFB3DlE/o AVEMVExN1c3DA+EPKk/sNHhL3baCTa3OX/IL/v4yJIh2ij7SLYHfxyukRsGiC4CNCP ZSq4xhuuy/nV+CvU/bqD3NjE+2Qn4JqUGxwuisgr5loE+CGcswrnemdwg4Da9pasNX yVzCQIEvsGM4A== From: guoren@kernel.org To: guoren@kernel.org, palmer@dabbelt.com, arnd@arndb.de, anup@brainfault.org, gregkh@linuxfoundation.org, liush@allwinnertech.com, wefu@redhat.com, drew@beagleboard.org, wangjunqiang@iscas.ac.cn, hch@lst.de Cc: linux-arch@vger.kernel.org, linux-kernel@vger.kernel.org, linux-riscv@lists.infradead.org, linux-csky@vger.kernel.org, linux-s390@vger.kernel.org, sparclinux@vger.kernel.org, linuxppc-dev@lists.ozlabs.org, linux-parisc@vger.kernel.org, linux-mips@vger.kernel.org, linux-arm-kernel@lists.infradead.org, x86@kernel.org, Guo Ren Subject: [PATCH V7 04/20] kconfig: Add SYSVIPC_COMPAT for all architectures Date: Mon, 28 Feb 2022 00:28:15 +0800 Message-Id: <20220227162831.674483-5-guoren@kernel.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220227162831.674483-1-guoren@kernel.org> References: <20220227162831.674483-1-guoren@kernel.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-7.5 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Guo Ren The existing per-arch definitions are pretty much historic cruft. Move SYSVIPC_COMPAT into init/Kconfig. Signed-off-by: Guo Ren Signed-off-by: Guo Ren Acked-by: Arnd Bergmann Reviewed-by: Christoph Hellwig Cc: Palmer Dabbelt --- arch/arm64/Kconfig | 4 ---- arch/mips/Kconfig | 5 ----- arch/parisc/Kconfig | 4 ---- arch/powerpc/Kconfig | 5 ----- arch/s390/Kconfig | 3 --- arch/sparc/Kconfig | 5 ----- arch/x86/Kconfig | 4 ---- init/Kconfig | 4 ++++ 8 files changed, 4 insertions(+), 30 deletions(-) diff --git a/arch/arm64/Kconfig b/arch/arm64/Kconfig index 09b885cc4db5..51fdb6e9c522 100644 --- a/arch/arm64/Kconfig +++ b/arch/arm64/Kconfig @@ -2108,10 +2108,6 @@ config DMI endmenu -config SYSVIPC_COMPAT - def_bool y - depends on COMPAT && SYSVIPC - menu "Power management options" source "kernel/power/Kconfig" diff --git a/arch/mips/Kconfig b/arch/mips/Kconfig index 058446f01487..91a17ad380c9 100644 --- a/arch/mips/Kconfig +++ b/arch/mips/Kconfig @@ -3170,16 +3170,12 @@ config MIPS32_COMPAT config COMPAT bool -config SYSVIPC_COMPAT - bool - config MIPS32_O32 bool "Kernel support for o32 binaries" depends on 64BIT select ARCH_WANT_OLD_COMPAT_IPC select COMPAT select MIPS32_COMPAT - select SYSVIPC_COMPAT if SYSVIPC help Select this option if you want to run o32 binaries. These are pure 32-bit binaries as used by the 32-bit Linux/MIPS port. Most of @@ -3193,7 +3189,6 @@ config MIPS32_N32 select ARCH_WANT_COMPAT_IPC_PARSE_VERSION select COMPAT select MIPS32_COMPAT - select SYSVIPC_COMPAT if SYSVIPC help Select this option if you want to run n32 binaries. These are 64-bit binaries using 32-bit quantities for addressing and certain diff --git a/arch/parisc/Kconfig b/arch/parisc/Kconfig index 43c1c880def6..bc56759d44a2 100644 --- a/arch/parisc/Kconfig +++ b/arch/parisc/Kconfig @@ -345,10 +345,6 @@ config COMPAT def_bool y depends on 64BIT -config SYSVIPC_COMPAT - def_bool y - depends on COMPAT && SYSVIPC - config AUDIT_ARCH def_bool y diff --git a/arch/powerpc/Kconfig b/arch/powerpc/Kconfig index b779603978e1..5a32b7f21af2 100644 --- a/arch/powerpc/Kconfig +++ b/arch/powerpc/Kconfig @@ -291,11 +291,6 @@ config COMPAT select ARCH_WANT_OLD_COMPAT_IPC select COMPAT_OLD_SIGACTION -config SYSVIPC_COMPAT - bool - depends on COMPAT && SYSVIPC - default y - config SCHED_OMIT_FRAME_POINTER bool default y diff --git a/arch/s390/Kconfig b/arch/s390/Kconfig index be9f39fd06df..80f69cafbb87 100644 --- a/arch/s390/Kconfig +++ b/arch/s390/Kconfig @@ -459,9 +459,6 @@ config COMPAT (and some other stuff like libraries and such) is needed for executing 31 bit applications. It is safe to say "Y". -config SYSVIPC_COMPAT - def_bool y if COMPAT && SYSVIPC - config SMP def_bool y diff --git a/arch/sparc/Kconfig b/arch/sparc/Kconfig index 1cab1b284f1a..15d5725bd623 100644 --- a/arch/sparc/Kconfig +++ b/arch/sparc/Kconfig @@ -488,9 +488,4 @@ config COMPAT select ARCH_WANT_OLD_COMPAT_IPC select COMPAT_OLD_SIGACTION -config SYSVIPC_COMPAT - bool - depends on COMPAT && SYSVIPC - default y - source "drivers/sbus/char/Kconfig" diff --git a/arch/x86/Kconfig b/arch/x86/Kconfig index 9f5bd41bf660..7d0487189f6e 100644 --- a/arch/x86/Kconfig +++ b/arch/x86/Kconfig @@ -2860,10 +2860,6 @@ config COMPAT if COMPAT config COMPAT_FOR_U64_ALIGNMENT def_bool y - -config SYSVIPC_COMPAT - def_bool y - depends on SYSVIPC endif endmenu diff --git a/init/Kconfig b/init/Kconfig index e9119bf54b1f..589ccec56571 100644 --- a/init/Kconfig +++ b/init/Kconfig @@ -386,6 +386,10 @@ config SYSVIPC_SYSCTL depends on SYSCTL default y +config SYSVIPC_COMPAT + def_bool y + depends on COMPAT && SYSVIPC + config POSIX_MQUEUE bool "POSIX Message Queues" depends on NET -- 2.25.1