* [Patch] fbdev.c: fix a warning "unused variable"
@ 2004-07-30 7:06 Guillaume Thouvenin
0 siblings, 0 replies; only message in thread
From: Guillaume Thouvenin @ 2004-07-30 7:06 UTC (permalink / raw)
To: ajoshi; +Cc: linux-kernel
[-- Attachment #1: Type: text/plain, Size: 545 bytes --]
Hello,
When compiling file driver/video/riva/fbdev.c in Linux kernel
2.6.8-rc2-mm1, there are warnings:
CC [M] drivers/video/riva/fbdev.o
/home/guill/projects/elsa/linux-2.6.8-rc2-mm1/drivers/video/riva/fbdev.c:
In function `riva_get_EDID':
/home/guill/projects/elsa/linux-2.6.8-rc2-mm1/drivers/video/riva/fbdev.c:1867:
warning: unused variable `par'
/home/guill/projects/elsa/linux-2.6.8-rc2-mm1/drivers/video/riva/fbdev.c:1868:
warning: unused variable `i'
Here is a trivial patch to remove those warning.
Hope this help
Guillaume
[-- Attachment #2: patch-fbdev --]
[-- Type: text/plain, Size: 352 bytes --]
--- fbdev.c.orig 2004-07-30 08:43:09.017841384 +0200
+++ fbdev.c 2004-07-30 08:44:00.615997272 +0200
@@ -1864,8 +1864,10 @@ static void riva_update_default_var(stru
static void riva_get_EDID(struct fb_info *info, struct pci_dev *pdev)
{
+#ifdef CONFIG_FB_RIVA_I2C
struct riva_par *par;
int i;
+#endif
NVTRACE_ENTER();
#ifdef CONFIG_PPC_OF
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2004-07-30 7:06 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-07-30 7:06 [Patch] fbdev.c: fix a warning "unused variable" Guillaume Thouvenin
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.