tree: git://people.freedesktop.org/~agd5f/linux.git amd-mainline-dkms-4.15 head: 9556f93f18f7923978fb90f860c107fed9ca7f57 commit: 61986dd6bef0b17e85a9846bb4d1ca610f9d6ce0 [1409/1759] drm/amdkfd: Copy in KFD-related files config: i386-randconfig-a1-04241604 (attached as .config) compiler: gcc-4.9 (Debian 4.9.4-2) 4.9.4 reproduce: git checkout 61986dd6bef0b17e85a9846bb4d1ca610f9d6ce0 # save the attached .config to linux build tree make ARCH=i386 All warnings (new ones prefixed by >>): >> drivers/gpu//drm/amd/amdgpu/amdgpu_amdkfd.c:23:0: warning: "pr_fmt" redefined #define pr_fmt(fmt) "kfd2kgd: " fmt ^ In file included from include/linux/kernel.h:14:0, from include/linux/list.h:9, from include/linux/preempt.h:11, from include/linux/spinlock.h:51, from include/linux/kref.h:18, from include/kcl/kcl_kref.h:5, from drivers/gpu//drm/amd/amdgpu/../backport/backport.h:7, from <command-line>:0: include/linux/printk.h:285:0: note: this is the location of the previous definition #define pr_fmt(fmt) fmt ^ In file included from include/linux/kernel.h:10:0, from include/linux/list.h:9, from include/linux/preempt.h:11, from include/linux/spinlock.h:51, from include/linux/kref.h:18, from include/kcl/kcl_kref.h:5, from drivers/gpu//drm/amd/amdgpu/../backport/backport.h:7, from <command-line>:0: drivers/gpu//drm/amd/amdgpu/amdgpu_amdkfd.c: In function 'amdgpu_amdkfd_get_dmabuf_info': drivers/gpu//drm/amd/amdgpu/amdgpu_amdkfd.c:448:23: error: 'amdgpu_dmabuf_ops' undeclared (first use in this function) if (dma_buf->ops != &amdgpu_dmabuf_ops) ^ include/linux/compiler.h:58:30: note: in definition of macro '__trace_if' if (__builtin_constant_p(!!(cond)) ? !!(cond) : \ ^ drivers/gpu//drm/amd/amdgpu/amdgpu_amdkfd.c:448:2: note: in expansion of macro 'if' if (dma_buf->ops != &amdgpu_dmabuf_ops) ^ drivers/gpu//drm/amd/amdgpu/amdgpu_amdkfd.c:448:23: note: each undeclared identifier is reported only once for each function it appears in if (dma_buf->ops != &amdgpu_dmabuf_ops) ^ include/linux/compiler.h:58:30: note: in definition of macro '__trace_if' if (__builtin_constant_p(!!(cond)) ? !!(cond) : \ ^ drivers/gpu//drm/amd/amdgpu/amdgpu_amdkfd.c:448:2: note: in expansion of macro 'if' if (dma_buf->ops != &amdgpu_dmabuf_ops) ^ -- >> drivers/gpu//drm/amd/amdgpu/amdgpu_amdkfd_gfx_v7.c:23:0: warning: "pr_fmt" redefined #define pr_fmt(fmt) "kfd2kgd: " fmt ^ In file included from include/linux/kernel.h:14:0, from include/linux/list.h:9, from include/linux/preempt.h:11, from include/linux/spinlock.h:51, from include/linux/kref.h:18, from include/kcl/kcl_kref.h:5, from drivers/gpu//drm/amd/amdgpu/../backport/backport.h:7, from <command-line>:0: include/linux/printk.h:285:0: note: this is the location of the previous definition #define pr_fmt(fmt) fmt ^ -- >> drivers/gpu//drm/amd/amdgpu/amdgpu_amdkfd_gfx_v8.c:23:0: warning: "pr_fmt" redefined #define pr_fmt(fmt) "kfd2kgd: " fmt ^ In file included from include/linux/kernel.h:14:0, from include/linux/list.h:9, from include/linux/preempt.h:11, from include/linux/spinlock.h:51, from include/linux/kref.h:18, from include/kcl/kcl_kref.h:5, from drivers/gpu//drm/amd/amdgpu/../backport/backport.h:7, from <command-line>:0: include/linux/printk.h:285:0: note: this is the location of the previous definition #define pr_fmt(fmt) fmt ^ -- >> drivers/gpu//drm/amd/amdgpu/amdgpu_amdkfd_gfx_v9.c:23:0: warning: "pr_fmt" redefined #define pr_fmt(fmt) "kfd2kgd: " fmt ^ In file included from include/linux/kernel.h:14:0, from include/linux/list.h:9, from include/linux/preempt.h:11, from include/linux/spinlock.h:51, from include/linux/kref.h:18, from include/kcl/kcl_kref.h:5, from drivers/gpu//drm/amd/amdgpu/../backport/backport.h:7, from <command-line>:0: include/linux/printk.h:285:0: note: this is the location of the previous definition #define pr_fmt(fmt) fmt ^ In file included from drivers/gpu//drm/amd/amdgpu/../backport/include/kcl/kcl_amdgpu.h:5:0, from drivers/gpu//drm/amd/amdgpu/../backport/backport.h:12, from <command-line>:0: drivers/gpu//drm/amd/amdgpu/amdgpu_amdkfd_gfx_v9.c: In function 'kgd_hqd_load': drivers/gpu//drm/amd/amdgpu/amdgpu_amdkfd_gfx_v9.c:533:24: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] lower_32_bits((uint64_t)wptr)); ^ drivers/gpu//drm/amd/amdgpu/amdgpu.h:1726:53: note: in definition of macro 'WREG32' #define WREG32(reg, v) amdgpu_mm_wreg(adev, (reg), (v), 0) ^ drivers/gpu//drm/amd/amdgpu/amdgpu_amdkfd_gfx_v9.c:533:10: note: in expansion of macro 'lower_32_bits' lower_32_bits((uint64_t)wptr)); ^ drivers/gpu//drm/amd/amdgpu/amdgpu_amdkfd_gfx_v9.c:535:24: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] upper_32_bits((uint64_t)wptr)); ^ drivers/gpu//drm/amd/amdgpu/amdgpu.h:1726:53: note: in definition of macro 'WREG32' #define WREG32(reg, v) amdgpu_mm_wreg(adev, (reg), (v), 0) ^ drivers/gpu//drm/amd/amdgpu/amdgpu_amdkfd_gfx_v9.c:535:10: note: in expansion of macro 'upper_32_bits' upper_32_bits((uint64_t)wptr)); ^ drivers/gpu//drm/amd/amdgpu/amdgpu_amdkfd_gfx_v9.c: In function 'kgd_hqd_sdma_load': drivers/gpu//drm/amd/amdgpu/amdgpu_amdkfd_gfx_v9.c:621:10: error: 'struct v9_sdma_mqd' has no member named 'sdmax_rlcx_doorbell_offset' m->sdmax_rlcx_doorbell_offset); ^ drivers/gpu//drm/amd/amdgpu/amdgpu.h:1726:53: note: in definition of macro 'WREG32' #define WREG32(reg, v) amdgpu_mm_wreg(adev, (reg), (v), 0) ^ drivers/gpu//drm/amd/amdgpu/amdgpu_amdkfd_gfx_v9.c:628:6: error: 'struct v9_sdma_mqd' has no member named 'sdmax_rlcx_rb_rptr_hi' m->sdmax_rlcx_rb_rptr_hi); ^ drivers/gpu//drm/amd/amdgpu/amdgpu.h:1726:53: note: in definition of macro 'WREG32' #define WREG32(reg, v) amdgpu_mm_wreg(adev, (reg), (v), 0) ^ drivers/gpu//drm/amd/amdgpu/amdgpu_amdkfd_gfx_v9.c:640:11: error: 'struct v9_sdma_mqd' has no member named 'sdmax_rlcx_rb_rptr_hi' m->sdmax_rlcx_rb_rptr_hi); ^ drivers/gpu//drm/amd/amdgpu/amdgpu.h:1726:53: note: in definition of macro 'WREG32' #define WREG32(reg, v) amdgpu_mm_wreg(adev, (reg), (v), 0) ^ drivers/gpu//drm/amd/amdgpu/amdgpu_amdkfd_gfx_v9.c: In function 'kgd_hqd_sdma_destroy': drivers/gpu//drm/amd/amdgpu/amdgpu_amdkfd_gfx_v9.c:871:3: error: 'struct v9_sdma_mqd' has no member named 'sdmax_rlcx_rb_rptr_hi' m->sdmax_rlcx_rb_rptr_hi = ^ In file included from drivers/gpu//drm/amd/amdgpu/amdgpu_amdkfd_gfx_v9.c:49:0: drivers/gpu//drm/amd/amdgpu/amdgpu_amdkfd_gfx_v9.c: In function 'invalidate_tlbs_with_kiq': drivers/gpu//drm/amd/amdgpu/amdgpu_amdkfd_gfx_v9.c:965:34: error: 'PACKET3_INVALIDATE_TLBS' undeclared (first use in this function) amdgpu_ring_write(ring, PACKET3(PACKET3_INVALIDATE_TLBS, 0)); ^ drivers/gpu//drm/amd/amdgpu/soc15d.h:51:8: note: in definition of macro 'PACKET3' (((op) & 0xFF) << 8) | \ ^ drivers/gpu//drm/amd/amdgpu/amdgpu_amdkfd_gfx_v9.c:965:34: note: each undeclared identifier is reported only once for each function it appears in amdgpu_ring_write(ring, PACKET3(PACKET3_INVALIDATE_TLBS, 0)); ^ drivers/gpu//drm/amd/amdgpu/soc15d.h:51:8: note: in definition of macro 'PACKET3' (((op) & 0xFF) << 8) | \ ^ drivers/gpu//drm/amd/amdgpu/amdgpu_amdkfd_gfx_v9.c:967:4: error: implicit declaration of function 'PACKET3_INVALIDATE_TLBS_DST_SEL' [-Werror=implicit-function-declaration] PACKET3_INVALIDATE_TLBS_DST_SEL(1) | ^ drivers/gpu//drm/amd/amdgpu/amdgpu_amdkfd_gfx_v9.c:968:4: error: implicit declaration of function 'PACKET3_INVALIDATE_TLBS_ALL_HUB' [-Werror=implicit-function-declaration] PACKET3_INVALIDATE_TLBS_ALL_HUB(1) | ^ drivers/gpu//drm/amd/amdgpu/amdgpu_amdkfd_gfx_v9.c:969:4: error: implicit declaration of function 'PACKET3_INVALIDATE_TLBS_PASID' [-Werror=implicit-function-declaration] PACKET3_INVALIDATE_TLBS_PASID(pasid) | ^ drivers/gpu//drm/amd/amdgpu/amdgpu_amdkfd_gfx_v9.c:970:4: error: implicit declaration of function 'PACKET3_INVALIDATE_TLBS_FLUSH_TYPE' [-Werror=implicit-function-declaration] PACKET3_INVALIDATE_TLBS_FLUSH_TYPE(0)); /* legacy */ ^ cc1: some warnings being treated as errors -- >> drivers/gpu//drm/amd/amdgpu/amdgpu_amdkfd_gpuvm.c:23:0: warning: "pr_fmt" redefined #define pr_fmt(fmt) "kfd2kgd: " fmt ^ In file included from include/linux/kernel.h:14:0, from include/linux/list.h:9, from include/linux/preempt.h:11, from include/linux/spinlock.h:51, from include/linux/kref.h:18, from include/kcl/kcl_kref.h:5, from drivers/gpu//drm/amd/amdgpu/../backport/backport.h:7, from <command-line>:0: include/linux/printk.h:285:0: note: this is the location of the previous definition #define pr_fmt(fmt) fmt ^ drivers/gpu//drm/amd/amdgpu/amdgpu_amdkfd_gpuvm.c: In function 'amdgpu_amdkfd_gpuvm_alloc_memory_of_gpu': drivers/gpu//drm/amd/amdgpu/amdgpu_amdkfd_gpuvm.c:1198:4: error: 'struct amdgpu_bo' has no member named 'kfd_bo' bo->kfd_bo = *mem; ^ drivers/gpu//drm/amd/amdgpu/amdgpu_amdkfd_gpuvm.c: In function 'amdgpu_amdkfd_gpuvm_sync_memory': drivers/gpu//drm/amd/amdgpu/amdgpu_amdkfd_gpuvm.c:1535:2: error: implicit declaration of function 'amdgpu_sync_clone' [-Werror=implicit-function-declaration] amdgpu_sync_clone(&mem->sync, &sync); ^ In file included from include/linux/kernel.h:10:0, from include/linux/list.h:9, from include/linux/preempt.h:11, from include/linux/spinlock.h:51, from include/linux/kref.h:18, from include/kcl/kcl_kref.h:5, from drivers/gpu//drm/amd/amdgpu/../backport/backport.h:7, from <command-line>:0: drivers/gpu//drm/amd/amdgpu/amdgpu_amdkfd_gpuvm.c: In function 'amdgpu_amdkfd_gpuvm_get_vm_fault_info': drivers/gpu//drm/amd/amdgpu/amdgpu_amdkfd_gpuvm.c:1605:28: error: 'struct amdgpu_gmc' has no member named 'vm_fault_info_updated' if (atomic_read(&adev->gmc.vm_fault_info_updated) == 1) { ^ include/linux/compiler.h:58:30: note: in definition of macro '__trace_if' if (__builtin_constant_p(!!(cond)) ? !!(cond) : \ ^ drivers/gpu//drm/amd/amdgpu/amdgpu_amdkfd_gpuvm.c:1605:2: note: in expansion of macro 'if' if (atomic_read(&adev->gmc.vm_fault_info_updated) == 1) { ^ drivers/gpu//drm/amd/amdgpu/amdgpu_amdkfd_gpuvm.c:1605:28: error: 'struct amdgpu_gmc' has no member named 'vm_fault_info_updated' if (atomic_read(&adev->gmc.vm_fault_info_updated) == 1) { ^ include/linux/compiler.h:58:42: note: in definition of macro '__trace_if' if (__builtin_constant_p(!!(cond)) ? !!(cond) : \ ^ drivers/gpu//drm/amd/amdgpu/amdgpu_amdkfd_gpuvm.c:1605:2: note: in expansion of macro 'if' if (atomic_read(&adev->gmc.vm_fault_info_updated) == 1) { ^ drivers/gpu//drm/amd/amdgpu/amdgpu_amdkfd_gpuvm.c:1605:28: error: 'struct amdgpu_gmc' has no member named 'vm_fault_info_updated' if (atomic_read(&adev->gmc.vm_fault_info_updated) == 1) { ^ include/linux/compiler.h:69:16: note: in definition of macro '__trace_if' ______r = !!(cond); \ ^ drivers/gpu//drm/amd/amdgpu/amdgpu_amdkfd_gpuvm.c:1605:2: note: in expansion of macro 'if' if (atomic_read(&adev->gmc.vm_fault_info_updated) == 1) { ^ drivers/gpu//drm/amd/amdgpu/amdgpu_amdkfd_gpuvm.c:1606:20: error: 'struct amdgpu_gmc' has no member named 'vm_fault_info' *mem = *adev->gmc.vm_fault_info; ^ drivers/gpu//drm/amd/amdgpu/amdgpu_amdkfd_gpuvm.c:1608:24: error: 'struct amdgpu_gmc' has no member named 'vm_fault_info_updated' atomic_set(&adev->gmc.vm_fault_info_updated, 0); ^ In file included from include/linux/kernel.h:10:0, from include/linux/list.h:9, from include/linux/preempt.h:11, from include/linux/spinlock.h:51, from include/linux/kref.h:18, from include/kcl/kcl_kref.h:5, from drivers/gpu//drm/amd/amdgpu/../backport/backport.h:7, from <command-line>:0: drivers/gpu//drm/amd/amdgpu/amdgpu_amdkfd_gpuvm.c: In function 'amdgpu_amdkfd_gpuvm_import_dmabuf': drivers/gpu//drm/amd/amdgpu/amdgpu_amdkfd_gpuvm.c:1766:23: error: 'amdgpu_dmabuf_ops' undeclared (first use in this function) if (dma_buf->ops != &amdgpu_dmabuf_ops) ^ include/linux/compiler.h:58:30: note: in definition of macro '__trace_if' if (__builtin_constant_p(!!(cond)) ? !!(cond) : \ ^ drivers/gpu//drm/amd/amdgpu/amdgpu_amdkfd_gpuvm.c:1766:2: note: in expansion of macro 'if' if (dma_buf->ops != &amdgpu_dmabuf_ops) ^ drivers/gpu//drm/amd/amdgpu/amdgpu_amdkfd_gpuvm.c:1766:23: note: each undeclared identifier is reported only once for each function it appears in if (dma_buf->ops != &amdgpu_dmabuf_ops) ^ include/linux/compiler.h:58:30: note: in definition of macro '__trace_if' if (__builtin_constant_p(!!(cond)) ? !!(cond) : \ ^ drivers/gpu//drm/amd/amdgpu/amdgpu_amdkfd_gpuvm.c:1766:2: note: in expansion of macro 'if' if (dma_buf->ops != &amdgpu_dmabuf_ops) ^ cc1: some warnings being treated as errors vim +/pr_fmt +23 drivers/gpu//drm/amd/amdgpu/amdgpu_amdkfd.c > 23 #define pr_fmt(fmt) "kfd2kgd: " fmt 24 --- 0-DAY kernel test infrastructure Open Source Technology Center https://lists.01.org/pipermail/kbuild-all Intel Corporation
Attachment:
.config.gz
Description: application/gzip
_______________________________________________ dri-devel mailing list dri-devel@xxxxxxxxxxxxxxxxxxxxx https://lists.freedesktop.org/mailman/listinfo/dri-devel