summaryrefslogtreecommitdiffstats
path: root/drivers/tty/vt
diff options
context:
space:
mode:
authorLad, Prabhakar <prabhakar.csengg@gmail.com>2015-02-04 18:18:03 +0000
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2015-03-07 04:02:26 +0100
commit678afb9aa8cf2002160c1a56cef5c90df6dc285e (patch)
tree103ec8bc34e5a45140c126158410fc72e9e65438 /drivers/tty/vt
parent4c0d9b17d1c0608bbbef6d00e68956de2c3b1f8e (diff)
downloadlinux-678afb9aa8cf2002160c1a56cef5c90df6dc285e.tar.bz2
tty: vt/vt: fix sparse warning
this patch fixes following sparse warning: vt.c:1240:12: warning: symbol 'rgb_from_256' was not declared. Should it be static? Signed-off-by: Lad, Prabhakar <prabhakar.csengg@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/tty/vt')
-rw-r--r--drivers/tty/vt/vt.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/tty/vt/vt.c b/drivers/tty/vt/vt.c
index 6e00572cbeb9..57ed647658be 100644
--- a/drivers/tty/vt/vt.c
+++ b/drivers/tty/vt/vt.c
@@ -1237,7 +1237,7 @@ static void default_attr(struct vc_data *vc)
struct rgb { u8 r; u8 g; u8 b; };
-struct rgb rgb_from_256(int i)
+static struct rgb rgb_from_256(int i)
{
struct rgb c;
if (i < 8) { /* Standard colours. */