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>
This commit is contained in:
parent
3feaf3e5ae
commit
71c38629d6
2 changed files with 8 additions and 8 deletions
|
@ -264,7 +264,7 @@ static int tegra_bo_alloc(struct drm_device *drm, struct tegra_bo *bo,
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
struct tegra_bo *tegra_bo_create(struct drm_device *drm, unsigned int size,
|
struct tegra_bo *tegra_bo_create(struct drm_device *drm, size_t size,
|
||||||
unsigned long flags)
|
unsigned long flags)
|
||||||
{
|
{
|
||||||
struct tegra_bo *bo;
|
struct tegra_bo *bo;
|
||||||
|
@ -294,9 +294,9 @@ release:
|
||||||
|
|
||||||
struct tegra_bo *tegra_bo_create_with_handle(struct drm_file *file,
|
struct tegra_bo *tegra_bo_create_with_handle(struct drm_file *file,
|
||||||
struct drm_device *drm,
|
struct drm_device *drm,
|
||||||
unsigned int size,
|
size_t size,
|
||||||
unsigned long flags,
|
unsigned long flags,
|
||||||
unsigned int *handle)
|
u32 *handle)
|
||||||
{
|
{
|
||||||
struct tegra_bo *bo;
|
struct tegra_bo *bo;
|
||||||
int err;
|
int err;
|
||||||
|
@ -415,7 +415,7 @@ int tegra_bo_dumb_create(struct drm_file *file, struct drm_device *drm,
|
||||||
}
|
}
|
||||||
|
|
||||||
int tegra_bo_dumb_map_offset(struct drm_file *file, struct drm_device *drm,
|
int tegra_bo_dumb_map_offset(struct drm_file *file, struct drm_device *drm,
|
||||||
uint32_t handle, uint64_t *offset)
|
u32 handle, u64 *offset)
|
||||||
{
|
{
|
||||||
struct drm_gem_object *gem;
|
struct drm_gem_object *gem;
|
||||||
struct tegra_bo *bo;
|
struct tegra_bo *bo;
|
||||||
|
|
|
@ -52,18 +52,18 @@ static inline struct tegra_bo *to_tegra_bo(struct drm_gem_object *gem)
|
||||||
return container_of(gem, struct tegra_bo, gem);
|
return container_of(gem, struct tegra_bo, gem);
|
||||||
}
|
}
|
||||||
|
|
||||||
struct tegra_bo *tegra_bo_create(struct drm_device *drm, unsigned int size,
|
struct tegra_bo *tegra_bo_create(struct drm_device *drm, size_t size,
|
||||||
unsigned long flags);
|
unsigned long flags);
|
||||||
struct tegra_bo *tegra_bo_create_with_handle(struct drm_file *file,
|
struct tegra_bo *tegra_bo_create_with_handle(struct drm_file *file,
|
||||||
struct drm_device *drm,
|
struct drm_device *drm,
|
||||||
unsigned int size,
|
size_t size,
|
||||||
unsigned long flags,
|
unsigned long flags,
|
||||||
unsigned int *handle);
|
u32 *handle);
|
||||||
void tegra_bo_free_object(struct drm_gem_object *gem);
|
void tegra_bo_free_object(struct drm_gem_object *gem);
|
||||||
int tegra_bo_dumb_create(struct drm_file *file, struct drm_device *drm,
|
int tegra_bo_dumb_create(struct drm_file *file, struct drm_device *drm,
|
||||||
struct drm_mode_create_dumb *args);
|
struct drm_mode_create_dumb *args);
|
||||||
int tegra_bo_dumb_map_offset(struct drm_file *file, struct drm_device *drm,
|
int tegra_bo_dumb_map_offset(struct drm_file *file, struct drm_device *drm,
|
||||||
uint32_t handle, uint64_t *offset);
|
u32 handle, u64 *offset);
|
||||||
|
|
||||||
int tegra_drm_mmap(struct file *file, struct vm_area_struct *vma);
|
int tegra_drm_mmap(struct file *file, struct vm_area_struct *vma);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue