Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp1108875ybl; Fri, 30 Aug 2019 12:00:04 -0700 (PDT) X-Google-Smtp-Source: APXvYqxZCsNUzKnnnHYAFrIUFcjg1QOPX7yMFth6IanPquJOwOe9Gatnt1+5kamLbo2liYSh/qHH X-Received: by 2002:a17:90a:b395:: with SMTP id e21mr77636pjr.76.1567191604244; Fri, 30 Aug 2019 12:00:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1567191604; cv=none; d=google.com; s=arc-20160816; b=wEqfqRIalmw5fHho3xMAqtn3FUpOmMYT9vSyrQ551zM+fgG6vKpcbdHZYuAHJXEgWs R/FYyGLav8po3/xhmOOcqubdwyGggIm0GjLGNcqfzVahONG0aSUG6kStapSsy8u+O9bR aC3yqQftZiTx5ix21dwdEFqgWpkiKsFFg+TpkD/ubsaCkeOHw6j8lefAI4+mcIwR98tn JerKmZLuUoaOs9/y2DUVQDkoQxpxIx+r4hKYdQrAmKAuRk2G+JaXaRCFetKZWmdN7AXe YzenEf+WXp6WZC6pB5z3bHeHijk4FaN/mzJ2DgiNt49lN0ZiUID/pRdQlUbN8BHToLJ1 q9KQ== 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=ZBVOFheKUjpJYbw7p+WNMTVHnCvH5FGwlLkFD+4nQxu1rKT8OkqS4cQLgdtfI/eBZy dQiAY24yBojyPckChgQsUkEHZucfy3qLZLv/D+Pt2XJXU2sL1zv7PWjQ6yAiZlpJDULi /CH8UrdchyfVJPHIm4Q0hwi1fFvzdfHotdhvzlzjIBOgjtuF3x4etoMfqJ0XnQCvxLfU kPBkfwVfSwzqUs+dr6WNJQF9sUpftKxprTqd3sEQdmkjPcCgG4Icn1zfc4MmqC/fc+R7 ueKfbIZaU4x0y799DysKjVXcfyXqrrnEeihi143OKMWAWttayTkx02EtUPCfm0kJsOqQ iJ9Q== 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 j62si4826860pgd.170.2019.08.30.11.59.49; Fri, 30 Aug 2019 12:00:04 -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 S1728391AbfH3S6Y (ORCPT + 99 others); Fri, 30 Aug 2019 14:58:24 -0400 Received: from mx2.suse.de ([195.135.220.15]:42564 "EHLO mx1.suse.de" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1727935AbfH3S6K (ORCPT ); Fri, 30 Aug 2019 14:58:10 -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 0E9F5AE65; Fri, 30 Aug 2019 18:58:10 +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 v6 5/6] powerpc/64: Make COMPAT user-selectable disabled on littleendian by default. Date: Fri, 30 Aug 2019 20:57:56 +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