compile error in 4.14-rc5 with nvidia tegra enabled

Hermann Lauer Hermann.Lauer at iwr.uni-heidelberg.de
Thu Oct 19 01:42:10 PDT 2017


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                                                                      


-- 
Netzwerkadministration/Zentrale Dienste, Interdiziplinaeres 
Zentrum fuer wissenschaftliches Rechnen der Universitaet Heidelberg
IWR; INF 205; 69120 Heidelberg; Tel: (06221)54-14405 Fax: -14427
Email: Hermann.Lauer at iwr.uni-heidelberg.de



More information about the linux-arm-kernel mailing list