311ae66770667b088e68a16341ed978658c99d13
[openwrt/openwrt.git] / target / linux / brcm2708 / patches-4.19 / 950-0320-vcsm-Reduce-scope-of-local-functions.patch
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] vcsm: Reduce scope of local functions
5
6 The functions:
7
8 vc_vchi_sm_send_msg
9 vc_sm_ioctl_alloc
10 vc_sm_ioctl_alloc_share
11 vc_sm_ioctl_import_dmabuf
12
13 Are declared without a prototype. They are not used outside of this
14 module, thus - convert them to static functions.
15
16 Signed-off-by: Kieran Bingham <kieran.bingham@ideasonboard.com>
17 ---
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(-)
21
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:
25 return -EINVAL;
26 }
27
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:
36 }
37
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)
43 {
44 int ret = 0;
45 int status;
46 @@ -1685,8 +1685,8 @@ error:
47 }
48
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)
54 {
55 struct sm_resource_t *resource, *shared_resource;
56 int ret = 0;
57 @@ -2200,9 +2200,9 @@ error:
58 }
59
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)
67 {
68 int ret = 0;
69 int status;