vcsm: Correct "long unsigned int" to "unsigned long"
authorDave Stevenson <dave.stevenson@raspberrypi.org>
Fri, 1 Sep 2017 16:36:11 +0000 (17:36 +0100)
committerRaspbian kernel package updater <root@raspbian.org>
Sat, 31 Mar 2018 14:55:25 +0000 (15:55 +0100)
Signed-off-by: Dave Stevenson <dave.stevenson@raspberrypi.org>
drivers/char/broadcom/vc_sm/vc_sm_knl.h
drivers/char/broadcom/vc_sm/vmcs_sm.c

index 8252d13999a78609fcc7e1bbe83307e2b1c1f8f1..8538f618ffd33b2901d220f3fb755aae6001e6d7 100644 (file)
@@ -36,7 +36,7 @@ int vc_sm_free(int handle);
 
 /* Lock a memory handle for use by kernel. */
 int vc_sm_lock(int handle, VC_SM_LOCK_CACHE_MODE_T mode,
-              long unsigned int *data);
+              unsigned long *data);
 
 /* Unlock a memory handle in use by kernel. */
 int vc_sm_unlock(int handle, int flush, int no_vc_unlock);
@@ -46,7 +46,7 @@ int vc_sm_int_handle(int handle);
 
 /* Map a shared memory region for use by kernel. */
 int vc_sm_map(int handle, unsigned int sm_addr, VC_SM_LOCK_CACHE_MODE_T mode,
-             long unsigned int *data);
+             unsigned long *data);
 
 /* Import a block of memory into the GPU space. */
 int vc_sm_import_dmabuf(struct dma_buf *dmabuf, int *handle);
index c8df7c80596038c3d1f03af3b17095b9b50238c8..01da0badd8afe58d8c2570efcd26c77893f14490 100644 (file)
@@ -118,7 +118,7 @@ struct sm_mmap {
        unsigned int res_vc_hdl;        /* Resource handle (videocore). */
        unsigned int res_usr_hdl;       /* Resource handle (user). */
 
-       long unsigned int res_addr;     /* Mapped virtual address. */
+       unsigned long res_addr; /* Mapped virtual address. */
        struct vm_area_struct *vma;     /* VM area for this mapping. */
        unsigned int ref_count;         /* Reference count to this vma. */
 
@@ -1383,7 +1383,7 @@ static int vc_sm_mmap(struct file *file, struct vm_area_struct *vma)
        map->res_pid = current->tgid;
        map->res_vc_hdl = resource->res_handle;
        map->res_usr_hdl = resource->res_guid;
-       map->res_addr = (long unsigned int)vma->vm_start;
+       map->res_addr = (unsigned long)vma->vm_start;
        map->resource = resource;
        map->vma = vma;
        vmcs_sm_add_map(sm_state, resource, map);
@@ -1743,7 +1743,7 @@ static int vc_sm_ioctl_lock(struct SM_PRIV_DATA_T *private,
        struct SM_RESOURCE_T *resource;
        int ret = 0;
        struct sm_mmap *map, *map_tmp;
-       long unsigned int phys_addr;
+       unsigned long phys_addr;
 
        map = NULL;
 
@@ -1859,7 +1859,7 @@ static int vc_sm_ioctl_lock(struct SM_PRIV_DATA_T *private,
                                phys_addr += mm_vc_mem_phys_addr;
                                if (resource->res_cached
                                                == VMCS_SM_CACHE_HOST) {
-                                       ioparam->addr = (long unsigned int)
+                                       ioparam->addr = (unsigned long)
                                        /* TODO - make cached work */
                                            ioremap_nocache(phys_addr,
                                                           resource->res_size);
@@ -1868,7 +1868,7 @@ static int vc_sm_ioctl_lock(struct SM_PRIV_DATA_T *private,
                                                __func__, ioparam->handle,
                                                lock.res_handle, ioparam->addr);
                                } else {
-                                       ioparam->addr = (long unsigned int)
+                                       ioparam->addr = (unsigned long)
                                            ioremap_nocache(phys_addr,
                                                            resource->res_size);
 
@@ -1995,7 +1995,7 @@ static int vc_sm_ioctl_unlock(struct SM_PRIV_DATA_T *private,
                                                if (flush &&
                                                                (resource->res_cached ==
                                                                        VMCS_SM_CACHE_HOST)) {
-                                                       long unsigned int
+                                                       unsigned long
                                                                phys_addr;
                                                        phys_addr = (uint32_t)
                                                                resource->res_base_mem & 0x3FFFFFFF;
@@ -3359,7 +3359,7 @@ EXPORT_SYMBOL_GPL(vc_sm_free);
 
 /* Lock a memory handle for use by kernel. */
 int vc_sm_lock(int handle, VC_SM_LOCK_CACHE_MODE_T mode,
-              long unsigned int *data)
+              unsigned long *data)
 {
        struct vmcs_sm_ioctl_lock_unlock ioparam;
        int ret;
@@ -3404,7 +3404,7 @@ EXPORT_SYMBOL_GPL(vc_sm_unlock);
 
 /* Map a shared memory region for use by kernel. */
 int vc_sm_map(int handle, unsigned int sm_addr, VC_SM_LOCK_CACHE_MODE_T mode,
-             long unsigned int *data)
+             unsigned long *data)
 {
        struct vmcs_sm_ioctl_lock_unlock ioparam;
        int ret;