* Re: [PATCH] Shut off pci_find_device warnings when the deprecated [not found] ` <20090728095552.72c41525@jbarnes-g45> @ 2009-07-29 0:16 ` Alex Chiang 2009-07-29 0:28 ` Andi Kleen 0 siblings, 1 reply; 3+ messages in thread From: Alex Chiang @ 2009-07-29 0:16 UTC (permalink / raw) To: Jesse Barnes; +Cc: Andi Kleen, linux-kernel, kernel-janitors, kernelnewbies * Jesse Barnes <jesse.barnes@intel.com>: > On Fri, 24 Jul 2009 11:41:15 +0200 > Andi Kleen <andi@firstfloor.org> wrote: > > > Shut off pci_find_device warnings when the deprecated pci functions > > are enabled. > > > > Shut off the long standing > > > > linux/drivers/pci/search.c:144: warning: 'pci_find_device' is > > deprecated (declared at linux/drivers/pci/search.c:136) > > linux/drivers/pci/search.c:144: warning: 'pci_find_device' is > > deprecated (declared at linux/drivers/pci/search.c:136) > > > > warnings that appear on every build when CONFIG_PCI_LEGACY is enabled. > > > > gcc warns for the use in EXPORT_SYMBOL > > > > I moved these to a separate file and disabled the warning in the > > Makefile for that file. > > > > Signed-off-by: Andi Kleen <ak@linux.intel.com> > > Applied to linux-next, thanks. Maybe it's too late now, but I thought those warnings were supposed to motivate people to convert old, buggy drivers to get off the deprecated interface. That's what finally motivated me to get rid of pci_find_slot() earlier... By the way, this would also be a perfect kernelnewbies/kernel janitor cleanup, as it would require actually digging into drivers and making real, substantial changes as opposed to whitespace/checkpatch/typo patches. Just a thought. /ac ^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] Shut off pci_find_device warnings when the deprecated 2009-07-29 0:16 ` [PATCH] Shut off pci_find_device warnings when the deprecated Alex Chiang @ 2009-07-29 0:28 ` Andi Kleen 2009-07-29 0:32 ` Alex Chiang 0 siblings, 1 reply; 3+ messages in thread From: Andi Kleen @ 2009-07-29 0:28 UTC (permalink / raw) To: Alex Chiang Cc: Jesse Barnes, Andi Kleen, linux-kernel, kernel-janitors, kernelnewbies > Maybe it's too late now, but I thought those warnings were > supposed to motivate people to convert old, buggy drivers to get > off the deprecated interface. Yes they are, but this warning instance was not for a old driver, but for the EXPORT_SYMBOL defining the legacy function. If any driver uses it it'll still warn. -Andi -- ak@linux.intel.com -- Speaking for myself only. ^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] Shut off pci_find_device warnings when the deprecated 2009-07-29 0:28 ` Andi Kleen @ 2009-07-29 0:32 ` Alex Chiang 0 siblings, 0 replies; 3+ messages in thread From: Alex Chiang @ 2009-07-29 0:32 UTC (permalink / raw) To: Andi Kleen; +Cc: Jesse Barnes, linux-kernel, kernel-janitors, kernelnewbies * Andi Kleen <andi@firstfloor.org>: > > Maybe it's too late now, but I thought those warnings were > > supposed to motivate people to convert old, buggy drivers to get > > off the deprecated interface. > > Yes they are, but this warning instance was not for a old driver, > but for the EXPORT_SYMBOL defining the legacy function. > > If any driver uses it it'll still warn. Ok, I've been corrected. :) I still think it would be a good learning project for someone to audit the tree and see if they can eliminate the usages of pci_find_device(). Thanks, /ac ^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2009-07-29 0:32 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <20090724094115.GA18450@basil.fritz.box>
[not found] ` <20090728095552.72c41525@jbarnes-g45>
2009-07-29 0:16 ` [PATCH] Shut off pci_find_device warnings when the deprecated Alex Chiang
2009-07-29 0:28 ` Andi Kleen
2009-07-29 0:32 ` Alex Chiang
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox