Received: by 2002:a25:7ec1:0:0:0:0:0 with SMTP id z184csp768709ybc; Tue, 12 Nov 2019 08:55:51 -0800 (PST) X-Google-Smtp-Source: APXvYqyx1ARdmD4SEpz5CHHcvi91JMRB2SWAgLiErX0T4+8f3Oc3GFYZlam6RNFGuRSzE/f+8ktc X-Received: by 2002:a17:906:7251:: with SMTP id n17mr5308519ejk.329.1573577750907; Tue, 12 Nov 2019 08:55:50 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1573577750; cv=none; d=google.com; s=arc-20160816; b=EahGJ60mrT9ozd0CCOE/FHwMiFJaHTkFpXt+94AIakLbnUbEnxqMQxhkfjbm4cY7n9 lIIFvEv9bfJpdsQWqQYP7UEBalU2j0zvP8c7Hby/0P4s0Kx1ZpIsAUy00beyl9Xe/Um7 FNrsEmBlEHZAFVEKClIXaTj8DMPnE7e3LuerXAMGDfCPj7epkul4W0mWVY1yaOosMbLm UTPRfV+HrMsvuDWSjbFAZKv+kdjmqgZHBMmLelSTTIqmlEZN3byDEG7t+bnmb8AYQ3uI cDTz0NmXvhNqN0rG6K3buL48R9d9ezA9ojGkOWqHi2omjHtUVOGVLzUjwIyK9hCGmQVY Vkow== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=Hnu9Jh1K4CKLxjNUz+SwSiDcWr9YBMiUwbaLUQuEu6U=; b=yMTlFHtnFC2GSn4ccpw0CRR4mxgxFBeu2szKqhXwnPTPJoUJiR3mJ2iQNl4/KUdGnU ZN5XLUItvQEA78jrXFiToYLu7Ec7RGdn6fN9SG02IO8r420vTCcwk3BMIkzunp7GKe/K vYZs8OljEe/NDEUlaTbjoMWUS7uIEBAI2Sayc0bnsc8xBUZcv8jzMgGO3eco7vETYqx+ D0WI6vDoW4OwTzi6pcDZkhiZBul3//3j5dOyVhglKE2Uwj6WMmUwjGOvk1Qh5VkvTT4U l1dBe/q+Df2dO7EPfSA75IgdOM6Yw6KbUn4cJTMQvEULc6qJ6eQJW8dZqWU6XiTQRMWD i/mg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id g40si14348408edb.369.2019.11.12.08.55.27; Tue, 12 Nov 2019 08:55:50 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727780AbfKLQyO (ORCPT + 99 others); Tue, 12 Nov 2019 11:54:14 -0500 Received: from mx2.suse.de ([195.135.220.15]:35594 "EHLO mx1.suse.de" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1727735AbfKLQyD (ORCPT ); Tue, 12 Nov 2019 11:54:03 -0500 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.220.254]) by mx1.suse.de (Postfix) with ESMTP id 6042EB293; Tue, 12 Nov 2019 16:54:02 +0000 (UTC) From: Michal Suchanek To: linuxppc-dev@lists.ozlabs.org Cc: Michal Suchanek , Benjamin Herrenschmidt , Paul Mackerras , Michael Ellerman , Oleg Nesterov , Alexander Viro , Christian Brauner , Nicholas Piggin , Allison Randal , "Naveen N. Rao" , Thomas Gleixner , Breno Leitao , Christophe Leroy , Claudio Carvalho , Russell Currey , Greg Kroah-Hartman , Mahesh Salgaonkar , Arnd Bergmann , Geert Uytterhoeven , Firoz Khan , Dmitry Vyukov , Masahiro Yamada , Hari Bathini , Andrew Donnellan , Nicolai Stange , Valentin Schneider , Diana Craciun , Daniel Axtens , Michael Neuling , Gustavo Romero , Mathieu Malaterre , "Steven Rostedt" , "Eric W. Biederman" , Heiko Carstens , David Howells , Brajeswar Ghosh , Jagadeesh Pagadala , David Hildenbrand , Andrew Morton , Madhavan Srinivasan , linux-kernel@vger.kernel.org Subject: [PATCH 32/33] powerpc/64: Make COMPAT user-selectable disabled on littleendian by default. Date: Tue, 12 Nov 2019 17:52:30 +0100 Message-Id: X-Mailer: git-send-email 2.23.0 In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On bigendian ppc64 it is common to have 32bit legacy binaries but much less so on littleendian. Signed-off-by: Michal Suchanek Reviewed-by: Christophe Leroy --- v3: make configurable --- arch/powerpc/Kconfig | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/arch/powerpc/Kconfig b/arch/powerpc/Kconfig index 3e56c9c2f16e..825528db2921 100644 --- a/arch/powerpc/Kconfig +++ b/arch/powerpc/Kconfig @@ -266,8 +266,9 @@ config PANIC_TIMEOUT default 180 config COMPAT - bool - default y if PPC64 + bool "Enable support for 32bit binaries" + depends on PPC64 + default y if !CPU_LITTLE_ENDIAN select COMPAT_BINFMT_ELF select ARCH_WANT_OLD_COMPAT_IPC select COMPAT_OLD_SIGACTION -- 2.23.0