From: Domen Puncer <domen@coderock.org>
To: linuxppc-embedded@ozlabs.org
Subject: [PATCH] enable compile on !CONFIG_PCI and CONFIG_PPC_EFIKA
Date: Tue, 1 May 2007 21:37:27 +0200 [thread overview]
Message-ID: <20070501193727.GA2822@nd47.coderock.org> (raw)
Trivial fix to enable compile on !CONFIG_PCI and CONFIG_PPC_EFIKA
Signed-off-by: Domen Puncer <domen.puncer@telargo.com>
---
Used in arch/powerpc/platforms/52xx/efika.c by
define_machine(efika) { .phys_mem_access_prot = }
include/asm-powerpc/pci.h | 4 ++++
1 file changed, 4 insertions(+)
Index: grant.git/include/asm-powerpc/pci.h
===================================================================
--- grant.git.orig/include/asm-powerpc/pci.h
+++ grant.git/include/asm-powerpc/pci.h
@@ -240,10 +240,14 @@ extern int pci_read_irq_line(struct pci_
extern void pcibios_add_platform_entries(struct pci_dev *dev);
struct file;
+#ifdef CONFIG_PCI
extern pgprot_t pci_phys_mem_access_prot(struct file *file,
unsigned long pfn,
unsigned long size,
pgprot_t prot);
+#else
+#define pci_phys_mem_access_prot NULL
+#endif
#define HAVE_ARCH_PCI_RESOURCE_TO_USER
extern void pci_resource_to_user(const struct pci_dev *dev, int bar,
reply other threads:[~2007-05-01 19:55 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=20070501193727.GA2822@nd47.coderock.org \
--to=domen@coderock.org \
--cc=linuxppc-embedded@ozlabs.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.