Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp2943375ybl; Thu, 29 Aug 2019 15:30:58 -0700 (PDT) X-Google-Smtp-Source: APXvYqwDZnj135g3rOdhBw0eqd6L15l9u6ttKKugOeb364/G1asHk9ZXDlRZHYQOFYFC9hTZO+8t X-Received: by 2002:a62:1bd5:: with SMTP id b204mr14071140pfb.14.1567117858722; Thu, 29 Aug 2019 15:30:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1567117858; cv=none; d=google.com; s=arc-20160816; b=nGlE5le6gFMGGpTyYR4lavkh8xkp4QZy9JhE11j+4E1F7rgv4Kyyfa+RQ76yclzwtc Wxw8fbAMZd+0KO9YH6Z3O2i8jzsb3r/HPJMMAgvyRWxOA7dOS7728SukPgX9ya2wJ0Fr ZYLJ65ftbMD2uF5kyt/CFZvGBI2/pIhBIaNexBX7a/0yEDjEc4VaMJOXTRAAXyuvnSlD exETSq+lqrrc8lVEooLlDXBJwh6kjbTErKJI0HBYGtz1vYmEotx5r9GgJ54oCKLyDdwR 6m4NXHoP4+WmsX4i1kTKPHxSF1ypGMi/oy3lqnnBaORGvRHoj6Lc14ECgbiK3HnKVzOy i8FA== 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=gUCQaq90loLGx9vfTmOUO3GCI5/j9eIwEhZPz0IO+p0=; b=DswtPVFguiDl1liUYItl7iOk9Gm2bPdBJv2nFTEXp5N5Fgt1G7vDyS5OqBd3snNAYg TDhZzllJFkXNNVQbMIedWtMQMArcuiPRsBYjlYtfhMQgDTyGZCcCiahW4UOe2dlP/4Qy VlzWCCCs+NFDW9sR08G4+kLDcGJZZxaNv4H337AUET/Gpv6XbbSzOqMhO2bSHW2lzdQb Q/8jZmWqsCbEbJ9KfoHubeW3T3oOnKXD3E4E7JRLoNk2tH3UwZDClgfX4kE3ElmDSUqM xdYPVOMLC/xtXf8z1kTnxGOPJC+LoKvqSm+wxSN0S6b0j2EF6GqH0Sx6JBETfaIpIAOi nM6Q== 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 o1si3263513pjt.51.2019.08.29.15.30.43; Thu, 29 Aug 2019 15:30:58 -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 S1728324AbfH2W3e (ORCPT + 99 others); Thu, 29 Aug 2019 18:29:34 -0400 Received: from mx2.suse.de ([195.135.220.15]:59318 "EHLO mx1.suse.de" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1728176AbfH2W3c (ORCPT ); Thu, 29 Aug 2019 18:29:32 -0400 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 9AEC1AE92; Thu, 29 Aug 2019 22:29:31 +0000 (UTC) From: Michal Suchanek To: linuxppc-dev@lists.ozlabs.org Cc: Michal Suchanek , Benjamin Herrenschmidt , Paul Mackerras , Michael Ellerman , Christophe Leroy , Nicholas Piggin , Hari Bathini , Joel Stanley , Andrew Donnellan , Firoz Khan , Breno Leitao , Russell Currey , Nicolai Stange , Michael Neuling , "Eric W. Biederman" , Thomas Gleixner , Arnd Bergmann , Geert Uytterhoeven , Heiko Carstens , Christian Brauner , David Howells , Greg Kroah-Hartman , Allison Randal , David Hildenbrand , linux-kernel@vger.kernel.org Subject: [PATCH v5 4/5] powerpc/64: Make COMPAT user-selectable disabled on littleendian by default. Date: Fri, 30 Aug 2019 00:28:39 +0200 Message-Id: X-Mailer: git-send-email 2.22.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 --- 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 5bab0bb6b833..b0339e892329 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.22.0