diff options
| author | Alexander Viro <viro@www.linux.org.uk> | 2004-07-11 19:08:51 -0700 |
|---|---|---|
| committer | Linus Torvalds <torvalds@ppc970.osdl.org> | 2004-07-11 19:08:51 -0700 |
| commit | 2b20624f29169ae8711abce24baf2e1e1f2f1a0e (patch) | |
| tree | 442cafaf8a6fdb1954367e427aeb90950443752e /include/linux | |
| parent | 80e341d226a6f10dc1d3f5ba996dbcd222c7a39c (diff) | |
[PATCH] sparse: ISDN ->readstat() and ->writecmd() annotation
->readstat() and ->writecmd() are always getting a userland pointer;
marked argument as such, killed "user" flag, killed dead code.
Diffstat (limited to 'include/linux')
| -rw-r--r-- | include/linux/isdnif.h | 12 |
1 files changed, 2 insertions, 10 deletions
diff --git a/include/linux/isdnif.h b/include/linux/isdnif.h index 823e516b14a2..7a4eacd77cb2 100644 --- a/include/linux/isdnif.h +++ b/include/linux/isdnif.h @@ -502,26 +502,18 @@ typedef struct { * Parameters: * u_char pointer data * int length of data - * int Flag: 0 = Call form Kernel-Space (use memcpy, - * no schedule allowed) - * 1 = Data is in User-Space (use memcpy_fromfs, - * may schedule) * int driverId * int local channel-number (0 ...) */ - int (*writecmd)(const u_char*, int, int, int, int); + int (*writecmd)(const u_char __user *, int, int, int); /* Read raw Status replies * u_char pointer data (volatile) * int length of buffer - * int Flag: 0 = Call form Kernel-Space (use memcpy, - * no schedule allowed) - * 1 = Data is in User-Space (use memcpy_fromfs, - * may schedule) * int driverId * int local channel-number (0 ...) */ - int (*readstat)(u_char*, int, int, int, int); + int (*readstat)(u_char __user *, int, int, int); char id[20]; } isdn_if; |
