From: Greg KH <greg@kroah.com>
To: linux-kernel@vger.kernel.org
Subject: Re: [PATCH] PCI fixes for 2.6.0-test3
Date: Thu, 21 Aug 2003 10:31:11 -0700 [thread overview]
Message-ID: <10614870711746@kroah.com> (raw)
In-Reply-To: <10614870703478@kroah.com>
ChangeSet 1.1285.1.6, 2003/08/21 10:07:11-07:00, greg@kroah.com
PCI: added the pci_pretty_name() macro to pci.h as 2 arches already had it.
arch/alpha/kernel/sys_marvel.c | 7 -------
arch/x86_64/kernel/pci-gart.c | 6 ------
include/linux/pci.h | 7 +++++++
3 files changed, 7 insertions(+), 13 deletions(-)
diff -Nru a/arch/alpha/kernel/sys_marvel.c b/arch/alpha/kernel/sys_marvel.c
--- a/arch/alpha/kernel/sys_marvel.c Thu Aug 21 10:20:18 2003
+++ b/arch/alpha/kernel/sys_marvel.c Thu Aug 21 10:20:18 2003
@@ -33,13 +33,6 @@
# error NR_IRQS < MARVEL_NR_IRQS !!!
#endif
-/* ??? Should probably be generic. */
-#ifdef CONFIG_PCI_NAMES
-#define pci_pretty_name(x) ((x)->pretty_name)
-#else
-#define pci_pretty_name(x) ""
-#endif
-
\f
/*
* Interrupt handling.
diff -Nru a/arch/x86_64/kernel/pci-gart.c b/arch/x86_64/kernel/pci-gart.c
--- a/arch/x86_64/kernel/pci-gart.c Thu Aug 21 10:20:18 2003
+++ b/arch/x86_64/kernel/pci-gart.c Thu Aug 21 10:20:18 2003
@@ -31,12 +31,6 @@
#include <asm/kdebug.h>
#include <asm/proto.h>
-#ifdef CONFIG_PCI_NAMES
-#define pci_pretty_name(dev) ((dev)->pretty_name)
-#else
-#define pci_pretty_name(dev) ""
-#endif
-
dma_addr_t bad_dma_address;
unsigned long iommu_bus_base; /* GART remapping area (physical) */
diff -Nru a/include/linux/pci.h b/include/linux/pci.h
--- a/include/linux/pci.h Thu Aug 21 10:20:18 2003
+++ b/include/linux/pci.h Thu Aug 21 10:20:18 2003
@@ -842,6 +842,13 @@
return pdev->dev.bus_id;
}
+/* Some archs want to see the pretty pci name, so use this macro */
+#ifdef CONFIG_PCI_NAMES
+#define pci_pretty_name(dev) ((dev)->pretty_name)
+#else
+#define pci_pretty_name(dev) ""
+#endif
+
/*
* The world is not perfect and supplies us with broken PCI devices.
* For at least a part of these bugs we need a work-around, so both
prev parent reply other threads:[~2003-08-21 17:33 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-08-21 17:29 [BK PATCH] PCI fixes for 2.6.0-test3 Greg KH
2003-08-21 17:31 ` [PATCH] " Greg KH
2003-08-21 17:31 ` Greg KH
2003-08-21 17:31 ` Greg KH
2003-08-21 17:31 ` Greg KH
2003-08-21 17:31 ` Greg KH
2003-08-21 17:31 ` Greg KH
2003-08-21 17:31 ` Greg KH
2003-08-21 17:31 ` Greg KH
2003-08-21 17:31 ` Greg KH [this message]
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=10614870711746@kroah.com \
--to=greg@kroah.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox