summaryrefslogtreecommitdiff
path: root/arch/hexagon/include/uapi
diff options
context:
space:
mode:
authorThomas Huth <thuth@redhat.com>2023-10-25 09:38:02 +0200
committerArnd Bergmann <arnd@arndb.de>2023-10-25 15:54:24 +0200
commit550087a0ba91eb001c139f563a193b1e9ef5a8dd (patch)
tree1db7d2e1fe84ea2008444fa6131fee522c11f7fd /arch/hexagon/include/uapi
parentf82060480095a909291adc90d5579f50b6ec0627 (diff)
downloadlwn-550087a0ba91eb001c139f563a193b1e9ef5a8dd.tar.gz
lwn-550087a0ba91eb001c139f563a193b1e9ef5a8dd.zip
hexagon: Remove unusable symbols from the ptrace.h uapi
Kernel-internal prototypes, references to current_thread_info() and code hidden behind a CONFIG_HEXAGON_ARCH_VERSION switch are certainly not usable in userspace, so this should not reside in a uapi header. Move the code into an internal version of ptrace.h instead. Signed-off-by: Thomas Huth <thuth@redhat.com> Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Diffstat (limited to 'arch/hexagon/include/uapi')
-rw-r--r--arch/hexagon/include/uapi/asm/ptrace.h13
1 files changed, 0 insertions, 13 deletions
diff --git a/arch/hexagon/include/uapi/asm/ptrace.h b/arch/hexagon/include/uapi/asm/ptrace.h
index f79de05b8689..2a3ea14ad9b9 100644
--- a/arch/hexagon/include/uapi/asm/ptrace.h
+++ b/arch/hexagon/include/uapi/asm/ptrace.h
@@ -29,17 +29,4 @@
#define profile_pc(regs) instruction_pointer(regs)
-/* kprobe-based event tracer support */
-extern int regs_query_register_offset(const char *name);
-extern const char *regs_query_register_name(unsigned int offset);
-
-#define current_pt_regs() \
- ((struct pt_regs *) \
- ((unsigned long)current_thread_info() + THREAD_SIZE) - 1)
-
-#if CONFIG_HEXAGON_ARCH_VERSION >= 4
-#define arch_has_single_step() (1)
-#endif
-
-
#endif