summaryrefslogtreecommitdiffstats
path: root/drivers/staging/bcm/Adapter.h
diff options
context:
space:
mode:
authorArnd Bergmann2010-09-30 10:24:12 +0200
committerGreg Kroah-Hartman2010-10-05 17:50:15 +0200
commit44a17eff844d92421c8b568c84df29735e1e45f9 (patch)
tree6ee56974122f2be7cb112a25c0ce032a268f28ec /drivers/staging/bcm/Adapter.h
parentstaging/bcm: fix most build warnings (diff)
downloadkernel-qcow2-linux-44a17eff844d92421c8b568c84df29735e1e45f9.tar.gz
kernel-qcow2-linux-44a17eff844d92421c8b568c84df29735e1e45f9.tar.xz
kernel-qcow2-linux-44a17eff844d92421c8b568c84df29735e1e45f9.zip
staging/bcm: add sparse annotations
This marks up the code where sparse complains in most cases. Most of the changes are in the ioctl handling code, which gets __user annotations, finding one unchecked user access. The rest is mostly about marking functions static when they are only used in one file. Signed-off-by: Arnd Bergmann <arnd@arndb.de> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/staging/bcm/Adapter.h')
-rw-r--r--drivers/staging/bcm/Adapter.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/staging/bcm/Adapter.h b/drivers/staging/bcm/Adapter.h
index a7c0ce9e7fa7..742ddeb798d0 100644
--- a/drivers/staging/bcm/Adapter.h
+++ b/drivers/staging/bcm/Adapter.h
@@ -652,7 +652,7 @@ typedef struct _ETH_HEADER_STRUC ETH_HEADER_STRUC, *PETH_HEADER_STRUC;
typedef struct FirmwareInfo
{
- PVOID pvMappedFirmwareAddress;
+ void __user * pvMappedFirmwareAddress;
ULONG u32FirmwareLength;
ULONG u32StartingAddress;
}__attribute__((packed)) FIRMWARE_INFO, *PFIRMWARE_INFO;