mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] um: Correctly check for PTRACE_GETRESET/SETREGSET
@ 2017-07-06  7:35 Richard Weinberger
  2017-07-07  9:34 ` Richard Weinberger
  2017-07-18 22:46 ` Florian Fainelli
  0 siblings, 2 replies; 3+ messages in thread
From: Richard Weinberger @ 2017-07-06  7:35 UTC (permalink / raw)
  To: user-mode-linux-devel
  Cc: Richard Weinberger, Florian Fainelli, Jeff Dike, Thomas Gleixner,
	Ingo Molnar, H. Peter Anvin, x86, user-mode-linux-user,
	linux-kernel

When checking for PTRACE_GETRESET/SETREGSET, make sure that
the correct header file is included. We need linux/ptrace.h
which contains all ptrace UAPI related defines.
Otherwise #if defined(PTRACE_GETRESET) is always false.

Cc: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: Richard Weinberger <richard@nod.at>
---
 arch/x86/um/user-offsets.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/arch/x86/um/user-offsets.c b/arch/x86/um/user-offsets.c
index 8af0fb5d2780..ae4cd58c0c7a 100644
--- a/arch/x86/um/user-offsets.c
+++ b/arch/x86/um/user-offsets.c
@@ -5,7 +5,7 @@
 #include <sys/mman.h>
 #include <sys/user.h>
 #define __FRAME_OFFSETS
-#include <asm/ptrace.h>
+#include <linux/ptrace.h>
 #include <asm/types.h>
 
 #ifdef __i386__
-- 
2.12.3

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2017-07-18 22:46 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-07-06  7:35 [PATCH] um: Correctly check for PTRACE_GETRESET/SETREGSET Richard Weinberger
2017-07-07  9:34 ` Richard Weinberger
2017-07-18 22:46 ` Florian Fainelli

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®