Received: by 2002:a25:c593:0:0:0:0:0 with SMTP id v141csp760250ybe; Fri, 13 Sep 2019 06:00:31 -0700 (PDT) X-Google-Smtp-Source: APXvYqwAo6DBYx5oql+5vuA7lcCh8KD5F9mN64vVTVjzs8JQtcQ3MiCb/xa1MCXFQ1SLlkeLQ6Mw X-Received: by 2002:a17:906:1f14:: with SMTP id w20mr22015148ejj.272.1568379631536; Fri, 13 Sep 2019 06:00:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1568379631; cv=none; d=google.com; s=arc-20160816; b=WSP+WkfmpGStBIbCXQBkWXj3Gn6sjhFnkvEY+x4ekGOeuUIJ4EFR2RIMTZXJtca095 vAsmixRKLsvZKa/taPYpa8qcOqxNvgkSLpZuJE9PG5RNJXR6Q38aQqwQZvBKJgWTqCk0 yqfI009StrPHvadGRagzuw4PXjGkEs4XX8ejxhr8Kh+wofUScFDJgVliPw7NU3XmIsqK A0K/xRjnQTfMdJp7WNEEssjEnd50jRJ5O9IAWMEqKDAkfQEvCHgTONefl76goUz9gFeK sz94O4P5fIa3g6hmYW0bRjyMejgVh9z2rNbXE9TKQD62jgI8QUvzr3QulKbphAdLMa7/ tT+g== 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=VV9K+WvdwXpegzD6a7vkkNFnDtxQRjg8MSpDtqT9HVG8agTvNgZj4OXxkJomwtseVE IYFyqQKfswv1Ui1eLsvPga5yBYju8lbaYRN7Dhru9q5u03wYh/JkjYaTTJGKt8/77jDw 3mvp+sgbYVAQjYlqdDhfummTOVjXzJqSji9vPqT5MdQdtET3IW2rQfftvO36nSiG9fLu s6gI2QvHMoONYsXa+2sKlxmyZUTi0hKvS8D63AhV2Ult8VTCbr1tcSqjw2BAaJ2ryeUS rr4oQI9hYp5sD9QEPHXig+fYnWQ94PJXvHJjjT7ritrlR+VzMatw5MDdwIRLFrMXmRNM 3CLg== 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 v17si15188819eda.256.2019.09.13.06.00.07; Fri, 13 Sep 2019 06:00:31 -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 S2388130AbfIMM6R (ORCPT + 99 others); Fri, 13 Sep 2019 08:58:17 -0400 Received: from mx2.suse.de ([195.135.220.15]:44700 "EHLO mx1.suse.de" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S2387911AbfIMM6P (ORCPT ); Fri, 13 Sep 2019 08:58:15 -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 7B449B0E2; Fri, 13 Sep 2019 12:58:14 +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 v9 7/8] powerpc/64: Make COMPAT user-selectable disabled on littleendian by default. Date: Fri, 13 Sep 2019 14:58:01 +0200 Message-Id: <0017ff10ff75c3b5587406ad81f6827872e39f6e.1568319276.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 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