]> git.hungrycats.org Git - linux/commitdiff
[PATCH] sparse: misc headers annotations
authorAlexander Viro <viro@www.linux.org.uk>
Fri, 4 Jun 2004 00:22:05 +0000 (17:22 -0700)
committerLinus Torvalds <torvalds@ppc970.osdl.org>
Fri, 4 Jun 2004 00:22:05 +0000 (17:22 -0700)
several pointers in ioctl structures marked as userland ones.

And that's it with this patchset.  A couple more of those and we'll
be done with the noise warnings ;-)

include/linux/cdrom.h
include/linux/fd.h
include/linux/wavefront.h

index a1727a02c6df153d86fa5262dbf8c0a591f17f36..282e9b793e363fe8405474b121e068b6c7a3e42b 100644 (file)
@@ -237,9 +237,9 @@ struct cdrom_read
 struct cdrom_read_audio
 {
        union cdrom_addr addr; /* frame address */
-       __u8 addr_format;    /* CDROM_LBA or CDROM_MSF */
+       __u8 addr_format;      /* CDROM_LBA or CDROM_MSF */
        int nframes;           /* number of 2352-byte-frames to read at once */
-       __u8 *buf;           /* frame buffer (size: nframes*2352 bytes) */
+       __u8 __user *buf;      /* frame buffer (size: nframes*2352 bytes) */
 };
 
 /* This struct is used with the CDROMMULTISESSION ioctl */
index cbbd0f876585d9096cef8d3c55297ae84503064d..7ce5f01a4de2de8a0b673fe8817a7331965afc7c 100644 (file)
@@ -339,7 +339,7 @@ struct floppy_raw_cmd {
 #define FD_RAW_FAILURE 0x10000 /* command sent to fdc, fdc returned error */
 #define FD_RAW_HARDFAILURE 0x20000 /* fdc had to be reset, or timed out */
 
-       void *data;
+       void __user *data;
        char *kernel_data; /* location of data buffer in the kernel */
        struct floppy_raw_cmd *next; /* used for chaining of raw cmd's 
                                      * within the kernel */
index 746102627662762e9c70a8ed66e2e60ebb69fe2a..61bd0fd352403525d9914b736ccddf7c546166bd 100644 (file)
@@ -534,8 +534,8 @@ typedef struct wf_patch_info {
                                  WF_{GET,SET}_CHANNEL above.
 
                               */
-    wavefront_any *hdrptr;      /* user-space ptr to hdr bytes */
-    UINT16 *dataptr;            /* actual sample data */
+    wavefront_any __user *hdrptr;      /* user-space ptr to hdr bytes */
+    UINT16 __user *dataptr;            /* actual sample data */
 
     wavefront_any hdr;          /* kernel-space copy of hdr bytes */         
 } wavefront_patch_info;