From: Sakari Ailus <sakari.ailus@iki.fi>
To: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Cc: linux-media@vger.kernel.org
Subject: Re: [PATCH 1/1] v4l: drop v4l2_buffer.input and V4L2_BUF_FLAG_INPUT
Date: Mon, 30 Apr 2012 16:04:13 +0300 [thread overview]
Message-ID: <20120430130413.GL7913@valkosipuli.localdomain> (raw)
In-Reply-To: <2157218.XOp52YA11m@avalon>
Hi Laurent,
On Mon, Apr 30, 2012 at 02:48:23PM +0200, Laurent Pinchart wrote:
> On Monday 30 April 2012 15:40:24 Sakari Ailus wrote:
> > Remove input field in struct v4l2_buffer and flag V4L2_BUF_FLAG_INPUT which
> > tells the former is valid. The flag is used by no driver currently.
> >
> > Signed-off-by: Sakari Ailus <sakari.ailus@iki.fi>
> > ---
> > Hi all,
> >
> > I thought this would be a good time to get rid of the input field in
> > v4l2_buffer to avoid writing more useless compat code for it --- the enum
> > compat code.
> >
> > Comments are welcome. This patch is compile tested on videobuf and
> > videobuf2.
>
> I'm all for this. As far as I know, the field was only useful for a single
> out-of-tree driver which is long dead now.
>
> > drivers/media/video/v4l2-compat-ioctl32.c | 8 +++-----
> > drivers/media/video/videobuf-core.c | 16 ----------------
> > drivers/media/video/videobuf2-core.c | 4 +---
> > include/linux/videodev2.h | 4 +---
> > include/media/videobuf-core.h | 2 --
>
> A quick grep through the code shows that you've missed the cpia2 driver which
> sets the input field to 0 in cpia2_dqbuf(). Please try to compile as many
> drivers as possible with this patch. Using coccinelle
> (http://coccinelle.lip6.fr/) could help finding other accesses to the input
> field.
I grepped them but forgot to give -r option to grep... I found no further
uses of the input field by quick looking. I'll compile what I can and resend
the patch.
--
Sakari Ailus
e-mail: sakari.ailus@iki.fi jabber/XMPP/Gmail: sailus@retiisi.org.uk
next prev parent reply other threads:[~2012-04-30 13:04 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-04-30 12:40 [PATCH 1/1] v4l: drop v4l2_buffer.input and V4L2_BUF_FLAG_INPUT Sakari Ailus
2012-04-30 12:48 ` Laurent Pinchart
2012-04-30 13:04 ` Sakari Ailus [this message]
2012-04-30 13:34 ` Sakari Ailus
2012-04-30 13:48 ` Hans Verkuil
2012-04-30 14:06 ` Sakari Ailus
2012-04-30 14:15 ` Hans Verkuil
2012-04-30 14:27 ` Laurent Pinchart
2012-05-02 12:40 ` [PATCH v3 " Sakari Ailus
2012-05-28 10:27 ` Hans Verkuil
2012-05-28 11:52 ` Ezequiel Garcia
2012-05-28 16:29 ` Ezequiel Garcia
2012-05-28 17:10 ` Hans Verkuil
2012-05-28 17:25 ` Ezequiel Garcia
2012-05-28 18:00 ` Hans Verkuil
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20120430130413.GL7913@valkosipuli.localdomain \
--to=sakari.ailus@iki.fi \
--cc=laurent.pinchart@ideasonboard.com \
--cc=linux-media@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox