Take 3... External facing interface implicitly uses current. Use
backend on parisc to clean up users in arch/parisc/kernel/ptrace.c which
act on *child. No generic CONFIG_COMPAT case, arch maintainers must add
their own (since they know best) to asm/compat.h.
diff --git a/include/asm-parisc/compat.h b/include/asm-parisc/compat.h
index 38b918f..22e3715 100644
--- a/include/asm-parisc/compat.h
+++ b/include/asm-parisc/compat.h
@@ -144,4 +144,14 @@ static __inline__ void __user *compat_al
return (void __user *)regs->gr[30];
}
+static inline int __is_compat_task(struct task_struct *t)
+{
+ return (personality(t->personality) == PER_LINUX32);
+}
+
+static inline int is_compat_task(void)
+{
+ return __is_compat_task(current);
+}
+
#endif /* _ASM_PARISC_COMPAT_H */
diff --git a/include/linux/compat.h b/include/linux/compat.h
index f9ca534..fb6f64f 100644
--- a/include/linux/compat.h
+++ b/include/linux/compat.h
@@ -161,5 +161,12 @@ int copy_siginfo_to_user32(struct compat
int get_compat_sigevent(struct sigevent *event,
const struct compat_sigevent __user *u_event);
+#else /* !CONFIG_COMPAT */
+
+static inline int is_compat_task(void)
+{
+ return 0;
+}
+
#endif /* CONFIG_COMPAT */
#endif /* _LINUX_COMPAT_H */
-
To unsubscribe from this list: send the line "unsubscribe linux-arch" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at http://vger.kernel.org/majordomo-info.html