Skip to contentSkip to conversation

linux-next: build warnings after merge of the staging tree

DISCUSSION Stephen Rothwell 3 participants 5 messages Jul 31, 2017 – Aug 22, 2017 Linux-next tree

lore
Share & tools
lore
#0 lore raw

Hi Greg,

After merging the staging tree, today's linux-next build (x86_64 allmodconfig) produced this warning:

drivers/staging/media/atomisp/i2c/imx/imx.c:1087:12: warning: 'imx_vcm_power_up' defined but not used [-Wunused-function]
static int imx_vcm_power_up(struct v4l2_subdev *sd)

            ^
drivers/staging/media/atomisp/i2c/imx/imx.c:1095:12: warning: 'imx_vcm_power_down' defined but not used [-Wunused-function]
 static int imx_vcm_power_down(struct v4l2_subdev *sd)
            ^
drivers/staging/media/atomisp/i2c/imx/imx.c:1103:12: warning: 'imx_vcm_init' defined but not used [-Wunused-function]
 static int imx_vcm_init(struct v4l2_subdev *sd)
            ^
drivers/staging/media/atomisp/i2c/imx/imx.c:1111:12: warning: 'imx_t_focus_vcm' defined but not used [-Wunused-function]
 static int imx_t_focus_vcm(struct v4l2_subdev *sd, u16 val)
            ^

Introduced by commit

9a5a6911aa3f ("staging: imx: fix non-static declarations")

Signature · 2 lines
Cheers,
Stephen Rothwell
#1 lore raw

Hi all,

Quoted 17 lines · On Mon, 31 Jul 2017 15:02:27 +1000 Stephen Rothwell <[email protected]>…

After merging the staging tree, today's linux-next build (x86_64 allmodconfig) produced this warning:

drivers/staging/media/atomisp/i2c/imx/imx.c:1087:12: warning: 'imx_vcm_power_up' defined but not used [-Wunused-function]
static int imx_vcm_power_up(struct v4l2_subdev *sd)

            ^
drivers/staging/media/atomisp/i2c/imx/imx.c:1095:12: warning: 'imx_vcm_power_down' defined but not used [-Wunused-function]
 static int imx_vcm_power_down(struct v4l2_subdev *sd)
            ^
drivers/staging/media/atomisp/i2c/imx/imx.c:1103:12: warning: 'imx_vcm_init' defined but not used [-Wunused-function]
 static int imx_vcm_init(struct v4l2_subdev *sd)
            ^
drivers/staging/media/atomisp/i2c/imx/imx.c:1111:12: warning: 'imx_t_focus_vcm' defined but not used [-Wunused-function]
 static int imx_t_focus_vcm(struct v4l2_subdev *sd, u16 val)
            ^
Quoted 3 lines

Introduced by commit

9a5a6911aa3f ("staging: imx: fix non-static declarations")

There is now another copy of this commit in the v4l-dvb tree producing the same warnings :-(

Signature · 2 lines
Cheers,
Stephen Rothwell
#2 lore raw

Hi Mauro,

Quoted 19 lines · On Wed, 9 Aug 2017 11:25:22 +1000 Stephen Rothwell <[email protected]> wrote:
Quoted 17 lines · On Mon, 31 Jul 2017 15:02:27 +1000 Stephen Rothwell <[email protected]>…

After merging the staging tree, today's linux-next build (x86_64 allmodconfig) produced this warning:

drivers/staging/media/atomisp/i2c/imx/imx.c:1087:12: warning: 'imx_vcm_power_up' defined but not used [-Wunused-function]
static int imx_vcm_power_up(struct v4l2_subdev *sd)

            ^
drivers/staging/media/atomisp/i2c/imx/imx.c:1095:12: warning: 'imx_vcm_power_down' defined but not used [-Wunused-function]
 static int imx_vcm_power_down(struct v4l2_subdev *sd)
            ^
drivers/staging/media/atomisp/i2c/imx/imx.c:1103:12: warning: 'imx_vcm_init' defined but not used [-Wunused-function]
 static int imx_vcm_init(struct v4l2_subdev *sd)
            ^
drivers/staging/media/atomisp/i2c/imx/imx.c:1111:12: warning: 'imx_t_focus_vcm' defined but not used [-Wunused-function]
 static int imx_t_focus_vcm(struct v4l2_subdev *sd, u16 val)
            ^
Quoted 6 lines
Quoted 3 lines

Introduced by commit

9a5a6911aa3f ("staging: imx: fix non-static declarations")

There is now another copy of this commit in the v4l-dvb tree producing the same warnings :-(

Any chance this will be fixed in the v4l-dvb tree?

Signature · 2 lines
Cheers,
Stephen Rothwell
#3 lore raw
In reply to Stephen Rothwell
Quoted 18 lines · Stephen Rothwell

Hi Greg,

After merging the staging tree, today's linux-next build (x86_64 allmodconfig) produced this warning:

drivers/staging/media/atomisp/i2c/imx/imx.c:1087:12: warning: 'imx_vcm_power_up' defined but not used [-Wunused-function]
static int imx_vcm_power_up(struct v4l2_subdev *sd)

            ^
drivers/staging/media/atomisp/i2c/imx/imx.c:1095:12: warning: 'imx_vcm_power_down' defined but not used [-Wunused-function]
 static int imx_vcm_power_down(struct v4l2_subdev *sd)
            ^
drivers/staging/media/atomisp/i2c/imx/imx.c:1103:12: warning: 'imx_vcm_init' defined but not used [-Wunused-function]
 static int imx_vcm_init(struct v4l2_subdev *sd)
            ^
drivers/staging/media/atomisp/i2c/imx/imx.c:1111:12: warning: 'imx_t_focus_vcm' defined but not used [-Wunused-function]
 static int imx_t_focus_vcm(struct v4l2_subdev *sd, u16 val)
            ^
Quoted 3 lines

Introduced by commit

9a5a6911aa3f ("staging: imx: fix non-static declarations")

Sorry for the delay, now dropped from my tree, I shouldn't have taken it in the first place :(

greg k-h

#4 lore raw
Quoted 19 lines · On Thu, 17 Aug 2017 10:57:43 -0700 Greg KH <[email protected]> wrote:
Quoted 18 lines · Stephen Rothwell

Hi Greg,

After merging the staging tree, today's linux-next build (x86_64 allmodconfig) produced this warning:

drivers/staging/media/atomisp/i2c/imx/imx.c:1087:12: warning: 'imx_vcm_power_up' defined but not used [-Wunused-function]
static int imx_vcm_power_up(struct v4l2_subdev *sd)

            ^
drivers/staging/media/atomisp/i2c/imx/imx.c:1095:12: warning: 'imx_vcm_power_down' defined but not used [-Wunused-function]
 static int imx_vcm_power_down(struct v4l2_subdev *sd)
            ^
drivers/staging/media/atomisp/i2c/imx/imx.c:1103:12: warning: 'imx_vcm_init' defined but not used [-Wunused-function]
 static int imx_vcm_init(struct v4l2_subdev *sd)
            ^
drivers/staging/media/atomisp/i2c/imx/imx.c:1111:12: warning: 'imx_t_focus_vcm' defined but not used [-Wunused-function]
 static int imx_t_focus_vcm(struct v4l2_subdev *sd, u16 val)
            ^
Quoted 8 lines
Quoted 3 lines

Introduced by commit

9a5a6911aa3f ("staging: imx: fix non-static declarations")

Sorry for the delay, now dropped from my tree, I shouldn't have taken it in the first place :(

greg k-h

Hi,

Sorry about that. I will be more careful next time.

JB