Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp2943012ybl; Thu, 29 Aug 2019 15:30:36 -0700 (PDT) X-Google-Smtp-Source: APXvYqx3GNcK5vvk8XE7T6geagb4Oywd4Up6lHpxaOa+zEarrDgmC3CB7nZAmiG2da1OGHcBfZEL X-Received: by 2002:aa7:9abc:: with SMTP id x28mr14561131pfi.234.1567117836284; Thu, 29 Aug 2019 15:30:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1567117836; cv=none; d=google.com; s=arc-20160816; b=IdPoYLbP6yR0Yt3jQkT4CgwHNv7ZxepNbXncYbi4v4qnnXZQmDFpRGU1flrKP9oq4g FgG2+9WGhS4ONaVQruyp4kEz1bpwvMuggL/gR5vqkYunzyTRrST/gy/+VUyBThc8N9Qz ATjDIQmWMOkVBt1+1XkKEI38pwn7Ydyd7BdWUJ9lHO7Hw6Zmb8FiWVOkq6Xd3Hz06buW 7h5Cg4dRLBJ0tHNEfz2DXDWxMYrkoB3OJxzRVWamvKe4BqpCuYIkKGvVd4Uc4Ksxr6kZ 3UfDKBXuNedKFm3AeoZkzdFd6YxyYYYa4A/Dy5SoWAb1iSUSOiPlCUuIxYbKd3zB11hl 8Jtw== 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=XYtYLpsOax7+5Yuy+a1HTI2ZOSVwryfYVFHxIwvb6nU=; b=Fh/GS4JMqzJsWFEJlIgbLtbDMcZQ5wxR1iglGj1Gw6DAMeuQDaBURLE6SX6mIPLYQr 6AGKYbKQXGJWFNX+RtmPGOhz7eMlOcA3Ra/yqHYwwzm1RYl6o9sg3DV5/JRtVZmu+5mi vdIPpRPCsoHVZQIi006hVaThWkUGEQAuogyX2GMyXYLlzOPYlXBT0Jy4a1u67bK+ytt4 ZjBrb1dvZ9bBmxYzN3CG6L4Ri7+MP5MVOiuTNc2FHpBslTha/QlAqDfeOIXJOMuxoZuq k+1xvTvXmR9BRi+ajgnaRs8qsyREnyZ794gDxu6s23IZP+tkxaiRJHoIvpea+Ph2D3S6 iMtw== 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 z193si3042223pgd.235.2019.08.29.15.30.20; Thu, 29 Aug 2019 15:30:36 -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 S1728122AbfH2W3a (ORCPT + 99 others); Thu, 29 Aug 2019 18:29:30 -0400 Received: from mx2.suse.de ([195.135.220.15]:59080 "EHLO mx1.suse.de" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1727686AbfH2W33 (ORCPT ); Thu, 29 Aug 2019 18:29:29 -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 AE9A2ACC4; Thu, 29 Aug 2019 22:29:27 +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 v5 0/5] Disable compat cruft on ppc64le v5 Date: Fri, 30 Aug 2019 00:28:35 +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 Michal Suchanek (5): powerpc: make llseek 32bit-only. powerpc: move common register copy functions from signal_32.c to signal.c 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 | 4 + arch/powerpc/perf/callchain.c | 379 +---------------------- arch/powerpc/perf/callchain.h | 11 + arch/powerpc/perf/callchain_32.c | 218 +++++++++++++ arch/powerpc/perf/callchain_64.c | 185 +++++++++++ 14 files changed, 579 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