summaryrefslogtreecommitdiffstats
path: root/drivers/video/smscufx.c
diff options
context:
space:
mode:
authorH Hartley Sweeten <hartleys@visionengravers.com>2012-05-02 17:17:23 -0700
committerFlorian Tobias Schandinat <FlorianSchandinat@gmx.de>2012-05-08 16:56:55 +0000
commit35f3ec1c224b823811e66450b1323eaabc11e982 (patch)
tree5c24766b0bb84fc7be5fa4267dfd721a590df0b3 /drivers/video/smscufx.c
parent2293d620bef6cc76760d1790b93c8c100b1b872a (diff)
downloadop-kernel-dev-35f3ec1c224b823811e66450b1323eaabc11e982.zip
op-kernel-dev-35f3ec1c224b823811e66450b1323eaabc11e982.tar.gz
video: smscufx.c: local functions should not be exposed globally
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>
Diffstat (limited to 'drivers/video/smscufx.c')
-rw-r--r--drivers/video/smscufx.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/video/smscufx.c b/drivers/video/smscufx.c
index 9985785..af3ef27 100644
--- a/drivers/video/smscufx.c
+++ b/drivers/video/smscufx.c
@@ -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);
OpenPOWER on IntegriCloud