Home Home > GIT Browse
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexander Viro <viro@parcelfarce.linux.theplanet.co.uk>2005-02-10 03:03:40 -0800
committerDavid S. Miller <davem@nuts.davemloft.net>2005-02-10 03:03:40 -0800
commitf559894389c1113106f59cdd13505569c845c57a (patch)
tree8101afb883bf0841928e841c43b3f2b2c85d2306
parentf3ac72a352f400232d400672f0fc85cba6805194 (diff)
[SPARC]: Trivial annotations in sparc signal.c / svr4.h
Signed-off-by: David S. Miller <davem@davemloft.net>
-rw-r--r--arch/sparc/kernel/signal.c4
-rw-r--r--include/asm-sparc/svr4.h6
2 files changed, 5 insertions, 5 deletions
diff --git a/arch/sparc/kernel/signal.c b/arch/sparc/kernel/signal.c
index 203728dc64cd..ec74a93e6555 100644
--- a/arch/sparc/kernel/signal.c
+++ b/arch/sparc/kernel/signal.c
@@ -535,7 +535,7 @@ setup_frame(struct sigaction *sa, struct pt_regs *regs, int signr, sigset_t *old
sig_address = NULL;
}
}
- err |= __put_user((long)sig_address, &sframep->sig_address);
+ err |= __put_user((unsigned long)sig_address, &sframep->sig_address);
err |= __put_user(sig_code, &sframep->sig_code);
err |= __put_user(sc, &sframep->sig_scptr);
if (err)
@@ -832,7 +832,7 @@ setup_svr4_frame(struct sigaction *sa, unsigned long pc, unsigned long npc,
* to flush the user windows.
*/
for (window = 0; window < tp->w_saved; window++) {
- err |= __put_user((int *) &(gw->win[window]), &gw->winptr[window]);
+ err |= __put_user((int __user *) &(gw->win[window]), &gw->winptr[window]);
err |= __copy_to_user(&gw->win[window],
&tp->reg_window[window],
sizeof(svr4_rwindow_t));
diff --git a/include/asm-sparc/svr4.h b/include/asm-sparc/svr4.h
index 331157291e07..da1f1c980e2d 100644
--- a/include/asm-sparc/svr4.h
+++ b/include/asm-sparc/svr4.h
@@ -49,7 +49,7 @@ typedef struct {
typedef struct {
int count;
- int *winptr [SVR4_MAXWIN]; /* pointer to the windows */
+ int __user *winptr [SVR4_MAXWIN]; /* pointer to the windows */
svr4_rwindow_t win[SVR4_MAXWIN]; /* the windows */
} svr4_gwindows_t;
@@ -72,7 +72,7 @@ typedef struct {
/* Machine dependent context */
typedef struct {
svr4_gregset_t greg; /* registers 0..19 (see top) */
- svr4_gwindows_t *gwin; /* may point to register windows */
+ svr4_gwindows_t __user *gwin; /* may point to register windows */
svr4_fregset_t freg; /* floating point registers */
svr4_xrs_t xrs; /* mhm? */
long pad[19];
@@ -86,7 +86,7 @@ enum svr4_stack_flags {
/* signal stack exection place, unsupported */
typedef struct svr4_stack_t {
- char *sp;
+ char __user *sp;
int size;
int flags;
} svr4_stack_t;