login
Login
/
Register
Search
Forums
News
Blogs
Features
Site
Home
»
Mailing list archives
»
linux-kernel
»
2008
»
January
»
27
Re: (Updated) [Patch] Shut up warnings from files under drivers/
view
thread
!MAILaRCHIVE_VOTE_RePLACE
Previous message: [
thread
] [
date
] [
author
]
Next message: [
thread
] [
date
] [
author
]
[view in full thread]
From:
Jiri Slaby <jirislaby@...>
To: WANG Cong <xiyou.wangcong@...>
Cc: Sam Ravnborg <sam@...>, Jeff Garzik <jeff@...>, Greg KH <gregkh@...>, LKML <linux-kernel@...>, Andrew Morton <akpm@...>
Subject:
Re: (Updated) [Patch] Shut up warnings from files under drivers/
Date: Sunday, January 27, 2008 - 5:08 am
On 01/27/2008 05:15 AM, WANG Cong wrote:
quoted text
> Fix defined-but-not-used warnings from files under drivers/, > such as: > > drivers/char/applicom.c:68: warning: ‘applicom_pci_tbl’ defined but not used > > Compile tests passed. > > Cc: Jeff Garzik <jeff@garzik.org> > Cc: Greg KH <gregkh@suse.de> > Cc: Sam Ravnborg <sam@ravnborg.org> > Signed-off-by: WANG Cong <xiyou.wangcong@gmail.com> > > --- > > diff --git a/drivers/char/applicom.c b/drivers/char/applicom.c > index 1f0b752..97171ad 100644 > --- a/drivers/char/applicom.c > +++ b/drivers/char/applicom.c > @@ -65,7 +65,7 @@ static char *applicom_pci_devnames[] = { > "PCI2000PFB" > }; > > -static struct pci_device_id applicom_pci_tbl[] = { > +static struct pci_device_id applicom_pci_tbl[] __used = { > { PCI_VENDOR_ID_APPLICOM, PCI_DEVICE_ID_APPLICOM_PCIGENERIC, > PCI_ANY_ID, PCI_ANY_ID, 0, 0, 0 }, > { PCI_VENDOR_ID_APPLICOM, PCI_DEVICE_ID_APPLICOM_PCI2000IBS_CAN,
I have probably a better fix with pci_match_id() referencing this array. --
unsubscribe notice
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: [
thread
] [
date
] [
author
]
Next message: [
thread
] [
date
] [
author
]
Messages in current thread:
[Patch] Shut up warnings from files under drivers/
, WANG Cong
, (Sat Jan 26, 5:30 am)
Re: [Patch] Shut up warnings from files under drivers/
, Sam Ravnborg
, (Sat Jan 26, 5:57 am)
Re: [Patch] Shut up warnings from files under drivers/
, Sam Ravnborg
, (Sat Jan 26, 6:21 am)
Re: [Patch] Shut up warnings from files under drivers/
, WANG Cong
, (Sat Jan 26, 6:26 am)
Re: [Patch] Shut up warnings from files under drivers/
, WANG Cong
, (Sat Jan 26, 6:15 am)
Re: [Patch] Shut up warnings from files under drivers/
, Jeff Garzik
, (Sat Jan 26, 5:55 am)
Re: [Patch] Shut up warnings from files under drivers/
, Sam Ravnborg
, (Sat Jan 26, 3:17 pm)
(Updated) [Patch] Shut up warnings from files under drivers/
, WANG Cong
, (Sun Jan 27, 12:15 am)
Re: (Updated) [Patch] Shut up warnings from files under driv...
, Sam Ravnborg
, (Sun Jan 27, 5:21 am)
(Try#3) [Patch] Shut up warnings from files under drivers/
, WANG Cong
, (Mon Jan 28, 1:49 am)
[PATCH 2/2] Char: applicom, use pci_match_id
, Jiri Slaby
, (Wed Jan 30, 7:13 am)
Re: [PATCH 2/2] Char: applicom, use pci_match_id
, Andrew Morton
, (Wed Jan 30, 7:10 pm)
Re: [PATCH 2/2] Char: applicom, use pci_match_id
, Jiri Slaby
, (Thu Jan 31, 5:26 am)
[PATCH 1/2] Char: applicom, use pci_resource_start
, Jiri Slaby
, (Wed Jan 30, 7:13 am)
Re: (Updated) [Patch] Shut up warnings from files under driv...
, Jiri Slaby
, (Sun Jan 27, 5:08 am)
Re: (Updated) [Patch] Shut up warnings from files under driv...
, Jiri Slaby
, (Sun Jan 27, 5:21 am)
Re: (Updated) [Patch] Shut up warnings from files under driv...
, WANG Cong
, (Mon Jan 28, 1:20 am)
Re: [Patch] Shut up warnings from files under drivers/
, WANG Cong
, (Sat Jan 26, 10:50 pm)
Re: [Patch] Shut up warnings from files under drivers/
, Sam Ravnborg
, (Sat Jan 26, 3:30 pm)
Re: [Patch] Shut up warnings from files under drivers/
, WANG Cong
, (Sat Jan 26, 6:18 am)
Re: [Patch] Shut up warnings from files under drivers/
, Jeff Garzik
, (Sat Jan 26, 7:44 am)
Navigation
Create content
Mailing list archives
Recent posts
Popular discussions
linux-kernel
:
david
Re: Dual-Licensing Linux Kernel with GPL V2 and GPL V3
Andrew Morton
-mm merge plans for 2.6.23
Greg Kroah-Hartman
[PATCH 025/196] paride: Convert from class_device to device for block/paride
Henrique de Moraes Holschuh
[RFC] rfkill class rework
git
:
linux-netdev
:
Gerrit Renker
[PATCH 05/37] dccp: Cleanup routines for feature negotiation
Jarek Poplawski
Re: [PATCH] pkt_sched: Destroy gen estimators under rtnl_lock().
Johann Baudy
Packet mmap: TX RING and zero copy
David Miller
[GIT]: Networking
openbsd-misc
:
Colocation donated by:
Who's online
There are currently
5 users
and
777 guests
online.
Online users
zeekec
elfraggy84
babysman
bubbajox
marcellaiyitor2
Syndicate