Skip to content

Commit

Permalink
video: smscufx.c: local functions should not be exposed globally
Browse files Browse the repository at this point in the history
Functions not referenced outside of a source file should be marked
static to prevent them from being exposed globally.

Quiets the sparse warnings:

warning: symbol 'ufx_handle_damage' was not declared. Should it be static?

Signed-off-by: H Hartley Sweeten <hsweeten@visionengravers.com>
Cc: Steve Glendinning <steve.glendinning@smsc.com>
Signed-off-by: Florian Tobias Schandinat <FlorianSchandinat@gmx.de>
  • Loading branch information
H Hartley Sweeten authored and Florian Tobias Schandinat committed May 8, 2012
1 parent 2293d62 commit 35f3ec1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/video/smscufx.c
Original file line number Diff line number Diff line change
Expand Up @@ -846,7 +846,7 @@ static void ufx_raw_rect(struct ufx_data *dev, u16 *cmd, int x, int y,
}
}

int ufx_handle_damage(struct ufx_data *dev, int x, int y,
static int ufx_handle_damage(struct ufx_data *dev, int x, int y,
int width, int height)
{
size_t packed_line_len = ALIGN((width * 2), 4);
Expand Down

0 comments on commit 35f3ec1

Please sign in to comment.