linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
* qcom: build issue in Linux 5.3-rc6 with CONFIG_XEN=y
@ 2019-08-26 18:08 Stefan Wahren
  0 siblings, 0 replies; only message in thread
From: Stefan Wahren @ 2019-08-26 18:08 UTC (permalink / raw)
  To: Bjorn Andersson, Avaneesh Kumar Dwivedi, Andy Gross
  Cc: linux-arm-msm, linux-arm-kernel

Hi,

i tried to cross compile arm/multi_v7_defconfig with CONFIG_XEN=y with Linux 5.3-rc6 and i'm getting this:

 drivers/firmware/qcom_scm.c: In function ‘qcom_scm_assign_mem’:
drivers/firmware/qcom_scm.c:460:47: error: passing argument 3 of ‘dma_alloc_coherent’ from incompatible pointer type [-Werror=incompatible-pointer-types]
  ptr = dma_alloc_coherent(__scm->dev, ptr_sz, &ptr_phys, GFP_KERNEL);
                                               ^
In file included from drivers/firmware/qcom_scm.c:12:0:
./include/linux/dma-mapping.h:636: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_coherent(struct device *dev, size_t size,
                     ^~~~~~~~~~~~~~~~~~
cc1: some warnings being treated as errors
scripts/Makefile.build:280: die Regel für Ziel „drivers/firmware/qcom_scm.o“ scheiterte
make[2]: *** [drivers/firmware/qcom_scm.o] Fehler 1
scripts/Makefile.build:497: die Regel für Ziel „drivers/firmware“ scheiterte

Luckily there is already a patch to fix this in linux-next:

firmware: qcom_scm: Use proper types for dma mappings

I hope someone can take care of this.

Regards
Stefan


_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2019-08-26 18:10 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-08-26 18:08 qcom: build issue in Linux 5.3-rc6 with CONFIG_XEN=y Stefan Wahren

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).