diff mbox

[2/2,media] s5p-g2d: Add missing static storage class in g2d.c file

Message ID 1336631748-25160-2-git-send-email-sachin.kamat@linaro.org
State Accepted
Headers show

Commit Message

Sachin Kamat May 10, 2012, 6:35 a.m. UTC
Fixes the following sparse warnings:
drivers/media/video/s5p-g2d/g2d.c:68:18: warning: symbol 'def_frame' was not declared. Should it be static?
drivers/media/video/s5p-g2d/g2d.c:80:16: warning: symbol 'find_fmt' was not declared. Should it be static?
drivers/media/video/s5p-g2d/g2d.c:205:5: warning: symbol 'g2d_setup_ctrls' was not declared. Should it be static?

Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org>
---
 drivers/media/video/s5p-g2d/g2d.c |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

Comments

Kamil Debski May 10, 2012, 8:57 a.m. UTC | #1
Hi Sachin,

Thanks for the patch.

Best regards,
--
Kamil Debski
Linux Platform Group
Samsung Poland R&D Center


> -----Original Message-----
> From: Sachin Kamat [mailto:sachin.kamat@linaro.org]
> Sent: 10 May 2012 08:36
> To: linux-media@vger.kernel.org
> Cc: mchehab@infradead.org; k.debski@samsung.com;
> kyungmin.park@samsung.com; sachin.kamat@linaro.org; patches@linaro.org
> Subject: [PATCH 2/2] [media] s5p-g2d: Add missing static storage class in
> g2d.c file
> 
> Fixes the following sparse warnings:
> drivers/media/video/s5p-g2d/g2d.c:68:18: warning: symbol 'def_frame' was
> not declared. Should it be static?
> drivers/media/video/s5p-g2d/g2d.c:80:16: warning: symbol 'find_fmt' was
> not declared. Should it be static?
> drivers/media/video/s5p-g2d/g2d.c:205:5: warning: symbol
> 'g2d_setup_ctrls' was not declared. Should it be static?
> 
> Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org>

Acked-by: Kamil Debski <k.debski@samsung.com>

> ---
>  drivers/media/video/s5p-g2d/g2d.c |    6 +++---
>  1 files changed, 3 insertions(+), 3 deletions(-)
> 
> diff --git a/drivers/media/video/s5p-g2d/g2d.c b/drivers/media/video/s5p-
> g2d/g2d.c
> index 70bee1c..115b936 100644
> --- a/drivers/media/video/s5p-g2d/g2d.c
> +++ b/drivers/media/video/s5p-g2d/g2d.c
> @@ -65,7 +65,7 @@ static struct g2d_fmt formats[] = {
>  };
>  #define NUM_FORMATS ARRAY_SIZE(formats)
> 
> -struct g2d_frame def_frame = {
> +static struct g2d_frame def_frame = {
>  	.width		= DEFAULT_WIDTH,
>  	.height		= DEFAULT_HEIGHT,
>  	.c_width	= DEFAULT_WIDTH,
> @@ -77,7 +77,7 @@ struct g2d_frame def_frame = {
>  	.bottom		= DEFAULT_HEIGHT,
>  };
> 
> -struct g2d_fmt *find_fmt(struct v4l2_format *f)
> +static struct g2d_fmt *find_fmt(struct v4l2_format *f)
>  {
>  	unsigned int i;
>  	for (i = 0; i < NUM_FORMATS; i++) {
> @@ -202,7 +202,7 @@ static const struct v4l2_ctrl_ops g2d_ctrl_ops = {
>  	.s_ctrl		= g2d_s_ctrl,
>  };
> 
> -int g2d_setup_ctrls(struct g2d_ctx *ctx)
> +static int g2d_setup_ctrls(struct g2d_ctx *ctx)
>  {
>  	struct g2d_dev *dev = ctx->dev;
> 
> --
> 1.7.4.1
diff mbox

Patch

diff --git a/drivers/media/video/s5p-g2d/g2d.c b/drivers/media/video/s5p-g2d/g2d.c
index 70bee1c..115b936 100644
--- a/drivers/media/video/s5p-g2d/g2d.c
+++ b/drivers/media/video/s5p-g2d/g2d.c
@@ -65,7 +65,7 @@  static struct g2d_fmt formats[] = {
 };
 #define NUM_FORMATS ARRAY_SIZE(formats)
 
-struct g2d_frame def_frame = {
+static struct g2d_frame def_frame = {
 	.width		= DEFAULT_WIDTH,
 	.height		= DEFAULT_HEIGHT,
 	.c_width	= DEFAULT_WIDTH,
@@ -77,7 +77,7 @@  struct g2d_frame def_frame = {
 	.bottom		= DEFAULT_HEIGHT,
 };
 
-struct g2d_fmt *find_fmt(struct v4l2_format *f)
+static struct g2d_fmt *find_fmt(struct v4l2_format *f)
 {
 	unsigned int i;
 	for (i = 0; i < NUM_FORMATS; i++) {
@@ -202,7 +202,7 @@  static const struct v4l2_ctrl_ops g2d_ctrl_ops = {
 	.s_ctrl		= g2d_s_ctrl,
 };
 
-int g2d_setup_ctrls(struct g2d_ctx *ctx)
+static int g2d_setup_ctrls(struct g2d_ctx *ctx)
 {
 	struct g2d_dev *dev = ctx->dev;