From: Pranith Kumar <bobby.prani@gmail.com>
To: Joerg Roedel <joro@8bytes.org>,
iommu@lists.linux-foundation.org (open list:IOMMU DRIVERS),
linux-kernel@vger.kernel.org (open list)
Subject: [PATCH] powerpc: fsl_pamu_domain: Fix build error
Date: Wed, 20 Aug 2014 00:08:04 -0400 [thread overview]
Message-ID: <1408507684-20716-1-git-send-email-bobby.prani@gmail.com> (raw)
Fix build failure in fsl_pamu_domain.o caused as follows
drivers/iommu/fsl_pamu_domain.c: In function 'pamu_domain_init':
drivers/iommu/fsl_pamu_domain.c:1103:17: error: 'pci_bus_type' undeclared
(first use in this function)
drivers/iommu/fsl_pamu_domain.c:1103:17: note: each undeclared identifier is
reported only once for each function it appears in
make[2]: *** [drivers/iommu/fsl_pamu_domain.o] Error 1
make[1]: *** [drivers/iommu] Error 2
make: *** [drivers] Error 2
We fix this by trying to dereference pci_bus_type only if CONFIG_PCI is defined.
Signed-off-by: Pranith Kumar <bobby.prani@gmail.com>
---
drivers/iommu/fsl_pamu_domain.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/drivers/iommu/fsl_pamu_domain.c b/drivers/iommu/fsl_pamu_domain.c
index 61d1daf..bb56f86 100644
--- a/drivers/iommu/fsl_pamu_domain.c
+++ b/drivers/iommu/fsl_pamu_domain.c
@@ -1099,7 +1099,9 @@ int pamu_domain_init(void)
return ret;
bus_set_iommu(&platform_bus_type, &fsl_pamu_ops);
+#ifdef CONFIG_PCI
bus_set_iommu(&pci_bus_type, &fsl_pamu_ops);
+#endif
return ret;
}
--
1.9.1
reply other threads:[~2014-08-20 4:08 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=1408507684-20716-1-git-send-email-bobby.prani@gmail.com \
--to=bobby.prani@gmail.com \
--cc=iommu@lists.linux-foundation.org \
--cc=joro@8bytes.org \
--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
all inboxes | Powered by JetHome®