1 From 2a1fd1a32b7355c6ae8c5fc1654a96fa42e00586 Mon Sep 17 00:00:00 2001
2 From: Kieran Bingham <kieran.bingham@ideasonboard.com>
3 Date: Mon, 18 Mar 2019 17:17:40 +0000
4 Subject: [PATCH 370/806] vcsm: Reduce scope of local functions
10 vc_sm_ioctl_alloc_share
11 vc_sm_ioctl_import_dmabuf
13 Are declared without a prototype. They are not used outside of this
14 module, thus - convert them to static functions.
16 Signed-off-by: Kieran Bingham <kieran.bingham@ideasonboard.com>
18 drivers/char/broadcom/vc_sm/vc_vchi_sm.c | 2 +-
19 drivers/char/broadcom/vc_sm/vmcs_sm.c | 14 +++++++-------
20 2 files changed, 8 insertions(+), 8 deletions(-)
22 --- a/drivers/char/broadcom/vc_sm/vc_vchi_sm.c
23 +++ b/drivers/char/broadcom/vc_sm/vc_vchi_sm.c
24 @@ -375,7 +375,7 @@ lock:
28 -int vc_vchi_sm_send_msg(struct sm_instance *handle,
29 +static int vc_vchi_sm_send_msg(struct sm_instance *handle,
30 enum vc_sm_msg_type msg_id,
31 void *msg, uint32_t msg_size,
32 void *result, uint32_t result_size,
33 --- a/drivers/char/broadcom/vc_sm/vmcs_sm.c
34 +++ b/drivers/char/broadcom/vc_sm/vmcs_sm.c
35 @@ -1574,8 +1574,8 @@ error:
38 /* Allocate a shared memory handle and block. */
39 -int vc_sm_ioctl_alloc(struct sm_priv_data_t *private,
40 - struct vmcs_sm_ioctl_alloc *ioparam)
41 +static int vc_sm_ioctl_alloc(struct sm_priv_data_t *private,
42 + struct vmcs_sm_ioctl_alloc *ioparam)
46 @@ -1685,8 +1685,8 @@ error:
49 /* Share an allocate memory handle and block.*/
50 -int vc_sm_ioctl_alloc_share(struct sm_priv_data_t *private,
51 - struct vmcs_sm_ioctl_alloc_share *ioparam)
52 +static int vc_sm_ioctl_alloc_share(struct sm_priv_data_t *private,
53 + struct vmcs_sm_ioctl_alloc_share *ioparam)
55 struct sm_resource_t *resource, *shared_resource;
57 @@ -2200,9 +2200,9 @@ error:
60 /* Import a contiguous block of memory to be shared with VC. */
61 -int vc_sm_ioctl_import_dmabuf(struct sm_priv_data_t *private,
62 - struct vmcs_sm_ioctl_import_dmabuf *ioparam,
63 - struct dma_buf *src_dma_buf)
64 +static int vc_sm_ioctl_import_dmabuf(struct sm_priv_data_t *private,
65 + struct vmcs_sm_ioctl_import_dmabuf *ioparam,
66 + struct dma_buf *src_dma_buf)