Skip to content

Commit 72ef65a

Browse files
drobson-imgtecmripard
authored andcommitted
drm/imagination: Removed unused function to_pvr_vm_gpuva()
This function is now unused, hence it causes a compiler warning. drivers/gpu/drm/imagination/pvr_vm.c:112:22: warning: unused function 'to_pvr_vm_gpuva' [-Wunused-function] 112 | struct pvr_vm_gpuva *to_pvr_vm_gpuva(struct drm_gpuva *gpuva) | ^ Remove the function for now. Reported-by: kernel test robot <[email protected]> Closes: https://lore.kernel.org/oe-kbuild-all/[email protected]/ Fixes: ff5f643 ("drm/imagination: Add GEM and VM related code") Signed-off-by: Donald Robson <[email protected]> Signed-off-by: Maxime Ripard <[email protected]> Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
1 parent e8878b8 commit 72ef65a

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

drivers/gpu/drm/imagination/pvr_vm.c

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -114,12 +114,6 @@ struct pvr_vm_gpuva {
114114
struct drm_gpuva base;
115115
};
116116

117-
static __always_inline
118-
struct pvr_vm_gpuva *to_pvr_vm_gpuva(struct drm_gpuva *gpuva)
119-
{
120-
return container_of(gpuva, struct pvr_vm_gpuva, base);
121-
}
122-
123117
enum pvr_vm_bind_type {
124118
PVR_VM_BIND_TYPE_MAP,
125119
PVR_VM_BIND_TYPE_UNMAP,

0 commit comments

Comments
 (0)