linux-media.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 1/1] [media] s5p-fimc: Add missing static storage class
@ 2012-05-26 15:11 Sachin Kamat
  2012-05-27 20:39 ` Sylwester Nawrocki
  0 siblings, 1 reply; 4+ messages in thread
From: Sachin Kamat @ 2012-05-26 15:11 UTC (permalink / raw)
  To: linux-media; +Cc: s.nawrocki, mchehab, sachin.kamat, patches

Fixes the following sparse warnings:

drivers/media/video/s5p-fimc/fimc-lite-reg.c:218:6: warning: symbol
'flite_hw_set_out_order' was not declared. Should it be static?

drivers/media/video/s5p-fimc/fimc-mdevice.c:183:5: warning: symbol '__fimc_pipeline_shutdown' was not declared. Should it be static?
drivers/media/video/s5p-fimc/fimc-mdevice.c:1013:12: warning: symbol 'fimc_md_init' was not declared. Should it be static?
drivers/media/video/s5p-fimc/fimc-mdevice.c:1024:13: warning: symbol 'fimc_md_exit' was not declared. Should it be static?

drivers/media/video/s5p-fimc/fimc-core.c:466:5: warning: symbol 'fimc_set_color_effect' was not declared. Should it be static?

drivers/media/video/s5p-fimc/fimc-capture.c:1163:5: warning: symbol 'enclosed_rectangle' was not declared. Should it be static?

Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org>
---
 drivers/media/video/s5p-fimc/fimc-capture.c  |    2 +-
 drivers/media/video/s5p-fimc/fimc-core.c     |    2 +-
 drivers/media/video/s5p-fimc/fimc-lite-reg.c |    2 +-
 drivers/media/video/s5p-fimc/fimc-mdevice.c  |    7 ++++---
 4 files changed, 7 insertions(+), 6 deletions(-)

diff --git a/drivers/media/video/s5p-fimc/fimc-capture.c b/drivers/media/video/s5p-fimc/fimc-capture.c
index 516cd5b..b7caaf5 100644
--- a/drivers/media/video/s5p-fimc/fimc-capture.c
+++ b/drivers/media/video/s5p-fimc/fimc-capture.c
@@ -1160,7 +1160,7 @@ static int fimc_cap_g_selection(struct file *file, void *fh,
 }
 
 /* Return 1 if rectangle a is enclosed in rectangle b, or 0 otherwise. */
-int enclosed_rectangle(struct v4l2_rect *a, struct v4l2_rect *b)
+static int enclosed_rectangle(struct v4l2_rect *a, struct v4l2_rect *b)
 {
 	if (a->left < b->left || a->top < b->top)
 		return 0;
diff --git a/drivers/media/video/s5p-fimc/fimc-core.c b/drivers/media/video/s5p-fimc/fimc-core.c
index c2d621c..02c82c7 100644
--- a/drivers/media/video/s5p-fimc/fimc-core.c
+++ b/drivers/media/video/s5p-fimc/fimc-core.c
@@ -463,7 +463,7 @@ void fimc_prepare_dma_offset(struct fimc_ctx *ctx, struct fimc_frame *f)
 	    f->fmt->color, f->dma_offset.y_h, f->dma_offset.y_v);
 }
 
-int fimc_set_color_effect(struct fimc_ctx *ctx, enum v4l2_colorfx colorfx)
+static int fimc_set_color_effect(struct fimc_ctx *ctx, enum v4l2_colorfx colorfx)
 {
 	struct fimc_effect *effect = &ctx->effect;
 
diff --git a/drivers/media/video/s5p-fimc/fimc-lite-reg.c b/drivers/media/video/s5p-fimc/fimc-lite-reg.c
index 419adfb..f996e94 100644
--- a/drivers/media/video/s5p-fimc/fimc-lite-reg.c
+++ b/drivers/media/video/s5p-fimc/fimc-lite-reg.c
@@ -215,7 +215,7 @@ void flite_hw_set_camera_bus(struct fimc_lite *dev,
 	flite_hw_set_camera_port(dev, s_info->mux_id);
 }
 
-void flite_hw_set_out_order(struct fimc_lite *dev, struct flite_frame *f)
+static void flite_hw_set_out_order(struct fimc_lite *dev, struct flite_frame *f)
 {
 	static const u32 pixcode[4][2] = {
 		{ V4L2_MBUS_FMT_YUYV8_2X8, FLITE_REG_CIODMAFMT_YCBYCR },
diff --git a/drivers/media/video/s5p-fimc/fimc-mdevice.c b/drivers/media/video/s5p-fimc/fimc-mdevice.c
index 52cef48..e65bb28 100644
--- a/drivers/media/video/s5p-fimc/fimc-mdevice.c
+++ b/drivers/media/video/s5p-fimc/fimc-mdevice.c
@@ -180,7 +180,7 @@ EXPORT_SYMBOL_GPL(fimc_pipeline_initialize);
  * sensor clock.
  * Called with the graph mutex held.
  */
-int __fimc_pipeline_shutdown(struct fimc_pipeline *p)
+static int __fimc_pipeline_shutdown(struct fimc_pipeline *p)
 {
 	int ret = 0;
 
@@ -1010,7 +1010,7 @@ static struct platform_driver fimc_md_driver = {
 	}
 };
 
-int __init fimc_md_init(void)
+static int __init fimc_md_init(void)
 {
 	int ret;
 
@@ -1021,7 +1021,8 @@ int __init fimc_md_init(void)
 
 	return platform_driver_register(&fimc_md_driver);
 }
-void __exit fimc_md_exit(void)
+
+static void __exit fimc_md_exit(void)
 {
 	platform_driver_unregister(&fimc_md_driver);
 	fimc_unregister_driver();
-- 
1.7.5.4


^ permalink raw reply related	[flat|nested] 4+ messages in thread

* Re: [PATCH 1/1] [media] s5p-fimc: Add missing static storage class
  2012-05-26 15:11 [PATCH 1/1] [media] s5p-fimc: Add missing static storage class Sachin Kamat
@ 2012-05-27 20:39 ` Sylwester Nawrocki
  2012-06-11  4:27   ` Sachin Kamat
  0 siblings, 1 reply; 4+ messages in thread
From: Sylwester Nawrocki @ 2012-05-27 20:39 UTC (permalink / raw)
  To: Sachin Kamat; +Cc: linux-media, s.nawrocki, mchehab, patches

On 05/26/2012 05:11 PM, Sachin Kamat wrote:
> Fixes the following sparse warnings:

Hi Sachin. Thanks, in case somebody else applies this patch 
before I do:
Acked-by: Sylwester Nawrocki <s.nawrocki@samsung.com>

I would just change the summary line to:
"s5p-fimc: Add missing static storage class specifiers" when
applying this patch.

--
Regards,
Sylwester

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH 1/1] [media] s5p-fimc: Add missing static storage class
  2012-05-27 20:39 ` Sylwester Nawrocki
@ 2012-06-11  4:27   ` Sachin Kamat
  2012-06-18 14:11     ` Mauro Carvalho Chehab
  0 siblings, 1 reply; 4+ messages in thread
From: Sachin Kamat @ 2012-06-11  4:27 UTC (permalink / raw)
  To: Sylwester Nawrocki; +Cc: linux-media, s.nawrocki, mchehab, patches

On 28/05/2012, Sylwester Nawrocki <snjw23@gmail.com> wrote:
> On 05/26/2012 05:11 PM, Sachin Kamat wrote:
>> Fixes the following sparse warnings:
>
> Hi Sachin. Thanks, in case somebody else applies this patch
> before I do:
> Acked-by: Sylwester Nawrocki <s.nawrocki@samsung.com>
>

Thanks Sylwester.

> I would just change the summary line to:
> "s5p-fimc: Add missing static storage class specifiers" when
> applying this patch.

Ok.

>
> --
> Regards,
> Sylwester
>


-- 
With warm regards,
Sachin

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH 1/1] [media] s5p-fimc: Add missing static storage class
  2012-06-11  4:27   ` Sachin Kamat
@ 2012-06-18 14:11     ` Mauro Carvalho Chehab
  0 siblings, 0 replies; 4+ messages in thread
From: Mauro Carvalho Chehab @ 2012-06-18 14:11 UTC (permalink / raw)
  To: Sachin Kamat
  Cc: Sylwester Nawrocki, linux-media, s.nawrocki, mchehab, patches

Em 11-06-2012 01:27, Sachin Kamat escreveu:
> On 28/05/2012, Sylwester Nawrocki <snjw23@gmail.com> wrote:
>> On 05/26/2012 05:11 PM, Sachin Kamat wrote:
>>> Fixes the following sparse warnings:
>>
>> Hi Sachin. Thanks, in case somebody else applies this patch
>> before I do:
>> Acked-by: Sylwester Nawrocki <s.nawrocki@samsung.com>
>>
> 
> Thanks Sylwester.
> 
>> I would just change the summary line to:
>> "s5p-fimc: Add missing static storage class specifiers" when
>> applying this patch.

Applied with the above change.
> 
> Ok.
> 
>>
>> --
>> Regards,
>> Sylwester
>>
> 
> 



^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2012-06-18 14:11 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-05-26 15:11 [PATCH 1/1] [media] s5p-fimc: Add missing static storage class Sachin Kamat
2012-05-27 20:39 ` Sylwester Nawrocki
2012-06-11  4:27   ` Sachin Kamat
2012-06-18 14:11     ` Mauro Carvalho Chehab

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).