* [linuxtv-media:master 499/499] drivers/media/usb/usbtv/usbtv-core.c:119:22: sparse: symbol 'usbtv_id_table' was not declared. Should it be static?
@ 2014-02-04 9:02 kbuild test robot
2014-03-05 17:27 ` Mauro Carvalho Chehab
0 siblings, 1 reply; 3+ messages in thread
From: kbuild test robot @ 2014-02-04 9:02 UTC (permalink / raw)
To: Federico Simoncelli
Cc: Hans Verkuil, linux-media, Mauro Carvalho Chehab, kbuild-all
[-- Attachment #1: Type: text/plain, Size: 3094 bytes --]
tree: git://linuxtv.org/media_tree.git master
head: a3550ea665acd1922df8275379028c1634675629
commit: a3550ea665acd1922df8275379028c1634675629 [499/499] [media] usbtv: split core and video implementation
reproduce: make C=1 CF=-D__CHECK_ENDIAN__
sparse warnings: (new ones prefixed by >>)
>> drivers/media/usb/usbtv/usbtv-core.c:119:22: sparse: symbol 'usbtv_id_table' was not declared. Should it be static?
>> drivers/media/usb/usbtv/usbtv-core.c:129:19: sparse: symbol 'usbtv_usb_driver' was not declared. Should it be static?
--
>> drivers/media/usb/usbtv/usbtv-video.c:285:14: sparse: cast to restricted __be32
>> drivers/media/usb/usbtv/usbtv-video.c:285:14: sparse: cast to restricted __be32
>> drivers/media/usb/usbtv/usbtv-video.c:285:14: sparse: cast to restricted __be32
>> drivers/media/usb/usbtv/usbtv-video.c:285:14: sparse: cast to restricted __be32
>> drivers/media/usb/usbtv/usbtv-video.c:285:14: sparse: cast to restricted __be32
>> drivers/media/usb/usbtv/usbtv-video.c:285:14: sparse: cast to restricted __be32
>> drivers/media/usb/usbtv/usbtv-video.c:287:20: sparse: cast to restricted __be32
>> drivers/media/usb/usbtv/usbtv-video.c:287:20: sparse: cast to restricted __be32
>> drivers/media/usb/usbtv/usbtv-video.c:287:20: sparse: cast to restricted __be32
>> drivers/media/usb/usbtv/usbtv-video.c:287:20: sparse: cast to restricted __be32
>> drivers/media/usb/usbtv/usbtv-video.c:287:20: sparse: cast to restricted __be32
>> drivers/media/usb/usbtv/usbtv-video.c:287:20: sparse: cast to restricted __be32
>> drivers/media/usb/usbtv/usbtv-video.c:288:15: sparse: cast to restricted __be32
>> drivers/media/usb/usbtv/usbtv-video.c:288:15: sparse: cast to restricted __be32
>> drivers/media/usb/usbtv/usbtv-video.c:288:15: sparse: cast to restricted __be32
>> drivers/media/usb/usbtv/usbtv-video.c:288:15: sparse: cast to restricted __be32
>> drivers/media/usb/usbtv/usbtv-video.c:288:15: sparse: cast to restricted __be32
>> drivers/media/usb/usbtv/usbtv-video.c:288:15: sparse: cast to restricted __be32
>> drivers/media/usb/usbtv/usbtv-video.c:289:20: sparse: cast to restricted __be32
>> drivers/media/usb/usbtv/usbtv-video.c:289:20: sparse: cast to restricted __be32
>> drivers/media/usb/usbtv/usbtv-video.c:289:20: sparse: cast to restricted __be32
>> drivers/media/usb/usbtv/usbtv-video.c:289:20: sparse: cast to restricted __be32
>> drivers/media/usb/usbtv/usbtv-video.c:289:20: sparse: cast to restricted __be32
>> drivers/media/usb/usbtv/usbtv-video.c:289:20: sparse: cast to restricted __be32
>> drivers/media/usb/usbtv/usbtv-video.c:565:23: sparse: symbol 'usbtv_ioctl_ops' was not declared. Should it be static?
>> drivers/media/usb/usbtv/usbtv-video.c:587:29: sparse: symbol 'usbtv_fops' was not declared. Should it be static?
>> drivers/media/usb/usbtv/usbtv-video.c:648:16: sparse: symbol 'usbtv_vb2_ops' was not declared. Should it be static?
Please consider folding the attached diff :-)
---
0-DAY kernel build testing backend Open Source Technology Center
http://lists.01.org/mailman/listinfo/kbuild Intel Corporation
[-- Attachment #2: make-it-static-a3550ea665acd1922df8275379028c1634675629.diff --]
[-- Type: text/x-diff, Size: 2505 bytes --]
From: Fengguang Wu <fengguang.wu@intel.com>
Subject: [PATCH linuxtv-media] usbtv: usbtv_id_table[] can be static
TO: Federico Simoncelli <fsimonce@redhat.com>
CC: Mauro Carvalho Chehab <m.chehab@samsung.com>
CC: linux-media@vger.kernel.org
CC: linux-media@vger.kernel.org
CC: linux-kernel@vger.kernel.org
CC: Federico Simoncelli <fsimonce@redhat.com>
CC: Mauro Carvalho Chehab <m.chehab@samsung.com>
CC: linux-media@vger.kernel.org
Signed-off-by: Fengguang Wu <fengguang.wu@intel.com>
---
usbtv-core.c | 4 ++--
usbtv-video.c | 6 +++---
2 files changed, 5 insertions(+), 5 deletions(-)
diff --git a/drivers/media/usb/usbtv/usbtv-core.c b/drivers/media/usb/usbtv/usbtv-core.c
index e89e48b..2dd47e0 100644
--- a/drivers/media/usb/usbtv/usbtv-core.c
+++ b/drivers/media/usb/usbtv/usbtv-core.c
@@ -116,7 +116,7 @@ static void usbtv_disconnect(struct usb_interface *intf)
v4l2_device_put(&usbtv->v4l2_dev);
}
-struct usb_device_id usbtv_id_table[] = {
+static struct usb_device_id usbtv_id_table[] = {
{ USB_DEVICE(0x1b71, 0x3002) },
{}
};
@@ -126,7 +126,7 @@ MODULE_AUTHOR("Lubomir Rintel");
MODULE_DESCRIPTION("Fushicai USBTV007 Video Grabber Driver");
MODULE_LICENSE("Dual BSD/GPL");
-struct usb_driver usbtv_usb_driver = {
+static struct usb_driver usbtv_usb_driver = {
.name = "usbtv",
.id_table = usbtv_id_table,
.probe = usbtv_probe,
diff --git a/drivers/media/usb/usbtv/usbtv-video.c b/drivers/media/usb/usbtv/usbtv-video.c
index 496bc2e..029ea7c 100644
--- a/drivers/media/usb/usbtv/usbtv-video.c
+++ b/drivers/media/usb/usbtv/usbtv-video.c
@@ -562,7 +562,7 @@ static int usbtv_s_input(struct file *file, void *priv, unsigned int i)
return usbtv_select_input(usbtv, i);
}
-struct v4l2_ioctl_ops usbtv_ioctl_ops = {
+static struct v4l2_ioctl_ops usbtv_ioctl_ops = {
.vidioc_querycap = usbtv_querycap,
.vidioc_enum_input = usbtv_enum_input,
.vidioc_enum_fmt_vid_cap = usbtv_enum_fmt_vid_cap,
@@ -584,7 +584,7 @@ struct v4l2_ioctl_ops usbtv_ioctl_ops = {
.vidioc_streamoff = vb2_ioctl_streamoff,
};
-struct v4l2_file_operations usbtv_fops = {
+static struct v4l2_file_operations usbtv_fops = {
.owner = THIS_MODULE,
.unlocked_ioctl = video_ioctl2,
.mmap = vb2_fop_mmap,
@@ -645,7 +645,7 @@ static int usbtv_stop_streaming(struct vb2_queue *vq)
return 0;
}
-struct vb2_ops usbtv_vb2_ops = {
+static struct vb2_ops usbtv_vb2_ops = {
.queue_setup = usbtv_queue_setup,
.buf_queue = usbtv_buf_queue,
.start_streaming = usbtv_start_streaming,
^ permalink raw reply related [flat|nested] 3+ messages in thread* Re: [linuxtv-media:master 499/499] drivers/media/usb/usbtv/usbtv-core.c:119:22: sparse: symbol 'usbtv_id_table' was not declared. Should it be static?
2014-02-04 9:02 [linuxtv-media:master 499/499] drivers/media/usb/usbtv/usbtv-core.c:119:22: sparse: symbol 'usbtv_id_table' was not declared. Should it be static? kbuild test robot
@ 2014-03-05 17:27 ` Mauro Carvalho Chehab
2014-03-05 20:31 ` Mauro Carvalho Chehab
0 siblings, 1 reply; 3+ messages in thread
From: Mauro Carvalho Chehab @ 2014-03-05 17:27 UTC (permalink / raw)
To: kbuild test robot
Cc: Federico Simoncelli, Hans Verkuil, linux-media, kbuild-all
Hi Fengguang,
This patch got obsoleted by another patch in the same series.
Unfortunately, I had to break sending the patch series into a few
pushes, as my mailbomb script has a logic there that prevents it to
send more than 30~50 emails (I never remember the exact setting).
So, I pushed this 80-series into a few pushes. You likely compiled the
tree without waiting for the hole series to be upstreamed.
Regards,
Mauro
Em Tue, 04 Feb 2014 17:02:02 +0800
kbuild test robot <fengguang.wu@intel.com> escreveu:
> tree: git://linuxtv.org/media_tree.git master
> head: a3550ea665acd1922df8275379028c1634675629
> commit: a3550ea665acd1922df8275379028c1634675629 [499/499] [media] usbtv: split core and video implementation
> reproduce: make C=1 CF=-D__CHECK_ENDIAN__
>
>
> sparse warnings: (new ones prefixed by >>)
>
> >> drivers/media/usb/usbtv/usbtv-core.c:119:22: sparse: symbol 'usbtv_id_table' was not declared. Should it be static?
> >> drivers/media/usb/usbtv/usbtv-core.c:129:19: sparse: symbol 'usbtv_usb_driver' was not declared. Should it be static?
> --
> >> drivers/media/usb/usbtv/usbtv-video.c:285:14: sparse: cast to restricted __be32
> >> drivers/media/usb/usbtv/usbtv-video.c:285:14: sparse: cast to restricted __be32
> >> drivers/media/usb/usbtv/usbtv-video.c:285:14: sparse: cast to restricted __be32
> >> drivers/media/usb/usbtv/usbtv-video.c:285:14: sparse: cast to restricted __be32
> >> drivers/media/usb/usbtv/usbtv-video.c:285:14: sparse: cast to restricted __be32
> >> drivers/media/usb/usbtv/usbtv-video.c:285:14: sparse: cast to restricted __be32
> >> drivers/media/usb/usbtv/usbtv-video.c:287:20: sparse: cast to restricted __be32
> >> drivers/media/usb/usbtv/usbtv-video.c:287:20: sparse: cast to restricted __be32
> >> drivers/media/usb/usbtv/usbtv-video.c:287:20: sparse: cast to restricted __be32
> >> drivers/media/usb/usbtv/usbtv-video.c:287:20: sparse: cast to restricted __be32
> >> drivers/media/usb/usbtv/usbtv-video.c:287:20: sparse: cast to restricted __be32
> >> drivers/media/usb/usbtv/usbtv-video.c:287:20: sparse: cast to restricted __be32
> >> drivers/media/usb/usbtv/usbtv-video.c:288:15: sparse: cast to restricted __be32
> >> drivers/media/usb/usbtv/usbtv-video.c:288:15: sparse: cast to restricted __be32
> >> drivers/media/usb/usbtv/usbtv-video.c:288:15: sparse: cast to restricted __be32
> >> drivers/media/usb/usbtv/usbtv-video.c:288:15: sparse: cast to restricted __be32
> >> drivers/media/usb/usbtv/usbtv-video.c:288:15: sparse: cast to restricted __be32
> >> drivers/media/usb/usbtv/usbtv-video.c:288:15: sparse: cast to restricted __be32
> >> drivers/media/usb/usbtv/usbtv-video.c:289:20: sparse: cast to restricted __be32
> >> drivers/media/usb/usbtv/usbtv-video.c:289:20: sparse: cast to restricted __be32
> >> drivers/media/usb/usbtv/usbtv-video.c:289:20: sparse: cast to restricted __be32
> >> drivers/media/usb/usbtv/usbtv-video.c:289:20: sparse: cast to restricted __be32
> >> drivers/media/usb/usbtv/usbtv-video.c:289:20: sparse: cast to restricted __be32
> >> drivers/media/usb/usbtv/usbtv-video.c:289:20: sparse: cast to restricted __be32
> >> drivers/media/usb/usbtv/usbtv-video.c:565:23: sparse: symbol 'usbtv_ioctl_ops' was not declared. Should it be static?
> >> drivers/media/usb/usbtv/usbtv-video.c:587:29: sparse: symbol 'usbtv_fops' was not declared. Should it be static?
> >> drivers/media/usb/usbtv/usbtv-video.c:648:16: sparse: symbol 'usbtv_vb2_ops' was not declared. Should it be static?
>
> Please consider folding the attached diff :-)
>
> ---
> 0-DAY kernel build testing backend Open Source Technology Center
> http://lists.01.org/mailman/listinfo/kbuild Intel Corporation
--
Cheers,
Mauro
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [linuxtv-media:master 499/499] drivers/media/usb/usbtv/usbtv-core.c:119:22: sparse: symbol 'usbtv_id_table' was not declared. Should it be static?
2014-03-05 17:27 ` Mauro Carvalho Chehab
@ 2014-03-05 20:31 ` Mauro Carvalho Chehab
0 siblings, 0 replies; 3+ messages in thread
From: Mauro Carvalho Chehab @ 2014-03-05 20:31 UTC (permalink / raw)
To: Mauro Carvalho Chehab
Cc: kbuild test robot, Federico Simoncelli, Hans Verkuil, linux-media,
kbuild-all
Em Wed, 5 Mar 2014 14:27:46 -0300
Mauro Carvalho Chehab <m.chehab@samsung.com> escreveu:
> Hi Fengguang,
>
> This patch got obsoleted by another patch in the same series.
>
> Unfortunately, I had to break sending the patch series into a few
> pushes, as my mailbomb script has a logic there that prevents it to
> send more than 30~50 emails (I never remember the exact setting).
>
> So, I pushed this 80-series into a few pushes. You likely compiled the
> tree without waiting for the hole series to be upstreamed.
Sorry, I sent the reply to the wrong patch. The above comments are for
this patch:
Subject: [PATCH linuxtv-media] drx-j: drxj_default_aud_data_g can be static
That was on the email with this title:
[linuxtv-media:master 428/499] drivers/media/dvb-frontends/drx39xyj/drxj.c:1039:16: sparse: symbol 'drxj_default_aud_data_g' was not declared. Should
Regards,
Mauro
>
> Regards,
> Mauro
>
> Em Tue, 04 Feb 2014 17:02:02 +0800
> kbuild test robot <fengguang.wu@intel.com> escreveu:
>
> > tree: git://linuxtv.org/media_tree.git master
> > head: a3550ea665acd1922df8275379028c1634675629
> > commit: a3550ea665acd1922df8275379028c1634675629 [499/499] [media] usbtv: split core and video implementation
> > reproduce: make C=1 CF=-D__CHECK_ENDIAN__
> >
> >
> > sparse warnings: (new ones prefixed by >>)
> >
> > >> drivers/media/usb/usbtv/usbtv-core.c:119:22: sparse: symbol 'usbtv_id_table' was not declared. Should it be static?
> > >> drivers/media/usb/usbtv/usbtv-core.c:129:19: sparse: symbol 'usbtv_usb_driver' was not declared. Should it be static?
> > --
> > >> drivers/media/usb/usbtv/usbtv-video.c:285:14: sparse: cast to restricted __be32
> > >> drivers/media/usb/usbtv/usbtv-video.c:285:14: sparse: cast to restricted __be32
> > >> drivers/media/usb/usbtv/usbtv-video.c:285:14: sparse: cast to restricted __be32
> > >> drivers/media/usb/usbtv/usbtv-video.c:285:14: sparse: cast to restricted __be32
> > >> drivers/media/usb/usbtv/usbtv-video.c:285:14: sparse: cast to restricted __be32
> > >> drivers/media/usb/usbtv/usbtv-video.c:285:14: sparse: cast to restricted __be32
> > >> drivers/media/usb/usbtv/usbtv-video.c:287:20: sparse: cast to restricted __be32
> > >> drivers/media/usb/usbtv/usbtv-video.c:287:20: sparse: cast to restricted __be32
> > >> drivers/media/usb/usbtv/usbtv-video.c:287:20: sparse: cast to restricted __be32
> > >> drivers/media/usb/usbtv/usbtv-video.c:287:20: sparse: cast to restricted __be32
> > >> drivers/media/usb/usbtv/usbtv-video.c:287:20: sparse: cast to restricted __be32
> > >> drivers/media/usb/usbtv/usbtv-video.c:287:20: sparse: cast to restricted __be32
> > >> drivers/media/usb/usbtv/usbtv-video.c:288:15: sparse: cast to restricted __be32
> > >> drivers/media/usb/usbtv/usbtv-video.c:288:15: sparse: cast to restricted __be32
> > >> drivers/media/usb/usbtv/usbtv-video.c:288:15: sparse: cast to restricted __be32
> > >> drivers/media/usb/usbtv/usbtv-video.c:288:15: sparse: cast to restricted __be32
> > >> drivers/media/usb/usbtv/usbtv-video.c:288:15: sparse: cast to restricted __be32
> > >> drivers/media/usb/usbtv/usbtv-video.c:288:15: sparse: cast to restricted __be32
> > >> drivers/media/usb/usbtv/usbtv-video.c:289:20: sparse: cast to restricted __be32
> > >> drivers/media/usb/usbtv/usbtv-video.c:289:20: sparse: cast to restricted __be32
> > >> drivers/media/usb/usbtv/usbtv-video.c:289:20: sparse: cast to restricted __be32
> > >> drivers/media/usb/usbtv/usbtv-video.c:289:20: sparse: cast to restricted __be32
> > >> drivers/media/usb/usbtv/usbtv-video.c:289:20: sparse: cast to restricted __be32
> > >> drivers/media/usb/usbtv/usbtv-video.c:289:20: sparse: cast to restricted __be32
> > >> drivers/media/usb/usbtv/usbtv-video.c:565:23: sparse: symbol 'usbtv_ioctl_ops' was not declared. Should it be static?
> > >> drivers/media/usb/usbtv/usbtv-video.c:587:29: sparse: symbol 'usbtv_fops' was not declared. Should it be static?
> > >> drivers/media/usb/usbtv/usbtv-video.c:648:16: sparse: symbol 'usbtv_vb2_ops' was not declared. Should it be static?
> >
> > Please consider folding the attached diff :-)
> >
> > ---
> > 0-DAY kernel build testing backend Open Source Technology Center
> > http://lists.01.org/mailman/listinfo/kbuild Intel Corporation
>
>
--
Cheers,
Mauro
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2014-03-05 20:32 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-02-04 9:02 [linuxtv-media:master 499/499] drivers/media/usb/usbtv/usbtv-core.c:119:22: sparse: symbol 'usbtv_id_table' was not declared. Should it be static? kbuild test robot
2014-03-05 17:27 ` Mauro Carvalho Chehab
2014-03-05 20:31 ` 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