summaryrefslogtreecommitdiff
path: root/drivers/staging
diff options
context:
space:
mode:
authorGreg Kroah-Hartman <gregkh@suse.de>2009-06-04 01:47:21 +0400
committerGreg Kroah-Hartman <gregkh@suse.de>2009-06-19 22:00:57 +0400
commit4b6a4856c6b6e3bb7839b15296712627b7a37208 (patch)
treeb4d16d7febff9ab770f6313f0a2852957c21518d /drivers/staging
parentf05e0575ed334a23dad91b8f6ed0ac42a3996b8d (diff)
downloadlinux-4b6a4856c6b6e3bb7839b15296712627b7a37208.tar.xz
Staging: udlfb: fix some sparse warnings.
There are others remaining due to the __iomem namespace of the framebuffer data pointer. Cc: Roberto De Ioris <roberto@unbit.it> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/staging')
-rw-r--r--drivers/staging/udlfb/udlfb.c6
-rw-r--r--drivers/staging/udlfb/udlfb.h8
2 files changed, 7 insertions, 7 deletions
diff --git a/drivers/staging/udlfb/udlfb.c b/drivers/staging/udlfb/udlfb.c
index 45b8ae7882de..08165997f803 100644
--- a/drivers/staging/udlfb/udlfb.c
+++ b/drivers/staging/udlfb/udlfb.c
@@ -422,7 +422,7 @@ copyarea(struct dlfb_data *dev_info, int dx, int dy, int sx, int sy,
return 1;
}
-void dlfb_copyarea(struct fb_info *info, const struct fb_copyarea *area)
+static void dlfb_copyarea(struct fb_info *info, const struct fb_copyarea *area)
{
struct dlfb_data *dev = info->par;
@@ -434,7 +434,7 @@ void dlfb_copyarea(struct fb_info *info, const struct fb_copyarea *area)
}
-void dlfb_imageblit(struct fb_info *info, const struct fb_image *image)
+static void dlfb_imageblit(struct fb_info *info, const struct fb_image *image)
{
int ret;
@@ -447,7 +447,7 @@ void dlfb_imageblit(struct fb_info *info, const struct fb_image *image)
/* printk("IMAGE BLIT (2) %d %d %d %d DEPTH %d {%p} %d!!!\n", image->dx, image->dy, image->width, image->height, image->depth, dev->udev, ret); */
}
-void dlfb_fillrect(struct fb_info *info, const struct fb_fillrect *region)
+static void dlfb_fillrect(struct fb_info *info, const struct fb_fillrect *region)
{
unsigned char red, green, blue;
diff --git a/drivers/staging/udlfb/udlfb.h b/drivers/staging/udlfb/udlfb.h
index 70a165b46e54..f69b1c586c16 100644
--- a/drivers/staging/udlfb/udlfb.h
+++ b/drivers/staging/udlfb/udlfb.h
@@ -40,7 +40,7 @@ struct dlfb_video_mode {
uint8_t unknown3[4];
} __attribute__ ((__packed__));
-struct dlfb_video_mode dlfb_video_modes[MAX_VMODES];
+static struct dlfb_video_mode dlfb_video_modes[MAX_VMODES];
static void dlfb_bulk_callback(struct urb *urb)
{
@@ -66,7 +66,7 @@ static int dlfb_bulk_msg(struct dlfb_data *dev_info, int len)
return dev_info->tx_urb->actual_length;
}
-void dlfb_init_modes(void)
+static void dlfb_init_modes(void)
{
dlfb_video_modes[0].col = 0;
memcpy(&dlfb_video_modes[0].hclock, "\x20\x3C\x7A\xC9", 4);
@@ -105,7 +105,7 @@ void dlfb_init_modes(void)
memcpy(&dlfb_video_modes[3].unknown3, "\x04\x02\x1E\x5F", 4);
}
-char *dlfb_set_register(char *bufptr, uint8_t reg, uint8_t val)
+static char *dlfb_set_register(char *bufptr, uint8_t reg, uint8_t val)
{
*bufptr++ = 0xAF;
*bufptr++ = 0x20;
@@ -115,7 +115,7 @@ char *dlfb_set_register(char *bufptr, uint8_t reg, uint8_t val)
return bufptr;
}
-int dlfb_set_video_mode(struct dlfb_data *dev_info, int width, int height)
+static int dlfb_set_video_mode(struct dlfb_data *dev_info, int width, int height)
{
int i, ret;
unsigned char j;