[Patch] fbdev.c: fix a warning "unused variable"
From: Guillaume Thouvenin (guillaume.thouvenin_at_bull.net)
Date: 07/30/04
- Previous message: Daniel Caujolle-Bert: "Re: [ck] Re: 2.6.7-ck6"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Fri, 30 Jul 2004 09:06:54 +0200 To: ajoshi@shell.unixbox.com
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
--- 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
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
- Previous message: Daniel Caujolle-Bert: "Re: [ck] Re: 2.6.7-ck6"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
- Re: Possible dcache BUG
... During the compile, the above line output this warning: ... Copyright
2004 by Maurice Eugene Heskett, ... send the line "unsubscribe linux-kernel" in
... (Linux-Kernel) - PROBLEM: make menuconfig command with kernel 2.6.4
... Is this a problem of my system or a kernel/compiler bug?! ... Here the output
of my bash: ... scripts/basic/fixdep.c:193: warning: unused variable `s' ...
send the line "unsubscribe linux-kernel" in ... (Linux-Kernel) - Re: + shut-up-warnings-in-ipc-shmc.patch added to -mm tree
... > warning. ... I'm with Matt on the typechecking here, and at first
liked his proposal; ... they're turning out to be real pigs instead. ... send the
line "unsubscribe linux-kernel" in ... (Linux-Kernel) - Re: question about module and undeinfed symbols.
... I think the problem is isolated, I notices that System.map doesnt ... A warning
appear during kernel compilation, ... parameter names in function declaration ...
send the line "unsubscribe linux-kernel" in ... (Linux-Kernel) - Re: 2.6.12-rc5-mm1 - missing #define SECTIONS_SHIFT in sparsemem
... > define when SPARSEMEM is off. ... You only see the warning if you
add ... I'll send the .config privately in a separate message. ... send the line
"unsubscribe linux-kernel" in ... (Linux-Kernel)