All of lore.kernel.org
 help / color / mirror / Atom feed
* [REVIEWv2 PATCH 0/6] v4l2: constify _IOW ioctls
@ 2013-03-18 14:11 Hans Verkuil
  2013-03-18 14:12 ` [REVIEWv2 PATCH 1/6] v4l2: add const to argument of write-only s_frequency ioctl Hans Verkuil
                   ` (5 more replies)
  0 siblings, 6 replies; 14+ messages in thread
From: Hans Verkuil @ 2013-03-18 14:11 UTC (permalink / raw)
  To: linux-media
  Cc: Mauro Carvalho Chehab, Scott Jiang, Laurent Pinchart,
	Jonathan Corbet, Guennadi Liakhovetski, Andy Walls, Prabhakar Lad,
	Kyungmin Park, Tomasz Stanislawski, Alexey Klimov, Hans de Goede,
	Brian Johnson, Mike Isely, Ezequiel Garcia, Huang Shijie,
	Ismael Luceno, Takashi Iwai, Ondrej Zary

This is the second version of this patch series.

Two changes:

- fixed the handling of a frequency of 0 in the radio-keene driver (thanks
  to Laurent for spotting that special case)
- added a sixth patch that prevents the v4l2 core from printing more than the
  size of the buffer containing the name. The data in that buffer may not be
  0 terminated, either because that's how userspace passed the data or because
  of driver bugs. So safe-guard against that.

If nothing else comes up, then I plan on posting a pull request on Friday.

Regards,

	Hans

>From the first patch series:

This is the second and last phase of ensuring that the arguments of write-only
ioctls in V4L2 are const. The first phase was 4-5 months ago and added const
to s_crop, s_modulator, s_audio, s_audout, (un)subscribe_event, s_freq_hw_seek,
s_jpegcomp and s_fbuf.

This second phase adds const to s_frequency, s_tuner, s_std and s_register.
Actually, for s_std it doesn't add const but changes it to pass the std by
value which is more consistent in that particular case.

As a result drivers will be aware when they are implementing write-only ioctls
(and I saw a few drivers attempting to return data back to the user), and the
v4l2 core will know that drivers won't change the argument of a write-only
ioctls which simplifies the core debug code.

The changes have been compile-tested with the linux-media daily build but
I may have missed some more exotic architectures.

Ideally I would like to have this merged fairly early on so we have enough
time to shake out any remaining compile problems.

Regards,

        Hans


^ permalink raw reply	[flat|nested] 14+ messages in thread

end of thread, other threads:[~2013-03-24 10:13 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-03-18 14:11 [REVIEWv2 PATCH 0/6] v4l2: constify _IOW ioctls Hans Verkuil
2013-03-18 14:12 ` [REVIEWv2 PATCH 1/6] v4l2: add const to argument of write-only s_frequency ioctl Hans Verkuil
2013-03-18 23:17   ` Laurent Pinchart
2013-03-19  7:12     ` Hans Verkuil
2013-03-18 14:12 ` [REVIEWv2 PATCH 2/6] v4l2: add const to argument of write-only s_tuner ioctl Hans Verkuil
2013-03-18 14:12 ` [REVIEWv2 PATCH 3/6] v4l2: pass std by value to the write-only s_std ioctl Hans Verkuil
2013-03-18 14:12 ` [REVIEWv2 PATCH 4/6] v4l2: add const to argument of write-only s_register ioctl Hans Verkuil
2013-03-18 23:20   ` Laurent Pinchart
2013-03-19  7:07     ` Hans Verkuil
2013-03-24 10:07   ` Mauro Carvalho Chehab
2013-03-24 10:12     ` Hans Verkuil
2013-03-18 14:12 ` [REVIEWv2 PATCH 5/6] v4l2-ioctl: simplify debug code Hans Verkuil
2013-03-24 10:12   ` Mauro Carvalho Chehab
2013-03-18 14:12 ` [REVIEWv2 PATCH 6/6] v4l2-ioctl: add precision when printing names Hans Verkuil

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.