Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1634822

Re: [PATCH -next] soc/qbman: fix implicit header dependency now causing build fails

From Stephen Rothwell <sfr@canb.auug.org.au>
Newsgroups linux.kernel
Subject Re: [PATCH -next] soc/qbman: fix implicit header dependency now causing build fails
Date 2017-05-03 11:20 +0200
Message-ID <tCYBX-3bN-11@gated-at.bofh.it> (permalink)
References <tCOsV-4g8-1@gated-at.bofh.it> <tCY8V-2Hd-11@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


Hi Joerg,

On Wed, 3 May 2017 10:42:40 +0200 Joerg Roedel <jroedel@suse.de> wrote:
>
> On Tue, May 02, 2017 at 06:21:12PM -0400, Paul Gortmaker wrote:
> > 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>  
> 
> Thanks for catching that, I though I found all breakages caused by
> removing this include. Obviously this wasn't true :)
> 
> I applied the fix to the iommu/core branch.

Thanks.

It looks like there is at least one more:

drivers/soc/fsl/qbman/qman.c: In function 'qman_init_fq':
drivers/soc/fsl/qbman/qman.c:1787:4: error: implicit declaration of function 'dma_map_single' [-Werror=implicit-function-declaration]
drivers/soc/fsl/qbman/qman.c:1788:21: error: 'DMA_TO_DEVICE' undeclared (first use in this function)
drivers/soc/fsl/qbman/qman.c:1789:4: error: implicit declaration of function 'dma_mapping_error' [-Werror=implicit-function-declaration]

This is from a powerpc orenet64_smp_defconfig build of today's
linux-next.
-- 
Cheers,
Stephen Rothwell

Back to linux.kernel | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

[PATCH -next] soc/qbman: fix implicit header dependency now causing build fails Paul Gortmaker <paul.gortmaker@windriver.com> - 2017-05-03 00:30 +0200
  Re: [PATCH -next] soc/qbman: fix implicit header dependency now  causing build fails Stephen Rothwell <sfr@canb.auug.org.au> - 2017-05-03 01:40 +0200
  Re: [PATCH -next] soc/qbman: fix implicit header dependency now  causing build fails Joerg Roedel <jroedel@suse.de> - 2017-05-03 10:50 +0200
    Re: [PATCH -next] soc/qbman: fix implicit header dependency now  causing build fails Stephen Rothwell <sfr@canb.auug.org.au> - 2017-05-03 11:20 +0200
      Re: [PATCH -next] soc/qbman: fix implicit header dependency now  causing build fails Joerg Roedel <jroedel@suse.de> - 2017-05-03 12:30 +0200

csiph-web