All of lore.kernel.org
 help / color / mirror / Atom feed
From: Guillaume Thouvenin <guillaume.thouvenin@bull.net>
To: ajoshi@shell.unixbox.com
Cc: linux-kernel@vger.kernel.org
Subject: [Patch] fbdev.c: fix a warning "unused variable"
Date: Fri, 30 Jul 2004 09:06:54 +0200	[thread overview]
Message-ID: <4109F38E.8010507@bull.net> (raw)

[-- 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

                 reply	other threads:[~2004-07-30  7:06 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4109F38E.8010507@bull.net \
    --to=guillaume.thouvenin@bull.net \
    --cc=ajoshi@shell.unixbox.com \
    --cc=linux-kernel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.