[PATCH 01/20] drm: use __u{32,64} instead of uint{32,64}_t in virtgpu_drm.h

2015-12-09 Thread Gabriel Laskar
On Mon, 7 Dec 2015 13:29:41 + Emil Velikov wrote: > On 5 December 2015 at 21:03, Dave Airlie wrote: > > On 5 December 2015 at 00:22, Emil Velikov > > wrote: > >> On 30 November 2015 at 14:10, Gabriel Laskar > >> wrote: > >>> Signed-o

[git pull] drm uapi header fixes

2015-12-10 Thread Gabriel Laskar
: https://github.com/GabrielL/linux.git drm-header-fixes for you to fetch changes up to 09b9bde3b0cae62690db242274ee161860795ce4: drm: fix inclusion of drm.h in via_drm.h (2015-12-09 23:42:44 +0100) -------- Gabriel Laskar (19): dr

[git pull] drm uapi header fixes

2015-12-10 Thread Gabriel Laskar
-header-fixes for you to fetch changes up to d7e12cd7b8c6d7426a401ec03ddcb88382180ced: drm: fix inclusion of drm.h in via_drm.h (2015-12-10 12:33:23 +0100) Gabriel Laskar (19): drm: use __u{32,64} instead of uint{32,64}_t in

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

2016-04-06 Thread Gabriel Laskar
drm_buf_pub __user *list; /**< Buffer > information */ }; > Why not simply rename the field ? -- Gabriel Laskar

[PATCH 1/9] include/uapi/drm/armada_drm.h: use __u{32, 64} types instead of uint{32, 64}_t

2015-11-12 Thread Gabriel Laskar
Kernel headers should use linux/types.h Signed-off-by: Gabriel Laskar --- include/uapi/drm/armada_drm.h | 24 +--- 1 file changed, 13 insertions(+), 11 deletions(-) diff --git a/include/uapi/drm/armada_drm.h b/include/uapi/drm/armada_drm.h index 8dec3fd..77184b7 100644

[PATCH 9/9] include/uapi/drm/omap_drm.h: use __u{32, 64} types instead of uint{32, 64}_t

2015-11-12 Thread Gabriel Laskar
Kernel headers should use linux/types.h Signed-off-by: Gabriel Laskar --- include/uapi/drm/omap_drm.h | 39 --- 1 file changed, 20 insertions(+), 19 deletions(-) diff --git a/include/uapi/drm/omap_drm.h b/include/uapi/drm/omap_drm.h index 1d0b117..926e42a

[PATCH 4/9] include/uapi/drm/nouveau_drm.h: use __u{32, 64} types instead of uint{32, 64}_t

2015-11-12 Thread Gabriel Laskar
Kernel headers should use linux/types.h Signed-off-by: Gabriel Laskar --- include/uapi/drm/nouveau_drm.h | 84 +- 1 file changed, 42 insertions(+), 42 deletions(-) diff --git a/include/uapi/drm/nouveau_drm.h b/include/uapi/drm/nouveau_drm.h index fd594cc

[PATCH 6/9] include/uapi/drm/armada_drm.h: use __u{32, 64} types instead of uint{32, 64}_t

2015-11-12 Thread Gabriel Laskar
Kernel headers should use linux/types.h Signed-off-by: Gabriel Laskar --- include/uapi/drm/radeon_drm.h | 130 +- 1 file changed, 66 insertions(+), 64 deletions(-) diff --git a/include/uapi/drm/radeon_drm.h b/include/uapi/drm/radeon_drm.h index 01aa2a8

[PATCH 5/9] include/uapi/drm/amdgpu_drm.h: use __u{32, 64} types instead of uint{32, 64}_t

2015-11-12 Thread Gabriel Laskar
Kernel headers should use linux/types.h Signed-off-by: Gabriel Laskar --- include/uapi/drm/amdgpu_drm.h | 292 +- 1 file changed, 147 insertions(+), 145 deletions(-) diff --git a/include/uapi/drm/amdgpu_drm.h b/include/uapi/drm/amdgpu_drm.h index e52933a

[PATCH 7/9] include/uapi/drm/drm_mode.h: use __u{32, 64} types instead of uint{32, 64}_t

2015-11-12 Thread Gabriel Laskar
Kernel headers should use linux/types.h Signed-off-by: Gabriel Laskar --- include/uapi/drm/drm_mode.h | 16 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/include/uapi/drm/drm_mode.h b/include/uapi/drm/drm_mode.h index 6c11ca4..44ad794 100644 --- a/include/uapi

[PATCH 0/9] uapi: drm: fixes for userspace compilation

2015-11-12 Thread Gabriel Laskar
generation scripts, some abi checkers, and so on. Gabriel Laskar (9): include/uapi/drm/armada_drm.h: use __u{32,64} types instead of uint{32,64}_t include/uapi/drm/virtgpu_drm.h: use __u{32,64} types instead of uint{32,64}_t include/uapi/drm/qxl_drm.h: use __u{32,64} types instead of

[PATCH 2/9] include/uapi/drm/virtgpu_drm.h: use __u{32, 64} types instead of uint{32, 64}_t

2015-11-12 Thread Gabriel Laskar
Kernel headers should use linux/types.h Signed-off-by: Gabriel Laskar --- include/uapi/drm/virtgpu_drm.h | 99 +- 1 file changed, 50 insertions(+), 49 deletions(-) diff --git a/include/uapi/drm/virtgpu_drm.h b/include/uapi/drm/virtgpu_drm.h index fc9e2d6

[PATCH 3/9] include/uapi/drm/qxl_drm.h: use __u{32, 64} types instead of uint{32, 64}_t

2015-11-12 Thread Gabriel Laskar
Kernel headers should use linux/types.h Signed-off-by: Gabriel Laskar --- include/uapi/drm/qxl_drm.h | 74 +++--- 1 file changed, 37 insertions(+), 37 deletions(-) diff --git a/include/uapi/drm/qxl_drm.h b/include/uapi/drm/qxl_drm.h index ebebd36

[PATCH 8/9] include/uapi/drm/vmwgfx_drm.h: use __u{32, 64} types instead of uint{32, 64}_t

2015-11-12 Thread Gabriel Laskar
Kernel headers should use linux/types.h Signed-off-by: Gabriel Laskar --- include/uapi/drm/vmwgfx_drm.h | 264 +- 1 file changed, 132 insertions(+), 132 deletions(-) diff --git a/include/uapi/drm/vmwgfx_drm.h b/include/uapi/drm/vmwgfx_drm.h index 05b2049

[PATCH 0/9] uapi: drm: fixes for userspace compilation

2015-11-13 Thread Gabriel Laskar
> On 12 November 2015 at 18:14, Gabriel Laskar wrote: > > Public headers should use types from include/uapi/linux/types.h. > > > Please don't do this. As mentioned to Mikko, these headers are meant > to be used in more places than just Linux. All the compatibility is &g

[PATCH 0/9] uapi: drm: fixes for userspace compilation

2015-11-13 Thread Gabriel Laskar
On Fri, 13 Nov 2015 20:24:30 +0100 Gabriel Laskar wrote: > On Thu, 12 Nov 2015 19:34:18 + > Emil Velikov wrote: > > > That aside I'm a strong supporter of this type of work and I'm curious > > why Dave hasn't picked up the existing series ? Last tim

[PATCH 0/9] uapi: drm: fixes for userspace compilation

2015-11-13 Thread Gabriel Laskar
On Fri, 13 Nov 2015 20:38:51 + Emil Velikov wrote: > On 13 November 2015 at 19:31, Gabriel Laskar wrote: > > On Fri, 13 Nov 2015 20:24:30 +0100 > > Gabriel Laskar wrote: > > > > Sorry for the noise, I had just saw the first version. > > > Heh I was w

[PATCH 0/9] uapi: drm: fixes for userspace compilation

2015-11-17 Thread Gabriel Laskar
in kernel, and in userland. Is it possible to also resynchronize both headers, in order for them to be the same in libdrm and the kernel ? -- Gabriel Laskar

[PATCH 03/20] drm: include drm.h in armada_drm.h

2015-11-30 Thread Gabriel Laskar
Signed-off-by: Gabriel Laskar CC: Emil Velikov CC: Mikko Rapeli --- include/uapi/drm/armada_drm.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/include/uapi/drm/armada_drm.h b/include/uapi/drm/armada_drm.h index 8dec3fd..6de7f01 100644 --- a/include/uapi/drm/armada_drm.h +++ b/include

[PATCH 02/20] drm: Kbuild: add admgpu_drm.h to the installed headers

2015-11-30 Thread Gabriel Laskar
Signed-off-by: Gabriel Laskar CC: Emil Velikov CC: Mikko Rapeli --- include/uapi/drm/Kbuild | 1 + 1 file changed, 1 insertion(+) diff --git a/include/uapi/drm/Kbuild b/include/uapi/drm/Kbuild index 38d4370..159551f 100644 --- a/include/uapi/drm/Kbuild +++ b/include/uapi/drm/Kbuild @@ -3,6

[PATCH 04/20] drm: drm_fourcc.h fix includes

2015-11-30 Thread Gabriel Laskar
Instead of using linux/types.h, drm headers should use drm.h, in order to handle the portability issues in only one place. Signed-off-by: Gabriel Laskar CC: Emil Velikov CC: Mikko Rapeli --- include/uapi/drm/drm_fourcc.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a

[PATCH 01/20] drm: use __u{32, 64} instead of uint{32, 64}_t in virtgpu_drm.h

2015-11-30 Thread Gabriel Laskar
Signed-off-by: Gabriel Laskar CC: Emil Velikov CC: Mikko Rapeli --- include/uapi/drm/virtgpu_drm.h | 98 +- 1 file changed, 49 insertions(+), 49 deletions(-) diff --git a/include/uapi/drm/virtgpu_drm.h b/include/uapi/drm/virtgpu_drm.h index fc9e2d6

[PATCH 07/20] drm: fix inclusion of drm.h in exynos_sarea.h

2015-11-30 Thread Gabriel Laskar
Using `#include "drm.h"` instead of `#include ` allow drm headers to be moved in another directory without changes, like for the libdrm imports. Signed-off-by: Gabriel Laskar CC: Emil Velikov CC: Mikko Rapeli --- include/uapi/drm/exynos_drm.h | 2 +- 1 file changed, 1 inser

[PATCH 10/20] drm: fix inclusion of drm.h in mga_drm.h

2015-11-30 Thread Gabriel Laskar
Using `#include "drm.h"` instead of `#include ` allow drm headers to be moved in another directory without changes, like for the libdrm imports. Signed-off-by: Gabriel Laskar CC: Emil Velikov CC: Mikko Rapeli --- include/uapi/drm/mga_drm.h | 2 +- 1 file changed, 1 insertion(+),

[PATCH 11/20] drm: fix inclusion of drm.h in msm_drm.h

2015-11-30 Thread Gabriel Laskar
Using `#include "drm.h"` instead of `#include ` allow drm headers to be moved in another directory without changes, like for the libdrm imports. Signed-off-by: Gabriel Laskar CC: Emil Velikov CC: Mikko Rapeli --- include/uapi/drm/msm_drm.h | 3 +-- 1 file changed, 1 insertion(+), 2

[PATCH 16/20] drm: fix inclusion of drm.h in tegra_drm.h

2015-11-30 Thread Gabriel Laskar
Using `#include "drm.h"` instead of `#include ` allow drm headers to be moved in another directory without changes, like for the libdrm imports. Signed-off-by: Gabriel Laskar CC: Emil Velikov CC: Mikko Rapeli --- include/uapi/drm/tegra_drm.h | 2 +- 1 file changed, 1 insertion(+),

[PATCH 17/20] drm: fix inclusion of drm.h in virtgpu_drm.h

2015-11-30 Thread Gabriel Laskar
Using `#include "drm.h"` instead of `#include ` allow drm headers to be moved in another directory without changes, like for the libdrm imports. Signed-off-by: Gabriel Laskar CC: Emil Velikov CC: Mikko Rapeli --- include/uapi/drm/virtgpu_drm.h | 3 +-- 1 file changed, 1 inser

[PATCH 15/20] drm: fix inclusion of drm.h in savage_drm.h

2015-11-30 Thread Gabriel Laskar
Using `#include "drm.h"` instead of `#include ` allow drm headers to be moved in another directory without changes, like for the libdrm imports. Signed-off-by: Gabriel Laskar CC: Emil Velikov CC: Mikko Rapeli --- include/uapi/drm/savage_drm.h | 2 +- 1 file changed, 1 inser

[PATCH 18/20] drm: fix inclusion of drm.h in vmwgfx_drm.h

2015-11-30 Thread Gabriel Laskar
Using `#include "drm.h"` instead of `#include ` allow drm headers to be moved in another directory without changes, like for the libdrm imports. Signed-off-by: Gabriel Laskar CC: Emil Velikov CC: Mikko Rapeli --- include/uapi/drm/vmwgfx_drm.h | 4 +--- 1 file changed, 1 inser

[PATCH 20/20] drm: via: remove userland header

2015-11-30 Thread Gabriel Laskar
via_drmclient.h comes from userland drivers, it should not be in the kernel public headers. Moreover, this does not compile if taken outside of the drivers. Signed-off-by: Gabriel Laskar CC: Emil Velikov CC: Mikko Rapeli --- include/uapi/drm/via_drm.h | 4 1 file changed, 4 deletions

[PATCH 05/20] drm: drm_mode.h fix includes

2015-11-30 Thread Gabriel Laskar
Instead of using linux/types.h, drm headers should use drm.h, in order to handle the portability issues in only one place. Signed-off-by: Gabriel Laskar CC: Emil Velikov CC: Mikko Rapeli --- include/uapi/drm/drm_mode.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a

[PATCH 13/20] drm: fix inclusion of drm.h in qxl_drm.h

2015-11-30 Thread Gabriel Laskar
Using `#include "drm.h"` instead of `#include ` allow drm headers to be moved in another directory without changes, like for the libdrm imports. Signed-off-by: Gabriel Laskar CC: Emil Velikov CC: Mikko Rapeli --- include/uapi/drm/qxl_drm.h | 3 +-- 1 file changed, 1 insertion(+), 2

[PATCH 14/20] drm: fix inclusion of drm.h in r128_drm.h

2015-11-30 Thread Gabriel Laskar
Using `#include "drm.h"` instead of `#include ` allow drm headers to be moved in another directory without changes, like for the libdrm imports. Signed-off-by: Gabriel Laskar CC: Emil Velikov CC: Mikko Rapeli --- include/uapi/drm/r128_drm.h | 2 +- 1 file changed, 1 insertion(+),

[PATCH 19/20] drm: fix inclusion of drm.h in via_drm.h

2015-11-30 Thread Gabriel Laskar
Using `#include "drm.h"` instead of `#include ` allow drm headers to be moved in another directory without changes, like for the libdrm imports. Signed-off-by: Gabriel Laskar CC: Emil Velikov CC: Mikko Rapeli --- include/uapi/drm/via_drm.h | 2 +- 1 file changed, 1 insertion(+),

[PATCH 06/20] drm: fix inclusion of drm.h in drm_sarea.h

2015-11-30 Thread Gabriel Laskar
Using `#include "drm.h"` instead of `#include ` allow drm headers to be moved in another directory without changes, like for the libdrm imports. Signed-off-by: Gabriel Laskar CC: Emil Velikov CC: Mikko Rapeli --- include/uapi/drm/drm_sarea.h | 2 +- 1 file changed, 1 insertion(+),

[PATCH 08/20] drm: fix inclusion of drm.h in i810_drm.h

2015-11-30 Thread Gabriel Laskar
Using `#include "drm.h"` instead of `#include ` allow drm headers to be moved in another directory without changes, like for the libdrm imports. Signed-off-by: Gabriel Laskar CC: Emil Velikov CC: Mikko Rapeli --- include/uapi/drm/i810_drm.h | 2 +- 1 file changed, 1 insertion(+),

[PATCH 12/20] drm: fix inclusion of drm.h in omap_drm.h

2015-11-30 Thread Gabriel Laskar
Using `#include "drm.h"` instead of `#include ` allow drm headers to be moved in another directory without changes, like for the libdrm imports. Signed-off-by: Gabriel Laskar CC: Emil Velikov CC: Mikko Rapeli --- include/uapi/drm/omap_drm.h | 2 +- 1 file changed, 1 insertion(+),

[PATCH 09/20] drm: fix inclusion of drm.h in exynos_sarea.h

2015-11-30 Thread Gabriel Laskar
Using `#include "drm.h"` instead of `#include ` allow drm headers to be moved in another directory without changes, like for the libdrm imports. Signed-off-by: Gabriel Laskar CC: Emil Velikov CC: Mikko Rapeli --- include/uapi/drm/i915_drm.h | 2 +- 1 file changed, 1 insertion(+),