Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp1225043ybl; Fri, 30 Aug 2019 14:04:58 -0700 (PDT) X-Google-Smtp-Source: APXvYqxPhYuJk8z17cBcJUYRWZwhUZdzh6t0UMu+1ABY26GWd1YsCTqFIP064PYMgO/tLvwMfAh7 X-Received: by 2002:a17:90a:bb92:: with SMTP id v18mr543325pjr.78.1567199098462; Fri, 30 Aug 2019 14:04:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1567199098; cv=none; d=google.com; s=arc-20160816; b=mj1Td1SdsroVOWG309BIhvzIqmG+tEoiBxSKLKSpn61rXHT6TFci9dHAaZ2za9zcE6 r8L4Mf77kHVEHNjB13VN0JcVFSt4HvEW9iwXzBUFvUYtQsqkPhquwfiXMSIO9p+ANMOH 9or+wtRVhq7e4glUigbewFYWVeuUEfsMgiJ2jkCJRsIBRbtgSY517YssV8yL5Y+1R0gB xVIHb1sg7frOwl5liLVLME6fI4KhO3NGVhjhb1j3tEqBp3fRcUrjkPQr9JWLaibSMMv4 3vTSesC9MHJbqTrMQrwmN1bPKenvwIREuTeUdXJM05wDn3bqJ2Ibe35pe8FeRCKgn7xk YcrA== 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=Fzpt5I2CN28zK6UM4jLcHIr9lLBI6hlM3KPEywhDfcs=; b=fZvANYuzOESpYk8gXTj/VHnzjvbRRkSkN8H57IruZQ13HfuiJlhi0zNTJb29mIQoym p3lQA7dAkxKJdcJoL7OTBRD4z0WOicW7qtvDUkEJ6h6/sqbKQgc6dTClJuHCCL5ktuqM ORjSa8zqOodxyNnoplWpbskKPbAS++zBKok7OpdJKpVevMoszmrpDQLVqP8+NaI2bVBE LPMPKlgbTssrEWnnZBMdbxCZIw0csDCxTLU8PlkbqneFETWCTiv9u4qDpQhVdv/aiwBa KsZRnfV/Xz/LBqB7OZtEMbwi9j3M1bwO5gh/0bG6lSgMkH5e1XRtQ29ezNdU+jV6CN4f Ab0A== 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 a22si5593864pjv.56.2019.08.30.14.04.43; Fri, 30 Aug 2019 14:04:58 -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 S1728247AbfH3VDs (ORCPT + 99 others); Fri, 30 Aug 2019 17:03:48 -0400 Received: from mx2.suse.de ([195.135.220.15]:52918 "EHLO mx1.suse.de" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1727991AbfH3VDr (ORCPT ); Fri, 30 Aug 2019 17:03:47 -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 0E5CBAD5D; Fri, 30 Aug 2019 21:03:46 +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 0/6] Disable compat cruft on ppc64le v7 Date: Fri, 30 Aug 2019 23:03:37 +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 Changes in v7: - add back __ARCH_WANT_SYS_LLSEEK to fix build with llseek - remove leftover hunk - add review tags Michal Suchanek (6): powerpc: Add back __ARCH_WANT_SYS_LLSEEK macro 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/include/asm/unistd.h | 1 + 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/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 ++++++++++++ fs/read_write.c | 3 +- 15 files changed, 566 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