Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1296678 > unrolled thread

next-20151222 - compile failure in drivers/media/usb/uvc/uvc_driver.c

Started byValdis Kletnieks <Valdis.Kletnieks@vt.edu>
First post2015-12-22 11:20 +0100
Last post2015-12-23 13:30 +0100
Articles 7 — 5 participants

Back to article view | Back to linux.kernel


Contents

  next-20151222 - compile failure in drivers/media/usb/uvc/uvc_driver.c Valdis Kletnieks <Valdis.Kletnieks@vt.edu> - 2015-12-22 11:20 +0100
    Re: next-20151222 - compile failure in  drivers/media/usb/uvc/uvc_driver.c Javier Martinez Canillas <javier@osg.samsung.com> - 2015-12-22 13:50 +0100
      Re: next-20151222 - compile failure in drivers/media/usb/uvc/uvc_driver.c Valdis.Kletnieks@vt.edu - 2015-12-22 18:10 +0100
      Re: next-20151222 - compile failure in drivers/media/usb/uvc/uvc_driver.c Laurent Pinchart <laurent.pinchart@ideasonboard.com> - 2015-12-22 19:10 +0100
        Re: next-20151222 - compile failure in  drivers/media/usb/uvc/uvc_driver.c Mauro Carvalho Chehab <mchehab@osg.samsung.com> - 2015-12-22 19:40 +0100
          Re: next-20151222 - compile failure in drivers/media/usb/uvc/uvc_driver.c Laurent Pinchart <laurent.pinchart@ideasonboard.com> - 2015-12-23 00:10 +0100
            Re: next-20151222 - compile failure in  drivers/media/usb/uvc/uvc_driver.c Mauro Carvalho Chehab <mchehab@osg.samsung.com> - 2015-12-23 13:30 +0100

#1296678 — next-20151222 - compile failure in drivers/media/usb/uvc/uvc_driver.c

FromValdis Kletnieks <Valdis.Kletnieks@vt.edu>
Date2015-12-22 11:20 +0100
Subjectnext-20151222 - compile failure in drivers/media/usb/uvc/uvc_driver.c
Message-ID<qIscV-2CJ-17@gated-at.bofh.it>
next-20151222 fails to build for me:

  CC      drivers/media/usb/uvc/uvc_driver.o
drivers/media/usb/uvc/uvc_driver.c: In function 'uvc_probe':
drivers/media/usb/uvc/uvc_driver.c:1941:32: error: 'struct uvc_device' has no member named 'mdev'
  if (media_device_register(&dev->mdev) < 0)
                                ^
scripts/Makefile.build:258: recipe for target 'drivers/media/usb/uvc/uvc_driver.o' failed

'git blame' points at that line being added in:

commit 1590ad7b52714fddc958189103c95541b49b1dae
Author: Javier Martinez Canillas <javier@osg.samsung.com>
Date:   Fri Dec 11 20:57:08 2015 -0200

    [media] media-device: split media initialization and registration

Not sure what went wrong here.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

[toc] | [next] | [standalone]


#1296772 — Re: next-20151222 - compile failure in drivers/media/usb/uvc/uvc_driver.c

FromJavier Martinez Canillas <javier@osg.samsung.com>
Date2015-12-22 13:50 +0100
SubjectRe: next-20151222 - compile failure in drivers/media/usb/uvc/uvc_driver.c
Message-ID<qIuy7-41F-21@gated-at.bofh.it>
In reply to#1296678
Hello Valdis,

On 12/22/2015 07:18 AM, Valdis Kletnieks wrote:
> next-20151222 fails to build for me:
> 
>   CC      drivers/media/usb/uvc/uvc_driver.o
> drivers/media/usb/uvc/uvc_driver.c: In function 'uvc_probe':
> drivers/media/usb/uvc/uvc_driver.c:1941:32: error: 'struct uvc_device' has no member named 'mdev'
>   if (media_device_register(&dev->mdev) < 0)
>                                 ^
> scripts/Makefile.build:258: recipe for target 'drivers/media/usb/uvc/uvc_driver.o' failed
> 
> 'git blame' points at that line being added in:
> 
> commit 1590ad7b52714fddc958189103c95541b49b1dae
> Author: Javier Martinez Canillas <javier@osg.samsung.com>
> Date:   Fri Dec 11 20:57:08 2015 -0200
> 
>     [media] media-device: split media initialization and registration
> 
> Not sure what went wrong here.
>

It was my forgetting to test with !CONFIG_MEDIA_CONTROLLER...

Anyways, I've already posted a fix for this:

https://lkml.org/lkml/2015/12/21/224

Best regards,
-- 
Javier Martinez Canillas
Open Source Group
Samsung Research America
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

[toc] | [prev] | [next] | [standalone]


#1296902

FromValdis.Kletnieks@vt.edu
Date2015-12-22 18:10 +0100
Message-ID<qIyBI-6Kl-19@gated-at.bofh.it>
In reply to#1296772

[Multipart message — attachments visible in raw view] — view raw

On Tue, 22 Dec 2015 09:40:43 -0300, Javier Martinez Canillas said:

> It was my forgetting to test with !CONFIG_MEDIA_CONTROLLER...
>
> Anyways, I've already posted a fix for this:
>
> https://lkml.org/lkml/2015/12/21/224

Thanks, that fixed it.  When I posted, Google hadn't indexed that post
yet (or wasn't telling me about it), and it had escaped landing in my
mailbox by then.  Now that you reply, both Google and my mailbox have
it. :)

[toc] | [prev] | [next] | [standalone]


#1296949

FromLaurent Pinchart <laurent.pinchart@ideasonboard.com>
Date2015-12-22 19:10 +0100
Message-ID<qIzxM-7jr-13@gated-at.bofh.it>
In reply to#1296772
Hi Javier,

On Tuesday 22 December 2015 09:40:43 Javier Martinez Canillas wrote:
> On 12/22/2015 07:18 AM, Valdis Kletnieks wrote:
> > next-20151222 fails to build for me:
> >   CC      drivers/media/usb/uvc/uvc_driver.o
> > 
> > drivers/media/usb/uvc/uvc_driver.c: In function 'uvc_probe':
> > drivers/media/usb/uvc/uvc_driver.c:1941:32: error: 'struct uvc_device' has
> > no member named 'mdev'> 
> >   if (media_device_register(&dev->mdev) < 0)
> >                                 ^
> > 
> > scripts/Makefile.build:258: recipe for target
> > 'drivers/media/usb/uvc/uvc_driver.o' failed
> > 
> > 'git blame' points at that line being added in:
> > 
> > commit 1590ad7b52714fddc958189103c95541b49b1dae
> > Author: Javier Martinez Canillas <javier@osg.samsung.com>
> > Date:   Fri Dec 11 20:57:08 2015 -0200
> > 
> >     [media] media-device: split media initialization and registration
> > 
> > Not sure what went wrong here.
> 
> It was my forgetting to test with !CONFIG_MEDIA_CONTROLLER...
> 
> Anyways, I've already posted a fix for this:
> 
> https://lkml.org/lkml/2015/12/21/224

Thank you for the fix.

I know this is an unpopular request, but can't we make this MC rework series 
bisectable ? We're introducing bugs, which is unavoidable given the scope of 
the change, and I'm really worried about how difficult we'll make it to debug 
them if we keep piling even compilation fixes on top.

I can spend a day this week rebasing the patches myself if that could help.

-- 
Regards,

Laurent Pinchart

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

[toc] | [prev] | [next] | [standalone]


#1296975 — Re: next-20151222 - compile failure in drivers/media/usb/uvc/uvc_driver.c

FromMauro Carvalho Chehab <mchehab@osg.samsung.com>
Date2015-12-22 19:40 +0100
SubjectRe: next-20151222 - compile failure in drivers/media/usb/uvc/uvc_driver.c
Message-ID<qIA0O-7v6-9@gated-at.bofh.it>
In reply to#1296949
Em Tue, 22 Dec 2015 20:06:38 +0200
Laurent Pinchart <laurent.pinchart@ideasonboard.com> escreveu:

> Hi Javier,
> 
> On Tuesday 22 December 2015 09:40:43 Javier Martinez Canillas wrote:
> > On 12/22/2015 07:18 AM, Valdis Kletnieks wrote:
> > > next-20151222 fails to build for me:
> > >   CC      drivers/media/usb/uvc/uvc_driver.o
> > > 
> > > drivers/media/usb/uvc/uvc_driver.c: In function 'uvc_probe':
> > > drivers/media/usb/uvc/uvc_driver.c:1941:32: error: 'struct uvc_device' has
> > > no member named 'mdev'> 
> > >   if (media_device_register(&dev->mdev) < 0)
> > >                                 ^
> > > 
> > > scripts/Makefile.build:258: recipe for target
> > > 'drivers/media/usb/uvc/uvc_driver.o' failed
> > > 
> > > 'git blame' points at that line being added in:
> > > 
> > > commit 1590ad7b52714fddc958189103c95541b49b1dae
> > > Author: Javier Martinez Canillas <javier@osg.samsung.com>
> > > Date:   Fri Dec 11 20:57:08 2015 -0200
> > > 
> > >     [media] media-device: split media initialization and registration
> > > 
> > > Not sure what went wrong here.
> > 
> > It was my forgetting to test with !CONFIG_MEDIA_CONTROLLER...
> > 
> > Anyways, I've already posted a fix for this:
> > 
> > https://lkml.org/lkml/2015/12/21/224
> 
> Thank you for the fix.
> 
> I know this is an unpopular request, but can't we make this MC rework series 
> bisectable ? We're introducing bugs, which is unavoidable given the scope of 
> the change, and I'm really worried about how difficult we'll make it to debug 
> them if we keep piling even compilation fixes on top.
> 
> I can spend a day this week rebasing the patches myself if that could help.

Laurent,

The problem is that those patches got merged already at media_tree,
at the media-controller topic branch.

Any rebase there will break the git copies from all developers that are
based on it. It will also break the trees at linuxtv.org, since the
developer trees share objects with media_tree.git, in order to save
space on the servers.

What we could try to do is to fold them just before sending the pull
request upstream, as we're using tags for pull requests.

I'll do that during the merge window, if someone reminds me about
what patches should be fold. I guess there are only two or three
patches to be fold, as the only compilation breakages I'm aware are
the ones related to Javier's patch series that broke media_device
init from the media devnode creation.

Regards,
Mauro
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

[toc] | [prev] | [next] | [standalone]


#1297140

FromLaurent Pinchart <laurent.pinchart@ideasonboard.com>
Date2015-12-23 00:10 +0100
Message-ID<qIEe6-1Oe-7@gated-at.bofh.it>
In reply to#1296975
Hi Mauro,

On Tuesday 22 December 2015 16:33:50 Mauro Carvalho Chehab wrote:
> Em Tue, 22 Dec 2015 20:06:38 +0200 Laurent Pinchart escreveu:
> > On Tuesday 22 December 2015 09:40:43 Javier Martinez Canillas wrote:
> > > On 12/22/2015 07:18 AM, Valdis Kletnieks wrote:
> > > > next-20151222 fails to build for me:
> > > >   CC      drivers/media/usb/uvc/uvc_driver.o
> > > > 
> > > > drivers/media/usb/uvc/uvc_driver.c: In function 'uvc_probe':
> > > > drivers/media/usb/uvc/uvc_driver.c:1941:32: error: 'struct uvc_device'
> > > > has no member named 'mdev'
> > > > 
> > > >   if (media_device_register(&dev->mdev) < 0)
> > > >                                 ^
> > > > 
> > > > scripts/Makefile.build:258: recipe for target
> > > > 'drivers/media/usb/uvc/uvc_driver.o' failed
> > > > 
> > > > 'git blame' points at that line being added in:
> > > > 
> > > > commit 1590ad7b52714fddc958189103c95541b49b1dae
> > > > Author: Javier Martinez Canillas <javier@osg.samsung.com>
> > > > Date:   Fri Dec 11 20:57:08 2015 -0200
> > > > 
> > > >     [media] media-device: split media initialization and registration
> > > > 
> > > > Not sure what went wrong here.
> > > 
> > > It was my forgetting to test with !CONFIG_MEDIA_CONTROLLER...
> > > 
> > > Anyways, I've already posted a fix for this:
> > > 
> > > https://lkml.org/lkml/2015/12/21/224
> > 
> > Thank you for the fix.
> > 
> > I know this is an unpopular request, but can't we make this MC rework
> > series bisectable ? We're introducing bugs, which is unavoidable given
> > the scope of the change, and I'm really worried about how difficult we'll
> > make it to debug them if we keep piling even compilation fixes on top.
> > 
> > I can spend a day this week rebasing the patches myself if that could
> > help.
> 
> Laurent,
> 
> The problem is that those patches got merged already at media_tree,
> at the media-controller topic branch.
> 
> Any rebase there will break the git copies from all developers that are
> based on it. It will also break the trees at linuxtv.org, since the
> developer trees share objects with media_tree.git, in order to save
> space on the servers.

But that branch hasn't been merged to master, so it doesn't have to be the one 
we send upstream, does it ? I'm willing to spend time working on the patches 
if it can help.

> What we could try to do is to fold them just before sending the pull
> request upstream, as we're using tags for pull requests.
> 
> I'll do that during the merge window, if someone reminds me about
> what patches should be fold. I guess there are only two or three
> patches to be fold, as the only compilation breakages I'm aware are
> the ones related to Javier's patch series that broke media_device
> init from the media devnode creation.

-- 
Regards,

Laurent Pinchart

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

[toc] | [prev] | [next] | [standalone]


#1297420 — Re: next-20151222 - compile failure in drivers/media/usb/uvc/uvc_driver.c

FromMauro Carvalho Chehab <mchehab@osg.samsung.com>
Date2015-12-23 13:30 +0100
SubjectRe: next-20151222 - compile failure in drivers/media/usb/uvc/uvc_driver.c
Message-ID<qIQIi-158-25@gated-at.bofh.it>
In reply to#1297140
Em Wed, 23 Dec 2015 01:07:31 +0200
Laurent Pinchart <laurent.pinchart@ideasonboard.com> escreveu:

> Hi Mauro,
> 
> On Tuesday 22 December 2015 16:33:50 Mauro Carvalho Chehab wrote:
> > Em Tue, 22 Dec 2015 20:06:38 +0200 Laurent Pinchart escreveu:
> > > On Tuesday 22 December 2015 09:40:43 Javier Martinez Canillas wrote:
> > > > On 12/22/2015 07:18 AM, Valdis Kletnieks wrote:
> > > > > next-20151222 fails to build for me:
> > > > >   CC      drivers/media/usb/uvc/uvc_driver.o
> > > > > 
> > > > > drivers/media/usb/uvc/uvc_driver.c: In function 'uvc_probe':
> > > > > drivers/media/usb/uvc/uvc_driver.c:1941:32: error: 'struct uvc_device'
> > > > > has no member named 'mdev'
> > > > > 
> > > > >   if (media_device_register(&dev->mdev) < 0)
> > > > >                                 ^
> > > > > 
> > > > > scripts/Makefile.build:258: recipe for target
> > > > > 'drivers/media/usb/uvc/uvc_driver.o' failed
> > > > > 
> > > > > 'git blame' points at that line being added in:
> > > > > 
> > > > > commit 1590ad7b52714fddc958189103c95541b49b1dae
> > > > > Author: Javier Martinez Canillas <javier@osg.samsung.com>
> > > > > Date:   Fri Dec 11 20:57:08 2015 -0200
> > > > > 
> > > > >     [media] media-device: split media initialization and registration
> > > > > 
> > > > > Not sure what went wrong here.
> > > > 
> > > > It was my forgetting to test with !CONFIG_MEDIA_CONTROLLER...
> > > > 
> > > > Anyways, I've already posted a fix for this:
> > > > 
> > > > https://lkml.org/lkml/2015/12/21/224
> > > 
> > > Thank you for the fix.
> > > 
> > > I know this is an unpopular request, but can't we make this MC rework
> > > series bisectable ? We're introducing bugs, which is unavoidable given
> > > the scope of the change, and I'm really worried about how difficult we'll
> > > make it to debug them if we keep piling even compilation fixes on top.
> > > 
> > > I can spend a day this week rebasing the patches myself if that could
> > > help.
> > 
> > Laurent,
> > 
> > The problem is that those patches got merged already at media_tree,
> > at the media-controller topic branch.
> > 
> > Any rebase there will break the git copies from all developers that are
> > based on it. It will also break the trees at linuxtv.org, since the
> > developer trees share objects with media_tree.git, in order to save
> > space on the servers.
> 
> But that branch hasn't been merged to master, so it doesn't have to be the one 
> we send upstream, does it ? I'm willing to spend time working on the patches 
> if it can help.

My plan is to send the topic branch on a separate pull request and only
merge it back at master after -rc1.

Yet, as far as I'm aware, the is only one patch that caused compilation
breakages (and only when !CONFIG_MEDIA_CONTROLLER). It should be pretty
easy to fold this patch with the two fixup patches. My plan is to do it
just before sending a pull request. So, no need for you to do the rebase.

Yet, as you said you have some spare time, it would be great if you
could test the MC with the drivers whose I don't have hardware access,
in order to check that there's no regression when using the existing
ioctl:
	- vsp1
	- xilinux
	- staging/davinci_vpfe

Also, with regards to staging/omap4iss, I tried to test it on a
Pandaboard, but the driver seems to be broken/incomplete, as it
doesn't have the required pdata to allow testing it, nor it has
been converted to DT. This seems to be a known issue:
	https://www.mail-archive.com/linux-media@vger.kernel.org/msg89247.html

so, I guess we should add a "depends on BROKEN" for staging/omap4iss
until someone converts it to DT and adds the needed bindings.

Regards,
Mauro



> 
> > What we could try to do is to fold them just before sending the pull
> > request upstream, as we're using tags for pull requests.
> > 
> > I'll do that during the merge window, if someone reminds me about
> > what patches should be fold. I guess there are only two or three
> > patches to be fold, as the only compilation breakages I'm aware are
> > the ones related to Javier's patch series that broke media_device
> > init from the media devnode creation.
> 
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

[toc] | [prev] | [standalone]


Back to top | Article view | linux.kernel


csiph-web