login
Login
/
Register
Search
Forums
News
Blogs
Features
Site
Home
»
Mailing list archives
»
linux-kernel
»
2008
»
January
»
26
Re: [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:
Sam Ravnborg <sam@...>
To: Jeff Garzik <jeff@...>
Cc: WANG Cong <xiyou.wangcong@...>, Greg KH <gregkh@...>, LKML <linux-kernel@...>, Andrew Morton <akpm@...>
Subject:
Re: [Patch] Shut up warnings from files under drivers/
Date: Saturday, January 26, 2008 - 3:30 pm
> I checked up on the synclink.c warning.
quoted text
> We have the following code: > > static void synclink_remove_one (struct pci_dev *dev); > > ... > > static struct pci_driver synclink_pci_driver = { > .remove = __devexit_p(synclink_remove_one), > }; > > ... > > static void __devexit synclink_remove_one (struct pci_dev *dev) > { > } > > And I double checked the preprocessed source to check > that we applied the __attribute__((__used__)) to the function. > > Investigating a bit more I realized that gcc looses the > __used__ attribution due to the prototype. > So there are two correct fixes: > a) move the function up so we do not need the forward > declaration > b) add a __devexit to the forward decalration too. > > I strongly prefer the first version and this is the > correct fix for these cases. > > Do we have a gcc bug here - I did not see a definitive answer in gcc docs?
I have reported it now - follow:
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=34985
Sam --
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
:
Tarkan Erimer
Re: Dual-Licensing Linux Kernel with GPL V2 and GPL V3
Greg Kroah-Hartman
[PATCH 004/196] Chinese: add translation of SubmittingPatches
Justin Piszcz
exception Emask 0x0 SAct 0x1 / SErr 0x0 action 0x2 frozen
Heiko Carstens
Re: -mm merge plans for 2.6.23 -- sys_fallocate
git
:
linux-netdev
:
David Miller
[GIT]: Networking
Gerrit Renker
[PATCH 27/37] dccp: Integration of dynamic feature activation - part 2 (server side)
Frans Pop
svc: failed to register lockdv1 RPC service (errno 97).
Radu Rendec
htb parallelism on multi-core platforms
openbsd-misc
:
Colocation donated by:
Who's online
There are currently
6 users
and
945 guests
online.
Online users
pavan6754
blackra1nx837
zeekec
puntmuts
rollercoaster
weddingvideo
Syndicate