Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp1109365ybl; Fri, 30 Aug 2019 12:00:28 -0700 (PDT) X-Google-Smtp-Source: APXvYqz18Q/LpKkn4X7rk/Z8x1rOV4aEYu+McyBqAMa9uwYDiUCVVGzOmsOXPl32wD2svgBD+VuQ X-Received: by 2002:a63:2b8e:: with SMTP id r136mr14129843pgr.216.1567191628789; Fri, 30 Aug 2019 12:00:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1567191628; cv=none; d=google.com; s=arc-20160816; b=T7CVcokamKjByaJ2S1eYz2zlus1TRGLuhbSNBK0KH4TeTlhLsdoh8hpnmxgDEgzmOd RYEAu5sOXd00ScnT8zyiV7vjbvJz2Ndx4F8jo2ydAt+18PR+tHcs31QkU0UOgjzpmmob goSLCTt5APF/fvNlx5Z/AcfEFLaiClXu80rRNI6XmDSqmchdYFY+VjDtjDxeo7rIDGLX dcXVRf1M+ySwh2hfncejglvGCT7jd5ZCXh8E9n282gXGY6V0MMoOoPzXsHMlWVze+Lmf /jC/wu5CykMhv6GR/ezkfqBEuaz0L2G3NoZ8DmjJgQO1PJZM7E2cuJnM/RGSW8YIjD+t 14lQ== 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 :message-id:date:subject:cc:to:from; bh=mBH4j5UVMPbrIaAzDa0Qk0Kp/SyDPtvkWFXzyynA17U=; b=aecZC9KiF73btFr/kvTN+cmtT2xs/+sW5Wt4vZLRXEjH5Q28DeF7ablNto0JETCWbi OqTL+3luYwvlEs8DTOOVj5b5hkpXD4DsME/TLIMMFGbKceHFOs64m6Vk7PNj7SUsCwcO vkPzBxO9V0gP/QbFYa/9Fj7mGsMSLu2SsX3X+PeUG/olU1IksTqJxBOEJcPrJ/zX1zYw 0yAh9VB2uOqtemPMnN3OvgYnx4gtI7yD3iUW3ut2cj5N+jT6quMnUG9s98Qh9XPiwOHc +OqfvacejOVaNGrrWb4RTkMef2YRpt2BGCaPOx5EsmXYE6t4Uwh/OpcSp9q/tM3JD2Cc 5VOQ== 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 o33si4944728pgb.381.2019.08.30.12.00.12; Fri, 30 Aug 2019 12:00:28 -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 S1728186AbfH3S6H (ORCPT + 99 others); Fri, 30 Aug 2019 14:58:07 -0400 Received: from mx2.suse.de ([195.135.220.15]:42382 "EHLO mx1.suse.de" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1727304AbfH3S6H (ORCPT ); Fri, 30 Aug 2019 14:58:07 -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 B4572ABD6; Fri, 30 Aug 2019 18:58:04 +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 0/6] Disable compat cruft on ppc64le v6 Date: Fri, 30 Aug 2019 20:57:51 +0200 Message-Id: X-Mailer: git-send-email 2.22.0 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 Less code means less bugs so add a knob to skip the compat stuff. This is tested on ppc64le top of https://patchwork.ozlabs.org/cover/1153556/ Changes in v2: saner CONFIG_COMPAT ifdefs Changes in v3: - change llseek to 32bit instead of builing it unconditionally in fs - clanup the makefile conditionals - remove some ifdefs or convert to IS_DEFINED where possible Changes in v4: - cleanup is_32bit_task and current_is_64bit - more makefile cleanup Changes in v5: - more current_is_64bit cleanup - split off callchain.c 32bit and 64bit parts Changes in v6: - cleanup makefile after split - consolidate read_user_stack_32 - fix some checkpatch warnings Michal Suchanek (6): powerpc: make llseek 32bit-only. powerpc: move common register copy functions from signal_32.c to signal.c powerpc/perf: consolidate read_user_stack_32 powerpc/64: make buildable without CONFIG_COMPAT powerpc/64: Make COMPAT user-selectable disabled on littleendian by default. powerpc/perf: split callchain.c by bitness arch/powerpc/Kconfig | 5 +- arch/powerpc/include/asm/thread_info.h | 4 +- arch/powerpc/kernel/Makefile | 7 +- arch/powerpc/kernel/entry_64.S | 2 + arch/powerpc/kernel/signal.c | 144 ++++++++- arch/powerpc/kernel/signal_32.c | 140 --------- arch/powerpc/kernel/syscall_64.c | 6 +- arch/powerpc/kernel/syscalls/syscall.tbl | 2 +- arch/powerpc/kernel/vdso.c | 5 +- arch/powerpc/perf/Makefile | 5 +- arch/powerpc/perf/callchain.c | 377 +---------------------- arch/powerpc/perf/callchain.h | 11 + arch/powerpc/perf/callchain_32.c | 204 ++++++++++++ arch/powerpc/perf/callchain_64.c | 185 +++++++++++ 14 files changed, 564 insertions(+), 533 deletions(-) create mode 100644 arch/powerpc/perf/callchain.h create mode 100644 arch/powerpc/perf/callchain_32.c create mode 100644 arch/powerpc/perf/callchain_64.c -- 2.22.0