* [skeggsb-nouveau:00.02-gsp-rm 70/83] drivers/gpu/drm/nouveau/nvkm/subdev/gsp/r535.c:678:71: error: passing argument 3 of 'dma_alloc_coherent' from incompatible pointer type
@ 2023-07-12 12:26 kernel test robot
0 siblings, 0 replies; 2+ messages in thread
From: kernel test robot @ 2023-07-12 12:26 UTC (permalink / raw)
To: Ben Skeggs; +Cc: oe-kbuild-all
tree: https://gitlab.freedesktop.org/skeggsb/nouveau 00.02-gsp-rm
head: 3f6fc48703e02597683babc04c512ca13bb95e19
commit: f96cac9d383d166bb0a7d85437ed2d87ee8610e9 [70/83] WIPdrm/nouveau/gsp/r535: add support for booting GSP-RM
config: powerpc-randconfig-r003-20230712 (https://download.01.org/0day-ci/archive/20230712/202307122032.xxclFvZZ-lkp@intel.com/config)
compiler: powerpc-linux-gcc (GCC) 12.3.0
reproduce: (https://download.01.org/0day-ci/archive/20230712/202307122032.xxclFvZZ-lkp@intel.com/reproduce)
If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <lkp@intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202307122032.xxclFvZZ-lkp@intel.com/
All errors (new ones prefixed by >>):
drivers/gpu/drm/nouveau/nvkm/subdev/gsp/r535.c: In function 'nvkm_gsp_mem_ctor':
>> drivers/gpu/drm/nouveau/nvkm/subdev/gsp/r535.c:678:71: error: passing argument 3 of 'dma_alloc_coherent' from incompatible pointer type [-Werror=incompatible-pointer-types]
678 | mem->data = dma_alloc_coherent(gsp->subdev.device->dev, size, &mem->addr, GFP_KERNEL);
| ^~~~~~~~~~
| |
| u64 * {aka long long unsigned int *}
In file included from include/linux/dma-map-ops.h:9,
from arch/powerpc/include/asm/pci.h:12,
from include/linux/pci.h:2007,
from drivers/gpu/drm/nouveau/include/nvif/os.h:8,
from drivers/gpu/drm/nouveau/include/nvkm/core/os.h:4,
from drivers/gpu/drm/nouveau/include/nvkm/core/oclass.h:3,
from drivers/gpu/drm/nouveau/include/nvkm/core/device.h:4,
from drivers/gpu/drm/nouveau/include/nvkm/core/subdev.h:4,
from drivers/gpu/drm/nouveau/include/nvkm/subdev/gsp.h:4,
from drivers/gpu/drm/nouveau/nvkm/subdev/gsp/priv.h:4,
from drivers/gpu/drm/nouveau/nvkm/subdev/gsp/r535.c:22:
include/linux/dma-mapping.h:421:29: note: expected 'dma_addr_t *' {aka 'unsigned int *'} but argument is of type 'u64 *' {aka 'long long unsigned int *'}
421 | dma_addr_t *dma_handle, gfp_t gfp)
| ~~~~~~~~~~~~^~~~~~~~~~
drivers/gpu/drm/nouveau/nvkm/subdev/gsp/r535.c: In function 'nvkm_gsp_radix3_sg':
drivers/gpu/drm/nouveau/nvkm/subdev/gsp/r535.c:1007:55: error: passing argument 3 of 'dma_alloc_coherent' from incompatible pointer type [-Werror=incompatible-pointer-types]
1007 | &rx3->mem[i].addr, GFP_KERNEL);
| ^~~~~~~~~~~~~~~~~
| |
| u64 * {aka long long unsigned int *}
include/linux/dma-mapping.h:421:29: note: expected 'dma_addr_t *' {aka 'unsigned int *'} but argument is of type 'u64 *' {aka 'long long unsigned int *'}
421 | dma_addr_t *dma_handle, gfp_t gfp)
| ~~~~~~~~~~~~^~~~~~~~~~
cc1: some warnings being treated as errors
vim +/dma_alloc_coherent +678 drivers/gpu/drm/nouveau/nvkm/subdev/gsp/r535.c
673
674 static int
675 nvkm_gsp_mem_ctor(struct nvkm_gsp *gsp, u32 size, struct nvkm_gsp_mem *mem)
676 {
677 mem->size = size;
> 678 mem->data = dma_alloc_coherent(gsp->subdev.device->dev, size, &mem->addr, GFP_KERNEL);
679 if (WARN_ON(!mem->data))
680 return -ENOMEM;
681
682 return 0;
683 }
684
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
^ permalink raw reply [flat|nested] 2+ messages in thread
* [skeggsb-nouveau:00.02-gsp-rm 70/83] drivers/gpu/drm/nouveau/nvkm/subdev/gsp/r535.c:678:71: error: passing argument 3 of 'dma_alloc_coherent' from incompatible pointer type
@ 2023-07-21 6:05 kernel test robot
0 siblings, 0 replies; 2+ messages in thread
From: kernel test robot @ 2023-07-21 6:05 UTC (permalink / raw)
To: Ben Skeggs; +Cc: oe-kbuild-all
tree: https://gitlab.freedesktop.org/skeggsb/nouveau 00.02-gsp-rm
head: 19545cf2c6adc9e9dc95a3edb138d6734142a8ca
commit: 02f0bbcb4d7d0867a087b60a69f6c6250c2a65a6 [70/83] WIPdrm/nouveau/gsp/r535: add support for booting GSP-RM
config: parisc-defconfig (https://download.01.org/0day-ci/archive/20230721/202307211323.Uk93Fo3P-lkp@intel.com/config)
compiler: hppa-linux-gcc (GCC) 12.3.0
reproduce: (https://download.01.org/0day-ci/archive/20230721/202307211323.Uk93Fo3P-lkp@intel.com/reproduce)
If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <lkp@intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202307211323.Uk93Fo3P-lkp@intel.com/
All errors (new ones prefixed by >>):
drivers/gpu/drm/nouveau/nvkm/subdev/gsp/r535.c: In function 'nvkm_gsp_mem_ctor':
>> drivers/gpu/drm/nouveau/nvkm/subdev/gsp/r535.c:678:71: error: passing argument 3 of 'dma_alloc_coherent' from incompatible pointer type [-Werror=incompatible-pointer-types]
678 | mem->data = dma_alloc_coherent(gsp->subdev.device->dev, size, &mem->addr, GFP_KERNEL);
| ^~~~~~~~~~
| |
| u64 * {aka long long unsigned int *}
In file included from include/linux/pci.h:2592,
from drivers/gpu/drm/nouveau/include/nvif/os.h:8,
from drivers/gpu/drm/nouveau/include/nvkm/core/os.h:4,
from drivers/gpu/drm/nouveau/include/nvkm/core/oclass.h:3,
from drivers/gpu/drm/nouveau/include/nvkm/core/device.h:4,
from drivers/gpu/drm/nouveau/include/nvkm/core/subdev.h:4,
from drivers/gpu/drm/nouveau/include/nvkm/subdev/gsp.h:4,
from drivers/gpu/drm/nouveau/nvkm/subdev/gsp/priv.h:4,
from drivers/gpu/drm/nouveau/nvkm/subdev/gsp/r535.c:22:
include/linux/dma-mapping.h:421:29: note: expected 'dma_addr_t *' {aka 'unsigned int *'} but argument is of type 'u64 *' {aka 'long long unsigned int *'}
421 | dma_addr_t *dma_handle, gfp_t gfp)
| ~~~~~~~~~~~~^~~~~~~~~~
drivers/gpu/drm/nouveau/nvkm/subdev/gsp/r535.c: In function 'nvkm_gsp_radix3_sg':
drivers/gpu/drm/nouveau/nvkm/subdev/gsp/r535.c:1007:55: error: passing argument 3 of 'dma_alloc_coherent' from incompatible pointer type [-Werror=incompatible-pointer-types]
1007 | &rx3->mem[i].addr, GFP_KERNEL);
| ^~~~~~~~~~~~~~~~~
| |
| u64 * {aka long long unsigned int *}
include/linux/dma-mapping.h:421:29: note: expected 'dma_addr_t *' {aka 'unsigned int *'} but argument is of type 'u64 *' {aka 'long long unsigned int *'}
421 | dma_addr_t *dma_handle, gfp_t gfp)
| ~~~~~~~~~~~~^~~~~~~~~~
cc1: some warnings being treated as errors
vim +/dma_alloc_coherent +678 drivers/gpu/drm/nouveau/nvkm/subdev/gsp/r535.c
673
674 static int
675 nvkm_gsp_mem_ctor(struct nvkm_gsp *gsp, u32 size, struct nvkm_gsp_mem *mem)
676 {
677 mem->size = size;
> 678 mem->data = dma_alloc_coherent(gsp->subdev.device->dev, size, &mem->addr, GFP_KERNEL);
679 if (WARN_ON(!mem->data))
680 return -ENOMEM;
681
682 return 0;
683 }
684
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2023-07-21 6:05 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-07-21 6:05 [skeggsb-nouveau:00.02-gsp-rm 70/83] drivers/gpu/drm/nouveau/nvkm/subdev/gsp/r535.c:678:71: error: passing argument 3 of 'dma_alloc_coherent' from incompatible pointer type kernel test robot
-- strict thread matches above, loose matches on Subject: below --
2023-07-12 12:26 kernel test robot
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.