Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

drm/tegra: gem: Use more consistent data types

Use size_t consistently for sizes and u32/u64 instead of uint32_t and
uint64_t.

Signed-off-by: Thierry Reding <treding@nvidia.com>

+8 -8
+4 -4
drivers/gpu/drm/tegra/gem.c
··· 264 264 return 0; 265 265 } 266 266 267 - struct tegra_bo *tegra_bo_create(struct drm_device *drm, unsigned int size, 267 + struct tegra_bo *tegra_bo_create(struct drm_device *drm, size_t size, 268 268 unsigned long flags) 269 269 { 270 270 struct tegra_bo *bo; ··· 294 294 295 295 struct tegra_bo *tegra_bo_create_with_handle(struct drm_file *file, 296 296 struct drm_device *drm, 297 - unsigned int size, 297 + size_t size, 298 298 unsigned long flags, 299 - unsigned int *handle) 299 + u32 *handle) 300 300 { 301 301 struct tegra_bo *bo; 302 302 int err; ··· 415 415 } 416 416 417 417 int tegra_bo_dumb_map_offset(struct drm_file *file, struct drm_device *drm, 418 - uint32_t handle, uint64_t *offset) 418 + u32 handle, u64 *offset) 419 419 { 420 420 struct drm_gem_object *gem; 421 421 struct tegra_bo *bo;
+4 -4
drivers/gpu/drm/tegra/gem.h
··· 52 52 return container_of(gem, struct tegra_bo, gem); 53 53 } 54 54 55 - struct tegra_bo *tegra_bo_create(struct drm_device *drm, unsigned int size, 55 + struct tegra_bo *tegra_bo_create(struct drm_device *drm, size_t size, 56 56 unsigned long flags); 57 57 struct tegra_bo *tegra_bo_create_with_handle(struct drm_file *file, 58 58 struct drm_device *drm, 59 - unsigned int size, 59 + size_t size, 60 60 unsigned long flags, 61 - unsigned int *handle); 61 + u32 *handle); 62 62 void tegra_bo_free_object(struct drm_gem_object *gem); 63 63 int tegra_bo_dumb_create(struct drm_file *file, struct drm_device *drm, 64 64 struct drm_mode_create_dumb *args); 65 65 int tegra_bo_dumb_map_offset(struct drm_file *file, struct drm_device *drm, 66 - uint32_t handle, uint64_t *offset); 66 + u32 handle, u64 *offset); 67 67 68 68 int tegra_drm_mmap(struct file *file, struct vm_area_struct *vma); 69 69