]> rtime.felk.cvut.cz Git - sojka/nv-tegra/linux-3.10.git/commitdiff
video: tegra: nvmap: Fix argument types in zap
authorSri Krishna chowdary <schowdary@nvidia.com>
Tue, 15 Apr 2014 06:29:51 +0000 (11:59 +0530)
committerTony Ly <tly@nvidia.com>
Wed, 7 May 2014 18:51:38 +0000 (11:51 -0700)
offset and size can be u32, u64 is not really necessary.

Bug 1444151

Change-Id: Ia07ecee3640649d7218bf8b12e887fcefe08c911
Signed-off-by: Sri Krishna chowdary <schowdary@nvidia.com>
Reviewed-on: http://git-master/r/396362
(cherry picked from commit 0bec2bbb22abde87d31346636a1a0c5d18a426ed)
Reviewed-on: http://git-master/r/405135
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
GVS: Gerrit_Virtual_Submit

drivers/video/tegra/nvmap/nvmap_mm.c

index 3417ccda1b7b795d4c7bc16d17a68a4002f42fc1..0c6eba2231637e59cc75923d606fc24cd56b7ed7 100644 (file)
@@ -140,8 +140,8 @@ int nvmap_do_cache_maint_list(struct nvmap_handle **handles, u32 *offsets,
 }
 
 void nvmap_zap_handle(struct nvmap_handle *handle,
-                     u64 offset,
-                     u64 size)
+                     u32 offset,
+                     u32 size)
 {
        struct list_head *vmas;
        struct nvmap_vma_list *vma_list;
@@ -167,8 +167,8 @@ void nvmap_zap_handle(struct nvmap_handle *handle,
 }
 
 void nvmap_zap_handles(struct nvmap_handle **handles,
-                      u64 *offsets,
-                      u64 *sizes,
+                      u32 *offsets,
+                      u32 *sizes,
                       u32 nr)
 {
        int i;