Received: by 2002:a25:d783:0:0:0:0:0 with SMTP id o125csp562100ybg; Thu, 19 Mar 2020 04:53:38 -0700 (PDT) X-Google-Smtp-Source: ADFU+vu5oxYNZa7kOzE3hzIzglMdKL9HvZmN/bI7B1V43UpM7d44MMqqPs19EExC1uivxZUfjXIr X-Received: by 2002:a9d:6c0b:: with SMTP id f11mr1892079otq.182.1584618818570; Thu, 19 Mar 2020 04:53:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1584618818; cv=none; d=google.com; s=arc-20160816; b=ZjXsLzw4m/UM+CtEnRFnVqnfgrMM9hXoQQckjO4CeTgoa3P12OmTb1U5dnaiuOZZih CpcaQSGd9Ae3Gs79AryIrYDRRXschijnvqabGogRGqlJG/I9ulNAnXUdtnx+j0egscE0 yoqV7X2MyRLwZy2cc+ahGBeg8fpOOuUH7mdhGjGc/5nC/tBjEQHBnA+W2CjCaWYvl4y6 PryphAK6IXvQE5i7aOEZdbU9n63YX069BQTqHrUjFcBJLMCvTtKMgbFLR6UvNhpquT5J 1ohp5HWmknEiBFlsomE3jTqQR3ADHOyBbjH0BWsFDIn55TycuYEPOzEn5nAk9mJqfoS+ sQFg== 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=FQyhkgpY1EDlzVp3x5WGgu8+o5wXr4tuBYFUVmN+Wr4=; b=z/pjaGveGmglZiInHBWq6LupatBxsGxIUtZ+2rxjAcqivKwuBdgbuB3WWrd22m6kHG Qh3HDZYyvE4kSFjfCKCapBdO8cTPu4CxdxaubR8BsIHJtfLwCdPv5ED8WB6hMC7yPVyd alPpTW7TmStYbdS15yXWjlH3mo7ucRbIo2AIbrGlIsiQQKevCQLEJRJzgXUK64o5A/Kq MH8SqsAOba42i1WoIck22VwddGnV3W0nbblg3Uppn0+Nh7Pc3TlcXVO5nsbg4m5Lirjy 8GxRgptCaWRbEMPmCPIqhaaDoKs81MkbZTJVt3XF87Q3+7aIjY+c+gWvMDPUNz0PSuf9 xyQw== 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 g23si1150730otk.248.2020.03.19.04.53.26; Thu, 19 Mar 2020 04:53:38 -0700 (PDT) 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 S1726867AbgCSLxC (ORCPT + 99 others); Thu, 19 Mar 2020 07:53:02 -0400 Received: from mx2.suse.de ([195.135.220.15]:45248 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727091AbgCSLxA (ORCPT ); Thu, 19 Mar 2020 07:53:00 -0400 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.220.254]) by mx2.suse.de (Postfix) with ESMTP id 0A4A6AF7E; Thu, 19 Mar 2020 11:52:59 +0000 (UTC) From: Michal Suchanek To: linuxppc-dev@lists.ozlabs.org Cc: Michal Suchanek , Benjamin Herrenschmidt , Paul Mackerras , Michael Ellerman , Peter Zijlstra , Ingo Molnar , Arnaldo Carvalho de Melo , Mark Rutland , Alexander Shishkin , Jiri Olsa , Namhyung Kim , Alexander Viro , Mauro Carvalho Chehab , "David S. Miller" , Rob Herring , Greg Kroah-Hartman , Jonathan Cameron , Andy Shevchenko , Christophe Leroy , Thomas Gleixner , Arnd Bergmann , Nayna Jain , Eric Richter , Claudio Carvalho , Nicholas Piggin , Hari Bathini , Masahiro Yamada , Thiago Jung Bauermann , Sebastian Andrzej Siewior , Valentin Schneider , Jordan Niethe , Michael Neuling , Gustavo Luiz Duarte , Allison Randal , "Eric W. Biederman" , linux-kernel@vger.kernel.org, "linux-fsdevel @ vger . kernel . org --in-reply-to=" <20200225173541.1549955-1-npiggin@gmail.com> Subject: [PATCH v11 6/8] powerpc/64: Make COMPAT user-selectable disabled on littleendian by default. Date: Thu, 19 Mar 2020 12:52:26 +0100 Message-Id: <4ebc213bc09013531c852c0e083f286f55cb69ad.1584613649.git.msuchanek@suse.de> 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 497b7d0b2d7e..29d00b3959b9 100644 --- a/arch/powerpc/Kconfig +++ b/arch/powerpc/Kconfig @@ -264,8 +264,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