summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorH Hartley Sweeten <hartleys@visionengravers.com>2010-07-23 11:49:25 -0700
committerGreg Kroah-Hartman <gregkh@suse.de>2010-07-26 15:34:44 -0700
commit09d1485649a46fda2c5f76b9c870d820d4d8d029 (patch)
treeb5e23ddebe4aa867e556434dd2bafa8ede0c9993
parent968181ca7e679be70bd50b82665e1f369a856ec7 (diff)
downloadlinux-stable-09d1485649a46fda2c5f76b9c870d820d4d8d029.tar.gz
linux-stable-09d1485649a46fda2c5f76b9c870d820d4d8d029.tar.bz2
linux-stable-09d1485649a46fda2c5f76b9c870d820d4d8d029.zip
Staging: dt3155: make local functions static
The functions adjust_4MB and allocate_buffers are only called locally in dt3155_isr.c and should be static. Signed-off-by: H Hartley Sweeten <hsweeten@visionengravers.com> Cc: Scott Smedley <ss@aao.gov.au> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
-rw-r--r--drivers/staging/dt3155/dt3155_isr.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/staging/dt3155/dt3155_isr.c b/drivers/staging/dt3155/dt3155_isr.c
index 549186f41f27..1e91e6c54286 100644
--- a/drivers/staging/dt3155/dt3155_isr.c
+++ b/drivers/staging/dt3155/dt3155_isr.c
@@ -180,7 +180,7 @@ void printques(struct dt3155_fbuffer *fb)
* the start address up to the beginning of the
* next 4MB chunk (assuming bufsize < 4MB).
*****************************************************/
-u32 adjust_4MB(u32 buf_addr, u32 bufsize)
+static u32 adjust_4MB(u32 buf_addr, u32 bufsize)
{
if (((buf_addr+bufsize) & UPPER_10_BITS) != (buf_addr & UPPER_10_BITS))
return (buf_addr+bufsize) & UPPER_10_BITS;
@@ -196,7 +196,7 @@ u32 adjust_4MB(u32 buf_addr, u32 bufsize)
* buffers. If there is not enough free space
* try for less memory.
*****************************************************/
-void allocate_buffers(u32 *buf_addr, u32* total_size_kbs,
+static void allocate_buffers(u32 *buf_addr, u32* total_size_kbs,
u32 bufsize)
{
/* Compute the minimum amount of memory guaranteed to hold all