Received: by 2002:a25:2588:0:0:0:0:0 with SMTP id l130csp2755666ybl; Thu, 12 Sep 2019 14:25:48 -0700 (PDT) X-Google-Smtp-Source: APXvYqxCw74B1TaI8rRckLdSMycFockSmRfkec05HV3uVfWI0Wc9wyziAYkcRzxkSpXx1oRS3OLJ X-Received: by 2002:a17:906:7f91:: with SMTP id f17mr35808686ejr.125.1568323548340; Thu, 12 Sep 2019 14:25:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1568323548; cv=none; d=google.com; s=arc-20160816; b=N5Il5N/Vkpkw0HTShZk87DvIhXKcYrqnaFtoi6ykTNAAIrBEUkYZvaLdvTc5B9iJRA h0Fn2Okc0c5sgA05KK7wxp2DLnkYipxxvIQsYNrUIH0So3ukz3pqhKNVR4FOUBSum21Y n/VcPrYxSxuIfRUNO24LHkZa2VF6vQZNCt450+XLFGe/3v7LJerBbkIzod2vHqSwjx5y F6CA7C17WDJJCJP1M7pP+AegMu4DHB5WMrNToIQST89ug+f44ML2G5HmIWO7qdzSwc4Q dHPdAioULvLyVjCeQVRcqmJPaSCB5azFzfWfQDtya33qls2D6oubyt9BYZgz3xLEPGPJ fNWg== 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=PR00IyVcJLYLGV4RFh7LOaA/asmBTBBfMUdcYwC5OnE=; b=wXgvI3MAb3rzNep37q2vctj76YOvhsiZQCezIGJfdv/6evI5pXnLEKbYAVng7D72hX oI5GvH9v7RwUcFX7cyh34h0/RNcWyOe/5dReal0aG3ia2Nsrc+V8T7yXMrYquY2579fg 4irrjapBXM4+BLytpfkya0uab7xz9aSAom8tn1M3Z/EiOkqWJu+P5AlVpHL27falqLez +XoA0o/lLovFppPk49ABWJJwZo2pHY4SIQAHLVTgYvi6IDcyceDKPcbZ6IlQPulP26x+ iSOcfR6Z7kwGoa98Mkjr8wl3YO/OYVtIbOzuKAkZv/SKu2vRpPEdomQefenN3XvjkqhQ nIlg== 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 g21si17075644edg.339.2019.09.12.14.25.00; Thu, 12 Sep 2019 14:25:48 -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 S2387508AbfILR0i (ORCPT + 99 others); Thu, 12 Sep 2019 13:26:38 -0400 Received: from mx2.suse.de ([195.135.220.15]:54138 "EHLO mx1.suse.de" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S2387482AbfILR0h (ORCPT ); Thu, 12 Sep 2019 13:26:37 -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 E7EC2B635; Thu, 12 Sep 2019 17:26:34 +0000 (UTC) From: Michal Suchanek To: linuxppc-dev@lists.ozlabs.org Cc: Michal Suchanek , Benjamin Herrenschmidt , Paul Mackerras , Michael Ellerman , Alexander Viro , Nicholas Piggin , Christophe Leroy , Breno Leitao , Arnd Bergmann , Heiko Carstens , Greg Kroah-Hartman , Firoz Khan , Thomas Gleixner , Joel Stanley , Hari Bathini , Michael Neuling , Andrew Donnellan , Russell Currey , Diana Craciun , "Eric W. Biederman" , David Hildenbrand , Allison Randal , Andrew Morton , Madhavan Srinivasan , linux-kernel@vger.kernel.org, linux-fsdevel@vger.kernel.org Subject: [PATCH v8 6/7] powerpc/64: Make COMPAT user-selectable disabled on littleendian by default. Date: Thu, 12 Sep 2019 19:26:08 +0200 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 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.23.0