* [PATCH] arch/i386/kernel/signal.o: sparse: cast remove address space ...
@ 2005-01-16 20:36 Sam Ravnborg
0 siblings, 0 replies; only message in thread
From: Sam Ravnborg @ 2005-01-16 20:36 UTC (permalink / raw)
To: linux-kernel, Linus Torvalds
Fix sparse warning: cast removes address space of expression
Fixed by declaring relevant pointers in sigframe and rt_sigframe as
__user.
This fixes several sparse warnings in arch/i386/kernel/signal.c
Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
---
===== arch/i386/kernel/sigframe.h 1.1 vs edited =====
--- 1.1/arch/i386/kernel/sigframe.h 2003-05-04 07:45:16 +02:00
+++ edited/arch/i386/kernel/sigframe.h 2005-01-16 21:29:47 +01:00
@@ -1,6 +1,6 @@
struct sigframe
{
- char *pretcode;
+ char __user *pretcode;
int sig;
struct sigcontext sc;
struct _fpstate fpstate;
@@ -10,10 +10,10 @@
struct rt_sigframe
{
- char *pretcode;
+ char __user *pretcode;
int sig;
- struct siginfo *pinfo;
- void *puc;
+ struct siginfo __user *pinfo;
+ void __user *puc;
struct siginfo info;
struct ucontext uc;
struct _fpstate fpstate;
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2005-01-16 20:37 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-01-16 20:36 [PATCH] arch/i386/kernel/signal.o: sparse: cast remove address space Sam Ravnborg
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®