Received: by 2002:a25:f815:0:0:0:0:0 with SMTP id u21csp2028629ybd; Sun, 23 Jun 2019 22:48:32 -0700 (PDT) X-Google-Smtp-Source: APXvYqydpwHNf33+DF2jcXVuzyimFXTTRkjLRUQkQ4bXcwKlFHBXy0OHZ1m0F38x0Z0gLvY06JJ0 X-Received: by 2002:a17:902:404:: with SMTP id 4mr2370745ple.200.1561355312026; Sun, 23 Jun 2019 22:48:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1561355312; cv=none; d=google.com; s=arc-20160816; b=J2wFkXZRdOnM62CwLapg9xhJxlBi52EKnTKakjQbcfPAsts1PW2m8o9U3edfdKVHyg RY9izQAYJq4VgreiohC6ti+bqHOy4Qcya99CgKoiNZ2aTK/G/kso3S2pZ1jB6HDp84Fy TD++Uu14hD+iBbwUHweWBUqpHuBBMUte9fTFIJaTNBEGj+P7FsB6YKz14fRtaDo+GPvX EVZfjhQgcPTiAO20A9gYIMIyaIVHKjMs5AgJv0jB720IJMrEo5oeJeWsiT1EIN6K0Cso 5nronUpnaXeJ3j791bj/RL3qB4Sm7S7UB7Z3AMBVZNze+R+2Qq5C9hliT9ztpGUO+CU1 nn/Q== 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 :dkim-signature; bh=cI5ESyw+Iq18O8e33ryH8TCCdHen6nuLvHUOfsxNyOI=; b=RVWuRG+86TADiTBvZWM3PZbrnt7C9OQ2F12mJ1Wfr2OCQALz538kmJORRugELt4VVV qyWx26q6SZ4wLqtfLb2ePxeZiWSs51Z3yGLYTb6Gkhx8O/UjkomJr1PggadqvdV/FyA2 fTIyr/xGD0MYTUtx0CuLLiITIsPJ7DGTiYUIRCGq3mVnOEfC+X5GTyaQxVlvl1G7yJB+ oxJH4F1lmOh2IoWPFK6f5sVS9rwvVkiQjexhbP7nzzlAj3PRW1IrY5Sn/lvi8uWyzAUc pbW4tcX6PD69CTQd31ETWQjEJ8h4xbMoGCwcilkhvgjqrzZJChwS2hGX8LAtnIqGmNu5 cT1w== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=gCesECnI; 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 m9si8711638pgq.373.2019.06.23.22.48.16; Sun, 23 Jun 2019 22:48:32 -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; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=gCesECnI; 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 S1726981AbfFXFry (ORCPT + 99 others); Mon, 24 Jun 2019 01:47:54 -0400 Received: from bombadil.infradead.org ([198.137.202.133]:41266 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725782AbfFXFry (ORCPT ); Mon, 24 Jun 2019 01:47:54 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20170209; h=Content-Transfer-Encoding: MIME-Version:References:In-Reply-To:Message-Id:Date:Subject:Cc:To:From:Sender :Reply-To:Content-Type:Content-ID:Content-Description:Resent-Date:Resent-From :Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help: List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=cI5ESyw+Iq18O8e33ryH8TCCdHen6nuLvHUOfsxNyOI=; b=gCesECnIRfFXD9GuZknMwOvdeR TYvLB4zrxrJUBN/4Wp5/G4533FVQy9u+fOBOth2IMjO9h/G2Oe5H3TcoNddfWo3Zhgx7oPQfIxBbC gTxhFcwzzOZ9lFC3ITBdzIFz8OwFvhtP6I4EgUnRuw8knw1w+1x+gG7MUI8RSlShFhrmfEphZooYE 5tudyHzG5fca51XbJcuHW8kcoZj7DjZ3to09ftF/MkQ3etAl6sMCqO1olLTodjeoIrjEqLEPyZMOD zNm97jYcmA4nwCIRIKxi5WqZRyMFpLv3/QlJrbenwLahGKcSs0twUb6BCaYlEi5k2FqMEuWU+0EDr x8CZ1zMA==; Received: from 213-225-6-159.nat.highway.a1.net ([213.225.6.159] helo=localhost) by bombadil.infradead.org with esmtpsa (Exim 4.92 #3 (Red Hat Linux)) id 1hfHpT-0000ac-NY; Mon, 24 Jun 2019 05:47:48 +0000 From: Christoph Hellwig To: Oleg Nesterov , Arnd Bergmann Cc: x86@kernel.org, linux-arm-kernel@lists.infradead.org, linux-mips@vger.kernel.org, linuxppc-dev@lists.ozlabs.org, linux-sh@vger.kernel.org, linux-arch@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 5/5] asm-generic: remove ptrace.h Date: Mon, 24 Jun 2019 07:47:28 +0200 Message-Id: <20190624054728.30966-6-hch@lst.de> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190624054728.30966-1-hch@lst.de> References: <20190624054728.30966-1-hch@lst.de> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-SRS-Rewrite: SMTP reverse-path rewritten from by bombadil.infradead.org. See http://www.infradead.org/rpr.html Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org No one is using this header anymore. Signed-off-by: Christoph Hellwig Acked-by: Arnd Bergmann Acked-by: Oleg Nesterov --- MAINTAINERS | 1 - arch/mips/include/asm/ptrace.h | 5 --- include/asm-generic/ptrace.h | 73 ---------------------------------- 3 files changed, 79 deletions(-) delete mode 100644 include/asm-generic/ptrace.h diff --git a/MAINTAINERS b/MAINTAINERS index d0ed735994a5..43e5b6e215a9 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -12778,7 +12778,6 @@ F: include/linux/regset.h F: include/linux/tracehook.h F: include/uapi/linux/ptrace.h F: include/uapi/linux/ptrace.h -F: include/asm-generic/ptrace.h F: kernel/ptrace.c F: arch/*/ptrace*.c F: arch/*/*/ptrace*.c diff --git a/arch/mips/include/asm/ptrace.h b/arch/mips/include/asm/ptrace.h index b6578611dddb..1e76774b36dd 100644 --- a/arch/mips/include/asm/ptrace.h +++ b/arch/mips/include/asm/ptrace.h @@ -56,11 +56,6 @@ static inline unsigned long kernel_stack_pointer(struct pt_regs *regs) return regs->regs[31]; } -/* - * Don't use asm-generic/ptrace.h it defines FP accessors that don't make - * sense on MIPS. We rather want an error if they get invoked. - */ - static inline void instruction_pointer_set(struct pt_regs *regs, unsigned long val) { diff --git a/include/asm-generic/ptrace.h b/include/asm-generic/ptrace.h deleted file mode 100644 index ab16b6cb1028..000000000000 --- a/include/asm-generic/ptrace.h +++ /dev/null @@ -1,73 +0,0 @@ -/* SPDX-License-Identifier: GPL-2.0-or-later */ -/* - * Common low level (register) ptrace helpers - * - * Copyright 2004-2011 Analog Devices Inc. - */ - -#ifndef __ASM_GENERIC_PTRACE_H__ -#define __ASM_GENERIC_PTRACE_H__ - -#ifndef __ASSEMBLY__ - -/* Helpers for working with the instruction pointer */ -#ifndef GET_IP -#define GET_IP(regs) ((regs)->pc) -#endif -#ifndef SET_IP -#define SET_IP(regs, val) (GET_IP(regs) = (val)) -#endif - -static inline unsigned long instruction_pointer(struct pt_regs *regs) -{ - return GET_IP(regs); -} -static inline void instruction_pointer_set(struct pt_regs *regs, - unsigned long val) -{ - SET_IP(regs, val); -} - -#ifndef profile_pc -#define profile_pc(regs) instruction_pointer(regs) -#endif - -/* Helpers for working with the user stack pointer */ -#ifndef GET_USP -#define GET_USP(regs) ((regs)->usp) -#endif -#ifndef SET_USP -#define SET_USP(regs, val) (GET_USP(regs) = (val)) -#endif - -static inline unsigned long user_stack_pointer(struct pt_regs *regs) -{ - return GET_USP(regs); -} -static inline void user_stack_pointer_set(struct pt_regs *regs, - unsigned long val) -{ - SET_USP(regs, val); -} - -/* Helpers for working with the frame pointer */ -#ifndef GET_FP -#define GET_FP(regs) ((regs)->fp) -#endif -#ifndef SET_FP -#define SET_FP(regs, val) (GET_FP(regs) = (val)) -#endif - -static inline unsigned long frame_pointer(struct pt_regs *regs) -{ - return GET_FP(regs); -} -static inline void frame_pointer_set(struct pt_regs *regs, - unsigned long val) -{ - SET_FP(regs, val); -} - -#endif /* __ASSEMBLY__ */ - -#endif -- 2.20.1