From: Dave Stevenson Date: Fri, 1 Sep 2017 16:36:11 +0000 (+0100) Subject: vcsm: Correct "long unsigned int" to "unsigned long" X-Git-Tag: archive/raspbian/4.9.51-1+rpi1~5^2~159 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=702bece13cf36a68ebaa0648a7ced81892c92cc2;p=linux-4.9.git vcsm: Correct "long unsigned int" to "unsigned long" Signed-off-by: Dave Stevenson --- diff --git a/drivers/char/broadcom/vc_sm/vc_sm_knl.h b/drivers/char/broadcom/vc_sm/vc_sm_knl.h index 8252d13999a7..8538f618ffd3 100644 --- a/drivers/char/broadcom/vc_sm/vc_sm_knl.h +++ b/drivers/char/broadcom/vc_sm/vc_sm_knl.h @@ -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); diff --git a/drivers/char/broadcom/vc_sm/vmcs_sm.c b/drivers/char/broadcom/vc_sm/vmcs_sm.c index c8df7c805960..01da0badd8af 100644 --- a/drivers/char/broadcom/vc_sm/vmcs_sm.c +++ b/drivers/char/broadcom/vc_sm/vmcs_sm.c @@ -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;