Skip to content

Commit e086acf

Browse files
kbinghampelwell
authored andcommitted
vcsm: Reduce scope of local functions
The functions: vc_vchi_sm_send_msg vc_sm_ioctl_alloc vc_sm_ioctl_alloc_share vc_sm_ioctl_import_dmabuf Are declared without a prototype. They are not used outside of this module, thus - convert them to static functions. Signed-off-by: Kieran Bingham <[email protected]>
1 parent 4b58b39 commit e086acf

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

drivers/char/broadcom/vc_sm/vc_vchi_sm.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -375,7 +375,7 @@ int vc_vchi_sm_stop(struct sm_instance **handle)
375375
return -EINVAL;
376376
}
377377

378-
int vc_vchi_sm_send_msg(struct sm_instance *handle,
378+
static int vc_vchi_sm_send_msg(struct sm_instance *handle,
379379
enum vc_sm_msg_type msg_id,
380380
void *msg, uint32_t msg_size,
381381
void *result, uint32_t result_size,

drivers/char/broadcom/vc_sm/vmcs_sm.c

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1574,8 +1574,8 @@ static int vc_sm_mmap(struct file *file, struct vm_area_struct *vma)
15741574
}
15751575

15761576
/* Allocate a shared memory handle and block. */
1577-
int vc_sm_ioctl_alloc(struct sm_priv_data_t *private,
1578-
struct vmcs_sm_ioctl_alloc *ioparam)
1577+
static int vc_sm_ioctl_alloc(struct sm_priv_data_t *private,
1578+
struct vmcs_sm_ioctl_alloc *ioparam)
15791579
{
15801580
int ret = 0;
15811581
int status;
@@ -1685,8 +1685,8 @@ int vc_sm_ioctl_alloc(struct sm_priv_data_t *private,
16851685
}
16861686

16871687
/* Share an allocate memory handle and block.*/
1688-
int vc_sm_ioctl_alloc_share(struct sm_priv_data_t *private,
1689-
struct vmcs_sm_ioctl_alloc_share *ioparam)
1688+
static int vc_sm_ioctl_alloc_share(struct sm_priv_data_t *private,
1689+
struct vmcs_sm_ioctl_alloc_share *ioparam)
16901690
{
16911691
struct sm_resource_t *resource, *shared_resource;
16921692
int ret = 0;
@@ -2200,9 +2200,9 @@ static int vc_sm_ioctl_unlock(struct sm_priv_data_t *private,
22002200
}
22012201

22022202
/* Import a contiguous block of memory to be shared with VC. */
2203-
int vc_sm_ioctl_import_dmabuf(struct sm_priv_data_t *private,
2204-
struct vmcs_sm_ioctl_import_dmabuf *ioparam,
2205-
struct dma_buf *src_dma_buf)
2203+
static int vc_sm_ioctl_import_dmabuf(struct sm_priv_data_t *private,
2204+
struct vmcs_sm_ioctl_import_dmabuf *ioparam,
2205+
struct dma_buf *src_dma_buf)
22062206
{
22072207
int ret = 0;
22082208
int status;

0 commit comments

Comments
 (0)