public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [RFC] pci_name()
@ 2003-06-25 23:35 Matthew Wilcox
  2003-06-26  0:21 ` Jeff Garzik
                   ` (2 more replies)
  0 siblings, 3 replies; 9+ messages in thread
From: Matthew Wilcox @ 2003-06-25 23:35 UTC (permalink / raw)
  To: Greg KH, linux-pci; +Cc: linux-kernel


I'd kind of like to get rid of pci_dev->slot_name.  It's redundant with
pci_dev->dev.bus_id, but that's one hell of a search and replace job.
So let me propose pci_name(pci_dev) as a replacement.  That has the
benefit of being shorter than either of the others and lets us do fun
& interesting things later (maybe construct it on the fly for systems
that want to save 20 bytes per device?).  We can transition it in over
2.5/2.6/2.7 and kill pci_dev->slot_name for 2.8.

Oh, and without killing slot_name immediately, we can save 4 bytes on
32-bit platforms by turning it into a pointer to the dev.bus_id.

Comments?

-- 
"It's not Hollywood.  War is real, war is primarily not about defeat or
victory, it is about death.  I've seen thousands and thousands of dead bodies.
Do you think I want to have an academic debate on this subject?" -- Robert Fisk

^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2003-06-26 11:06 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-06-25 23:35 [RFC] pci_name() Matthew Wilcox
2003-06-26  0:21 ` Jeff Garzik
2003-06-26  0:36 ` Greg KH
2003-06-26  0:53   ` Matthew Wilcox
2003-06-26  1:02     ` Greg KH
2003-06-26  2:50       ` Matthew Wilcox
2003-06-26  2:52         ` Matthew Wilcox
2003-06-26 11:20         ` Matthew Wilcox
2003-06-26  1:09 ` Anton Blanchard

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox