Received: by 2002:a05:6a10:9afc:0:0:0:0 with SMTP id t28csp1375808pxm; Thu, 24 Feb 2022 01:44:06 -0800 (PST) X-Google-Smtp-Source: ABdhPJzDP7iYxiLNnXBy4rspPEQ6xUhWylfw6iUU7gPC2vW+2Uh0HMnq8ZNB8SKavC4Y0FVPlSkW X-Received: by 2002:aa7:dbd6:0:b0:408:4a31:97a5 with SMTP id v22-20020aa7dbd6000000b004084a3197a5mr1529886edt.186.1645695846495; Thu, 24 Feb 2022 01:44:06 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1645695846; cv=none; d=google.com; s=arc-20160816; b=UZa4JWi2iiL5/EM5YrVL8t9SgCXXSqWrEW13/IySphZ90LksrKDfCeZ+Tm2cU0lIS4 B/NX+f5pLAnkdJYoE4rLOjM8hklFSIRjmG0tfFA+xVg90T3Dy5pDZr2KvXpmq/9cHs3m EEaYmu5ncsokywh3JPMKlVH0eN4JXqq1oioUP5/EF6a3dSJlkZtkjANJmfcHzSNip5Es 9yyoIXLqYZhGGeLMo7iieDRMuJMGxo+u4nfENsoLFxU9zkbt3dHwBzXUfUQIfV54gwXs bS6rwfK+x7DxppAKXEZxvy9tzvU2HElSGVjpheDbGsIUUpcTc4MuQhJWNb7ad4p5sjV0 RZsA== 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=UN2Rb/cKP1Q+EEphjAWd+34IG3sALprjqeAwX4OsFjHeF+NDUaZ2w30mivrqKSu2xD +XXVKYNMrl7+HNnmwEGr/zeD6a1np4Dt26syLbmUuT8U2538lgHaaA9+aVj6aPBIhoeH MokclgPoTUCn+Ia7YkjveS0fe0mGyj9DRsdnH9IDH9AwgdQfebnj5uRGfuNkbmwgubF4 1qzarXpoxX5cO2QkpZBefZGJBhJJNLjAmCt+fFUD1zLWszFvRlMkGQDVRmtdACctMamH laMIPLXLJ1GVRIdE2eUUF2/qU9GesFit/9/wg4XU13jpJU2VwwUuXsTU/n4zcOPPCOfj 1KVg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=SzrKPwl4; 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 sb26si1760449ejc.613.2022.02.24.01.43.42; Thu, 24 Feb 2022 01:44:06 -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=SzrKPwl4; 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 S232148AbiBXI4H (ORCPT + 99 others); Thu, 24 Feb 2022 03:56:07 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42988 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232271AbiBXIz7 (ORCPT ); Thu, 24 Feb 2022 03:55:59 -0500 Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A444E165C0A; Thu, 24 Feb 2022 00:55:27 -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 46310B81C4A; Thu, 24 Feb 2022 08:55:26 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 871BFC340F3; Thu, 24 Feb 2022 08:55:18 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1645692925; bh=W7iu4530nabTWQXD2mTmuctIqIwVpgCzFglD2gmX8bk=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=SzrKPwl4Ck2zE4wnS0LzYY2eZqmiGROJ1goANvT6+ChCyi3NtczZfwNbS0QGuKyT/ +2dv1gGTgFGImyXC8YNki81YUfTFe5dbEn53QAwWtowoZnXTCPJUsxCLx679ruhg1Q 8M0DYfs5mOGlozS4xCM6DRYTM2zIUeWu8dPk80cYri3nOwrezP3LAM1s2VaOla0zGf f1EE3964DdR7vpfO/IQA3jJBcSXmzQNtPC1SnHmobwwx42lOnJig19cU0jmN5oOhUu BcrFM4j6OeTNO01L8x0PYRkMxHcm34ynT8dy8XHJz9fn/SffPB/YnZVtvWDl5rjHAa jwybZ9svLBVHA== 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 V6 04/20] kconfig: Add SYSVIPC_COMPAT for all architectures Date: Thu, 24 Feb 2022 16:53:54 +0800 Message-Id: <20220224085410.399351-5-guoren@kernel.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220224085410.399351-1-guoren@kernel.org> References: <20220224085410.399351-1-guoren@kernel.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-7.1 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