Received: by 2002:a25:c593:0:0:0:0:0 with SMTP id v141csp762783ybe; Fri, 13 Sep 2019 06:02:28 -0700 (PDT) X-Google-Smtp-Source: APXvYqy8iQV7qjyLYrnHq7JYsF3rx8DsEyfMhtzVkm+/PEmTT3VF3YeUpSzhGl6sP61f3C2+dpy5 X-Received: by 2002:a05:6402:1685:: with SMTP id a5mr35945101edv.304.1568379748208; Fri, 13 Sep 2019 06:02:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1568379748; cv=none; d=google.com; s=arc-20160816; b=HnisMmG3JzFnwv9Vugy2ynMZWeZeFHo4Nuj32LE/YhxmGfENdKGwrV6KDgZHp8Pi+D b6GvNL/lYs9vN+yq2piD4m/RGR66fG82ZlUZ4CCC4+Mo6A4W3K6spHjfVeGLF4hDAnPQ 72N9sEeCnK2E/8WLHmgZrlMe9lqdZLhkyiHIXPHfjv/BD4wIOSzOdkqsjNg5pQ1LF8xW HeOodAGqMtPCnzmMaWZ35X4ZdgoICUYdm52cC/JtdokJIxZNNzvrj3Miw7xW08rfnq3P EAVWbQ+PC2lXbdabA0E8/rH62IzFBQQ8apu9y7u2Gcb1zoyzGTiAFBV6GGKzPs+oGA5y 3kQA== 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=OqQbeOyxmgL1zHJjdvkUyynT+RUmSGtI5zRm+n+7zfw=; b=SjACw662ogzDWQiahpOy9xMR6i8W90uWvqYDnExSmsXnFKA4b7fmoflf+9aLmYne5Q w/WEbRFr2/eoMVU1EI3jIIGCz+oQsqG+49t6hstGIfJfrHW91B+getWWisR6CQalsbVF mieIj8567p8tvDrlZWslfDeasjsNXrDB3Mah11kx/hgaQ86vqt7d50GeGfzukjWkHLT7 CpXsUApmgUvMFkNyKsF3ak98oPXKYeWM7wkQMIgFkLNiB5E9HnQaIgKcRzlZPEeB33Ss XphXRyHs5ozSDS/kwALb8ke+oLq53CGiYvWUxpJIkd8+vHDORqCQrp7+v8KDZsYHk7wi riIg== 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 z23si14705762eja.368.2019.09.13.06.02.04; Fri, 13 Sep 2019 06:02: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 S1730160AbfIMM6K (ORCPT + 99 others); Fri, 13 Sep 2019 08:58:10 -0400 Received: from mx2.suse.de ([195.135.220.15]:44344 "EHLO mx1.suse.de" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726771AbfIMM6K (ORCPT ); Fri, 13 Sep 2019 08: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 5836BAF77; Fri, 13 Sep 2019 12:58:07 +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 v9 0/8] Disable compat cruft on ppc64le v9 Date: Fri, 13 Sep 2019 14:57:54 +0200 Message-Id: X-Mailer: git-send-email 2.23.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/patch/1153850/ https://patchwork.ozlabs.org/patch/1158412/ 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 Changes in v8: - consolidate valid_user_sp to fix it in the split callchain.c - fix build errors/warnings with PPC64 !COMPAT and PPC32 Changes in v9: - remove current_is_64bit() Michal Suchanek (8): 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/perf: consolidate valid_user_sp powerpc/perf: remove current_is_64bit() 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 | 3 +- arch/powerpc/perf/Makefile | 5 +- arch/powerpc/perf/callchain.c | 387 +------------------------ arch/powerpc/perf/callchain.h | 25 ++ arch/powerpc/perf/callchain_32.c | 197 +++++++++++++ arch/powerpc/perf/callchain_64.c | 178 ++++++++++++ fs/read_write.c | 3 +- 15 files changed, 565 insertions(+), 542 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.23.0