summaryrefslogtreecommitdiffstats
path: root/drivers/staging/bcm/LeakyBucket.c
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/LeakyBucket.c
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/LeakyBucket.c')
-rw-r--r--drivers/staging/bcm/LeakyBucket.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/staging/bcm/LeakyBucket.c b/drivers/staging/bcm/LeakyBucket.c
index b4079384c396..cae382313ce9 100644
--- a/drivers/staging/bcm/LeakyBucket.c
+++ b/drivers/staging/bcm/LeakyBucket.c
@@ -15,7 +15,7 @@
* Returns - None
**********************************************************************/
-VOID UpdateTokenCount(register PMINI_ADAPTER Adapter)
+static VOID UpdateTokenCount(register PMINI_ADAPTER Adapter)
{
ULONG liCurrentTime;
INT i = 0;