Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp1225120ybl; Fri, 30 Aug 2019 14:05:04 -0700 (PDT) X-Google-Smtp-Source: APXvYqwMD182N9Yv+o30HnN5jRZcwt4vE1htbszjyj5RuBeNDWSXBvMC2QO/8D5wLUTQLiZLgr+Z X-Received: by 2002:a63:755e:: with SMTP id f30mr14651954pgn.246.1567199103961; Fri, 30 Aug 2019 14:05:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1567199103; cv=none; d=google.com; s=arc-20160816; b=ctCRR+23zKH5MPcD0H1XUsy8mhHCw+KTWwFsXB8G5DBHFz+IeCH5HuWPUf9xBFoyWZ px38J2BXZJBvlaQiLgx4qTjILRD5BxJ1xE1RMQMmu0z9YrujWvgZre1g4NJ32uYURoLz rSiEgbPBwkKQJUcXrqi6j0LxcFN9zLeMT6pIphhV5zEW8mY/fcuj7PDpcSVYxrbw4PMD B0Oq8GJZBf4oqi3hHrBJ0B8efmJgL+/jxEMF2IgzlHoLPEAM8D/NQYqoGRfKrR4/ZvFb yRmptySRbeSBl/2QEFcscp4I3OrtkmImqIjfD8UJ+dtJdAHJhKXfwigTrYDr00LbMCY+ nzMQ== 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=9RY+UKpjhGeLI8wRAE9dblGl7376HX6VHlc5/fBHEr0=; b=ApFGLoUksp/H9oVjUtfy1Ry8YhG8CTC7VGMidr7T4jE6cUTBE52XRq8qFndwkX0bMg V6EGvLieVQCND/auoWJRweOYdG/MvfxM9jm7sG2YJPxh/+lAIQmsZw9cfBGZzZ9jEzg7 +tzn+nzlMTYCkkq8QTwIBVOjuM20KseCc3K+dFwzqXLSwoMqlMJCmE5qvAmtTEcnb30C CwDzWhteexSLpQ5INo5C7i04Zxad2b7wxIUOZsfHGgJIbGUMWTt79L1rMPqUay6kSr+v fwEISHTC+klkn588zcfXsGxaQghqb2D9Rht5I8Z9HXtgAjdw52qh2KEdBt2eNBVd2CZf N+eQ== 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 h129si6901523pfb.91.2019.08.30.14.04.48; Fri, 30 Aug 2019 14:05:03 -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 S1728399AbfH3VDz (ORCPT + 99 others); Fri, 30 Aug 2019 17:03:55 -0400 Received: from mx2.suse.de ([195.135.220.15]:53164 "EHLO mx1.suse.de" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1728334AbfH3VDx (ORCPT ); Fri, 30 Aug 2019 17:03:53 -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 A9EF1AF1D; Fri, 30 Aug 2019 21:03:52 +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 v7 5/6] powerpc/64: Make COMPAT user-selectable disabled on littleendian by default. Date: Fri, 30 Aug 2019 23:03:42 +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 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.22.0