[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <tip-8a22a3e1e768c309b718f99bd86f9f25a453e0dc@git.kernel.org>
Date: Sun, 13 May 2018 07:05:23 -0700
From: tip-bot for Marc Zyngier <tipbot@...or.com>
To: linux-tip-commits@...r.kernel.org
Cc: jason@...edaemon.net, mingo@...nel.org, hpa@...or.com,
ard.biesheuvel@...aro.org, tglx@...utronix.de,
srinivas.kandagatla@...aro.org, robh@...nel.org,
linux-kernel@...r.kernel.org, marc.zyngier@....com,
miquel.raynal@...tlin.com, thomas.petazzoni@...tlin.com
Subject: [tip:irq/core] dma-iommu: Fix compilation when !CONFIG_IOMMU_DMA
Commit-ID: 8a22a3e1e768c309b718f99bd86f9f25a453e0dc
Gitweb: https://git.kernel.org/tip/8a22a3e1e768c309b718f99bd86f9f25a453e0dc
Author: Marc Zyngier <marc.zyngier@....com>
AuthorDate: Tue, 8 May 2018 13:14:33 +0100
Committer: Thomas Gleixner <tglx@...utronix.de>
CommitDate: Sun, 13 May 2018 15:59:00 +0200
dma-iommu: Fix compilation when !CONFIG_IOMMU_DMA
Inclusion of include/dma-iommu.h when CONFIG_IOMMU_DMA is not selected
results in the following splat:
In file included from drivers/irqchip/irq-gic-v3-mbi.c:20:0:
./include/linux/dma-iommu.h:95:69: error: unknown type name ‘dma_addr_t’
static inline int iommu_get_msi_cookie(struct iommu_domain *domain, dma_addr_t base)
^~~~~~~~~~
./include/linux/dma-iommu.h:108:74: warning: ‘struct list_head’ declared inside parameter list will not be visible outside of this definition or declaration
static inline void iommu_dma_get_resv_regions(struct device *dev, struct list_head *list)
^~~~~~~~~
scripts/Makefile.build:312: recipe for target 'drivers/irqchip/irq-gic-v3-mbi.o' failed
Fix it by including linux/types.h.
Signed-off-by: Marc Zyngier <marc.zyngier@....com>
Signed-off-by: Thomas Gleixner <tglx@...utronix.de>
Cc: Rob Herring <robh@...nel.org>
Cc: Jason Cooper <jason@...edaemon.net>
Cc: Ard Biesheuvel <ard.biesheuvel@...aro.org>
Cc: Srinivas Kandagatla <srinivas.kandagatla@...aro.org>
Cc: Thomas Petazzoni <thomas.petazzoni@...tlin.com>
Cc: Miquel Raynal <miquel.raynal@...tlin.com>
Link: https://lkml.kernel.org/r/20180508121438.11301-5-marc.zyngier@arm.com
---
include/linux/dma-iommu.h | 1 +
1 file changed, 1 insertion(+)
diff --git a/include/linux/dma-iommu.h b/include/linux/dma-iommu.h
index 92f20832fd28..e8ca5e654277 100644
--- a/include/linux/dma-iommu.h
+++ b/include/linux/dma-iommu.h
@@ -17,6 +17,7 @@
#define __DMA_IOMMU_H
#ifdef __KERNEL__
+#include <linux/types.h>
#include <asm/errno.h>
#ifdef CONFIG_IOMMU_DMA
Powered by blists - more mailing lists