Skip to content

Commit

Permalink
Staging: dt3155: make local functions static
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
H Hartley Sweeten authored and Greg Kroah-Hartman committed Jul 26, 2010
1 parent 968181c commit 09d1485
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drivers/staging/dt3155/dt3155_isr.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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
Expand Down

0 comments on commit 09d1485

Please sign in to comment.