Re: [PATCH 1/1] v4l: Remove __user from interface structure definitions

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Mon, Jun 11, 2012 at 09:49:25AM +0200, Laurent Pinchart wrote:
> Hi Sakari,

Hi Laurent,

> On Saturday 26 May 2012 23:07:49 Sakari Ailus wrote:
> > The __user macro is not strictly needed in videodev2.h, and it also prevents
> > using the header file as such in the user space. __user is already not used
> > in many of the interface structs containing pointers.
> > 
> > Stop using __user in videodev2.h.
> 
> Please don't. __user is useful. You should not use kernel headers as-is in 
> userspace, they need to be installed use make headers_install first.

Then we should consistently use it, and not just in these two occasions.
Currently most structures having pointers and which are part of the user
space interface don't have that. One example is v4l2_ext_controls.

Regards,

-- 
Sakari Ailus
e-mail: sakari.ailus@xxxxxx	jabber/XMPP/Gmail: sailus@xxxxxxxxxxxxxx
--
To unsubscribe from this list: send the line "unsubscribe linux-media" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux Input]     [Video for Linux]     [Gstreamer Embedded]     [Mplayer Users]     [Linux USB Devel]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Yosemite Backpacking]
  Powered by Linux