bcm27xx: update patches from RPi foundation
[openwrt/openwrt.git] / target / linux / bcm27xx / patches-5.4 / 950-0740-dma-heap-Make-the-symbol-dma_heap_ioctl_cmds-static.patch
1 From d59927ce7f8a4ee9abcad9bd3405881c7a9ac99e Mon Sep 17 00:00:00 2001
2 From: zhong jiang <zhongjiang@huawei.com>
3 Date: Wed, 18 Dec 2019 00:38:22 +0530
4 Subject: [PATCH] dma-heap: Make the symbol 'dma_heap_ioctl_cmds'
5 static
6
7 Commit 7d411afe8444060454a53b1f9b70ee78b3e75ef1 upstream.
8
9 Fix the following sparse warning.
10
11 drivers/dma-buf/dma-heap.c:109:14: warning: symbol 'dma_heap_ioctl_cmds'
12 was not declared. Should it be static?
13
14 Acked-by: Andrew F. Davis <afd@ti.com>
15 Acked-by: John Stultz <john.stultz@linaro.org>
16 Signed-off-by: zhong jiang <zhongjiang@huawei.com>
17 Signed-off-by: Sumit Semwal <sumit.semwal@linaro.org>
18 [sumits: rebased over IOCTL rename patches]
19 Link: https://patchwork.freedesktop.org/patch/msgid/20191217190822.1969-1-sumit.semwal@linaro.org
20 ---
21 drivers/dma-buf/dma-heap.c | 2 +-
22 1 file changed, 1 insertion(+), 1 deletion(-)
23
24 --- a/drivers/dma-buf/dma-heap.c
25 +++ b/drivers/dma-buf/dma-heap.c
26 @@ -106,7 +106,7 @@ static long dma_heap_ioctl_allocate(stru
27 return 0;
28 }
29
30 -unsigned int dma_heap_ioctl_cmds[] = {
31 +static unsigned int dma_heap_ioctl_cmds[] = {
32 DMA_HEAP_IOCTL_ALLOC,
33 };
34