OSDN Git Service

goldfish: pipe: ANDROID: mark local functions static
authorRoman Kiryanov <rkir@google.com>
Fri, 11 May 2018 18:19:38 +0000 (11:19 -0700)
committerRoman Kiryanov <rkir@google.com>
Fri, 11 May 2018 18:21:59 +0000 (11:21 -0700)
goldfish_dma_ioctl_getoff and goldfish_dma_ioctl_create_region
are not used outside of goldfish_pipe_v2.c - mark them
static.
Bug: 72717639
Bug: 66884503
Signed-off-by: Roman Kiryanov <rkir@google.com>
Change-Id: Id4fe524cc4db9d36b0c794ad9f34356f396153b4

drivers/platform/goldfish/goldfish_pipe_v2.c

index 3582fd6..90bac4b 100644 (file)
@@ -1059,7 +1059,8 @@ static int goldfish_pipe_dma_create_region(
        return -ENOMEM;
 }
 
-long goldfish_dma_ioctl_getoff(struct goldfish_pipe *pipe, unsigned long arg)
+static long goldfish_dma_ioctl_getoff(struct goldfish_pipe *pipe,
+       unsigned long arg)
 {
        struct device *pdev_dev = pipe->dev->pdev_dev;
        struct goldfish_dma_ioctl_info ioctl_data;
@@ -1096,7 +1097,7 @@ long goldfish_dma_ioctl_getoff(struct goldfish_pipe *pipe, unsigned long arg)
        return 0;
 }
 
-long goldfish_dma_ioctl_create_region(struct goldfish_pipe *pipe,
+static long goldfish_dma_ioctl_create_region(struct goldfish_pipe *pipe,
        unsigned long arg)
 {
        struct goldfish_dma_ioctl_info ioctl_data;