staging/bcm: add sparse annotations
authorArnd Bergmann <arnd@arndb.de>
Thu, 30 Sep 2010 08:24:12 +0000 (10:24 +0200)
committerGreg Kroah-Hartman <gregkh@suse.de>
Tue, 5 Oct 2010 15:50:15 +0000 (08:50 -0700)
commit44a17eff844d92421c8b568c84df29735e1e45f9
tree6ee56974122f2be7cb112a25c0ce032a268f28ec
parent9f1c75ac2dba752ad3734bd3ffab805a6a3fbeda
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>
19 files changed:
drivers/staging/bcm/Adapter.h
drivers/staging/bcm/Bcmchar.c
drivers/staging/bcm/Bcmnet.c
drivers/staging/bcm/CmHost.c
drivers/staging/bcm/Debug.c
drivers/staging/bcm/HandleControlPacket.c
drivers/staging/bcm/IPv6Protocol.c
drivers/staging/bcm/InterfaceDld.c
drivers/staging/bcm/InterfaceIdleMode.c
drivers/staging/bcm/InterfaceIdleMode.h
drivers/staging/bcm/InterfaceInit.c
drivers/staging/bcm/Ioctl.h
drivers/staging/bcm/LeakyBucket.c
drivers/staging/bcm/Misc.c
drivers/staging/bcm/PHSModule.c
drivers/staging/bcm/Prototypes.h
drivers/staging/bcm/Qos.c
drivers/staging/bcm/led_control.c
drivers/staging/bcm/nvm.c