summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGuru Das Srinagesh <gurooodas@gmail.com>2017-05-18 10:50:17 -0300
committerMauro Carvalho Chehab <mchehab@s-opensource.com>2017-05-19 06:57:14 -0300
commitc2c611b7b4f6cccbaea47e6b4a6853a129ddd1f8 (patch)
tree2b5edf8852aa7942e56a326f735577468f74b3fa
parent8c7e9a738155b8c6c0bc3662d8f5a264106c712c (diff)
downloadlinux-stable-c2c611b7b4f6cccbaea47e6b4a6853a129ddd1f8.tar.gz
linux-stable-c2c611b7b4f6cccbaea47e6b4a6853a129ddd1f8.tar.bz2
linux-stable-c2c611b7b4f6cccbaea47e6b4a6853a129ddd1f8.zip
[media] atomisp: Make undeclared symbols static
Fix sparse warnings: "symbol not declared; should it be static?" Signed-off-by: Guru Das Srinagesh <gurooodas@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org> Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
-rw-r--r--drivers/staging/media/atomisp/pci/atomisp2/atomisp_fops.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/drivers/staging/media/atomisp/pci/atomisp2/atomisp_fops.c b/drivers/staging/media/atomisp/pci/atomisp2/atomisp_fops.c
index 7ce8803cf6f9..c151c848cf8f 100644
--- a/drivers/staging/media/atomisp/pci/atomisp2/atomisp_fops.c
+++ b/drivers/staging/media/atomisp/pci/atomisp2/atomisp_fops.c
@@ -130,9 +130,9 @@ static int atomisp_q_one_metadata_buffer(struct atomisp_sub_device *asd,
return 0;
}
-int atomisp_q_one_s3a_buffer(struct atomisp_sub_device *asd,
- enum atomisp_input_stream_id stream_id,
- enum atomisp_css_pipe_id css_pipe_id)
+static int atomisp_q_one_s3a_buffer(struct atomisp_sub_device *asd,
+ enum atomisp_input_stream_id stream_id,
+ enum atomisp_css_pipe_id css_pipe_id)
{
struct atomisp_s3a_buf *s3a_buf;
struct list_head *s3a_list;
@@ -172,9 +172,9 @@ int atomisp_q_one_s3a_buffer(struct atomisp_sub_device *asd,
return 0;
}
-int atomisp_q_one_dis_buffer(struct atomisp_sub_device *asd,
- enum atomisp_input_stream_id stream_id,
- enum atomisp_css_pipe_id css_pipe_id)
+static int atomisp_q_one_dis_buffer(struct atomisp_sub_device *asd,
+ enum atomisp_input_stream_id stream_id,
+ enum atomisp_css_pipe_id css_pipe_id)
{
struct atomisp_dis_buf *dis_buf;
unsigned long irqflags;
@@ -744,7 +744,7 @@ static void atomisp_subdev_init_struct(struct atomisp_sub_device *asd)
/*
* file operation functions
*/
-unsigned int atomisp_subdev_users(struct atomisp_sub_device *asd)
+static unsigned int atomisp_subdev_users(struct atomisp_sub_device *asd)
{
return asd->video_out_preview.users +
asd->video_out_vf.users +