[PATCH] drm: Make drm.h uapi header safe for C++

2016-03-30 Thread Daniel Vetter
virtual is a protected keyword in C++ and can't be used at all. Ugh. This aligns the kernel versions of the drm headers with the ones in libdrm. v2: Also annote with __user, as request by Emil&Ilia. Cc: Ilia Mirkin Cc: Emil Velikov Signed-off-by: Daniel Vetter --- include/uapi/drm/drm.h | 4

[PATCH] drm: Make drm.h uapi header safe for C++

2016-03-30 Thread Emil Velikov
On 30 March 2016 at 16:12, Daniel Vetter wrote: > virtual is a protected keyword in C++ and can't be used at all. Ugh. > > This aligns the kernel versions of the drm headers with the ones in > libdrm. > > v2: Also annote with __user, as request by Emil&Ilia. Reviewed-by: Emil Velikov -Emil

[PATCH] drm: Make drm.h uapi header safe for C++

2016-03-30 Thread Daniel Vetter
virtual is a protected keyword in C++ and can't be used at all. Ugh. This aligns the kernel versions of the drm headers with the ones in libdrm. Cc: Emil Velikov Signed-off-by: Daniel Vetter --- include/uapi/drm/drm.h | 4 1 file changed, 4 insertions(+) diff --git a/include/uapi/drm/drm

[PATCH] drm: Make drm.h uapi header safe for C++

2016-03-30 Thread Emil Velikov
On 30 March 2016 at 14:53, Ilia Mirkin wrote: > On Wed, Mar 30, 2016 at 9:47 AM, Daniel Vetter > wrote: >> virtual is a protected keyword in C++ and can't be used at all. Ugh. >> >> This aligns the kernel versions of the drm headers with the ones in >> libdrm. >> >> Cc: Emil Velikov >> Signed-o

[PATCH] drm: Make drm.h uapi header safe for C++

2016-03-30 Thread Ilia Mirkin
On Wed, Mar 30, 2016 at 9:47 AM, Daniel Vetter wrote: > virtual is a protected keyword in C++ and can't be used at all. Ugh. > > This aligns the kernel versions of the drm headers with the ones in > libdrm. > > Cc: Emil Velikov > Signed-off-by: Daniel Vetter > --- > include/uapi/drm/drm.h | 4