summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMiguel Gómez <magomez@igalia.com>2012-06-18 15:12:05 +0400
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2012-06-19 04:20:21 +0400
commite054102b9fee7ef8cd1a10a8a6474f566e1c5631 (patch)
treec7a3759d34dc7f8f274640110802397709baaf8f
parent448810662ac3ba1c93c23a352a46d1f523f0b0f6 (diff)
downloadlinux-e054102b9fee7ef8cd1a10a8a6474f566e1c5631.tar.xz
Staging: xgifb: Fix sparse warnings.
Add include files with function definitions to avoid sparse warnings. Signed-off-by: Miguel Gómez <magomez@igalia.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
-rw-r--r--drivers/staging/xgifb/vb_init.c1
-rw-r--r--drivers/staging/xgifb/vb_setmode.c2
-rw-r--r--drivers/staging/xgifb/vb_util.c1
3 files changed, 3 insertions, 1 deletions
diff --git a/drivers/staging/xgifb/vb_init.c b/drivers/staging/xgifb/vb_init.c
index 64d13117485a..143957f82d6a 100644
--- a/drivers/staging/xgifb/vb_init.c
+++ b/drivers/staging/xgifb/vb_init.c
@@ -5,6 +5,7 @@
#include "vb_def.h"
#include "vb_util.h"
#include "vb_setmode.h"
+#include "vb_init.h"
static const unsigned short XGINew_DDRDRAM_TYPE340[4][2] = {
{ 16, 0x45},
{ 8, 0x35},
diff --git a/drivers/staging/xgifb/vb_setmode.c b/drivers/staging/xgifb/vb_setmode.c
index b1713d389794..479362eacb4f 100644
--- a/drivers/staging/xgifb/vb_setmode.c
+++ b/drivers/staging/xgifb/vb_setmode.c
@@ -4,7 +4,7 @@
#include "vb_def.h"
#include "vb_util.h"
#include "vb_table.h"
-
+#include "vb_setmode.h"
#define IndexMask 0xff
#define TVCLKBASE_315_25 (TVCLKBASE_315 + 25)
diff --git a/drivers/staging/xgifb/vb_util.c b/drivers/staging/xgifb/vb_util.c
index 5c93a2202bd0..1b452f8b6274 100644
--- a/drivers/staging/xgifb/vb_util.c
+++ b/drivers/staging/xgifb/vb_util.c
@@ -1,4 +1,5 @@
#include "vgatypes.h"
+#include "vb_util.h"
void xgifb_reg_set(unsigned long port, u8 index, u8 data)
{