Skip to contentSkip to conversation

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

DISCUSSION Stephen Rothwell 2 participants 2 messages May 14, 2018 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/most/video/video.c: In function 'vidioc_enum_fmt_vid_cap':
drivers/staging/most/video/video.c:265:25: warning: unused variable 'mdev' [-Wunused-variable]

  struct most_video_dev *mdev = fh->mdev;
                         ^~~~
drivers/staging/most/video/video.c: In function 'vidioc_g_fmt_vid_cap':
drivers/staging/most/video/video.c:282:25: warning: unused variable 'mdev' [-Wunused-variable]
  struct most_video_dev *mdev = fh->mdev;
                         ^~~~
drivers/staging/most/video/video.c: In function 'vidioc_g_std':
drivers/staging/most/video/video.c:309:25: warning: unused variable 'mdev' [-Wunused-variable]
  struct most_video_dev *mdev = fh->mdev;
                         ^~~~

Introduced by commit

7d7cdb4fa552 ("staging: most: video: remove debugging code")

Signature · 2 lines
Cheers,
Stephen Rothwell
#1 lore raw
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/most/video/video.c: In function 'vidioc_enum_fmt_vid_cap':
drivers/staging/most/video/video.c:265:25: warning: unused variable 'mdev' [-Wunused-variable]

  struct most_video_dev *mdev = fh->mdev;
                         ^~~~
drivers/staging/most/video/video.c: In function 'vidioc_g_fmt_vid_cap':
drivers/staging/most/video/video.c:282:25: warning: unused variable 'mdev' [-Wunused-variable]
  struct most_video_dev *mdev = fh->mdev;
                         ^~~~
drivers/staging/most/video/video.c: In function 'vidioc_g_std':
drivers/staging/most/video/video.c:309:25: warning: unused variable 'mdev' [-Wunused-variable]
  struct most_video_dev *mdev = fh->mdev;
                         ^~~~
Quoted 3 lines

Introduced by commit

7d7cdb4fa552 ("staging: most: video: remove debugging code")

Sorry about this. This warning, and the other one in the staging tree, were not noticed by me due to my system updating to gcc-8 and the huge numbers of warnings it produced. Then 0-day went on a bender and didn't spit out anything for a few days...

I'll go fix this up now, thanks for the report.

greg k-h