Skip to content

Commit e8878b8

Browse files
drobson-imgtecmripard
authored andcommitted
drm/imagination: pvr_gpuvm_free() now static
The function below is used only within this source file, but is not static. drivers/gpu/drm/imagination/pvr_vm.c:542:6: error: no previous prototype for 'pvr_gpuvm_free' [-Werror=missing-prototypes] 542 | void pvr_gpuvm_free(struct drm_gpuvm *gpuvm) Make it static. Reported-by: Arnd Bergmann <[email protected]> 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]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Maxime Ripard <[email protected]>
1 parent 7620c6b commit e8878b8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/gpu/drm/imagination/pvr_vm.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -539,7 +539,7 @@ pvr_device_addr_and_size_are_valid(struct pvr_vm_context *vm_ctx,
539539
(device_addr + size <= PVR_PAGE_TABLE_ADDR_SPACE_SIZE);
540540
}
541541

542-
void pvr_gpuvm_free(struct drm_gpuvm *gpuvm)
542+
static void pvr_gpuvm_free(struct drm_gpuvm *gpuvm)
543543
{
544544
kfree(to_pvr_vm_context(gpuvm));
545545
}

0 commit comments

Comments
 (0)