c6x/ptrace: Remove useless PTRACE_SETREGSET implementation
authorDave Martin <Dave.Martin@arm.com>
Mon, 27 Mar 2017 14:10:53 +0000 (15:10 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 31 Mar 2017 08:31:46 +0000 (10:31 +0200)
commitd77bd2d6a478468127da79e6920b44c467baaa9e
tree40c50c76df6661f7618f39696e52e99de8880003
parentdd6054234bd82065134f62ca0b5e2695c0d859b7
c6x/ptrace: Remove useless PTRACE_SETREGSET implementation

commit fb411b837b587a32046dc4f369acb93a10b1def8 upstream.

gpr_set won't work correctly and can never have been tested, and the
correct behaviour is not clear due to the endianness-dependent task
layout.

So, just remove it.  The core code will now return -EOPNOTSUPPORT when
trying to set NT_PRSTATUS on this architecture until/unless a correct
implementation is supplied.

Signed-off-by: Dave Martin <Dave.Martin@arm.com>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
arch/c6x/kernel/ptrace.c