soc/qbman: Fix implicit header dependency now causing build fails
authorPaul Gortmaker <paul.gortmaker@windriver.com>
Tue, 2 May 2017 22:21:12 +0000 (18:21 -0400)
committerJoerg Roedel <jroedel@suse.de>
Wed, 3 May 2017 08:39:45 +0000 (10:39 +0200)
commit4512c7bccb7794fb6d6ff37ae449154413bd4963
treeb58024dbaf38b7bdcca96964136402091eae1eef
parent208480bb273e15f42711bd47f70dc0fbfa2570b8
soc/qbman: Fix implicit header dependency now causing build fails

In commit 461a6946b1f9 ("iommu: Remove pci.h include from
trace/events/iommu.h") that header shuffle uncovered an implicit
include in this driver, manifesting as:

    CC      drivers/soc/fsl/qbman/qman_portal.o
    drivers/soc/fsl/qbman/qman_portal.c: In function 'qman_portal_probe':
    drivers/soc/fsl/qbman/qman_portal.c:299:2: error: implicit declaration of function 'dma_set_mask'
    drivers/soc/fsl/qbman/qman_portal.c:299:2: error: implicit declaration of function 'DMA_BIT_MASK'
        if (dma_set_mask(dev, DMA_BIT_MASK(40))) {
        ^

on the corenet32_smp_defconfig (and 64 bit respectively.)  The above
commit was singled out via git bisect.

The header it was implictly relying on getting was dma-mapping.h - so
we explicitly add it here.

Fixes: 461a6946b1f9 ("iommu: Remove pci.h include from trace/events/iommu.h")
Cc: Joerg Roedel <jroedel@suse.de>
Cc: Scott Wood <oss@buserror.net>
Cc: linuxppc-dev@lists.ozlabs.org
Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com>
Signed-off-by: Joerg Roedel <jroedel@suse.de>
drivers/soc/fsl/qbman/qman_portal.c