compile error in 4.14-rc5 with nvidia tegra enabled
Jon Hunter
jonathanh at nvidia.com
Thu Oct 19 03:11:46 PDT 2017
Adding linux-tegra and Mikko ...
On 19/10/17 09:42, Hermann Lauer wrote:
> Hello,
> compiling 4.14-rc{4,5} with a debian testing arm config yields the attached
> error. Disabling the Nvidia tegra architecture (unneeded on
> Banana{Pro,Pi,Ultra}) helps.
>
> Thanks,
> greetings
> Hermann
>
> CC [M] drivers/gpu/host1x/cdma.o
> drivers/gpu/host1x/cdma.c: In function ‘host1x_pushbuffer_init’:
> drivers/gpu/host1x/cdma.c:94:48: error: passing argument 3 of ‘dma_alloc_wc’ from incompatible pointer type [-We
> rror=incompatible-pointer-types]
> pb->mapped = dma_alloc_wc(host1x->dev, size, &pb->phys,
> ^
> In file included from drivers/gpu/host1x/cdma.c:22:0:
> ./include/linux/dma-mapping.h:780:21: note: expected ‘dma_addr_t * {aka long long unsigned int *}’ but argument
> is of type ‘phys_addr_t * {aka unsigned int *}’
> static inline void *dma_alloc_wc(struct device *dev, size_t size,
> ^~~~~~~~~~~~
> drivers/gpu/host1x/cdma.c:113:48: error: passing argument 3 of ‘dma_alloc_wc’ from incompatible pointer type [-W
> error=incompatible-pointer-types]
> pb->mapped = dma_alloc_wc(host1x->dev, size, &pb->phys,
> ^
> In file included from drivers/gpu/host1x/cdma.c:22:0:
> ./include/linux/dma-mapping.h:780:21: note: expected ‘dma_addr_t * {aka long long unsigned int *}’ but argument
> is of type ‘phys_addr_t * {aka unsigned int *}’
> static inline void *dma_alloc_wc(struct device *dev, size_t size,
> ^~~~~~~~~~~~
> CC [M] drivers/hid/hid-ntrig.o
> cc1: some warnings being treated as errors
Thanks for the report. I don't see this. What config and toolchain are
you using?
Mikko, have you seen this?
Cheers
Jon
--
nvpublic
More information about the linux-arm-kernel
mailing list