Include instead of which on Linux includes
and on non-Linux platforms defines __u32 etc types.
Fixes user space compilation errors like:
linux/kfd_ioctl.h:33:2: error: unknown type name ‘uint32_t’
uint32_t major_version; /* from KFD */
^~~~
Signed-off-by: Mikko Rapeli
Cc: Yair
These are defined in linux/types.h or drm/drm.h. Fixes
user space compilation errors like:
drm/armada_drm.h:26:2: error: unknown type name ‘uint32_t’
uint32_t handle;
^~~~
Signed-off-by: Mikko Rapeli
Cc: Emil Velikov
Cc: Gabriel Laskar
Cc: Russell King
Cc: Rob Clark
---
include
On Mon, Aug 22, 2016 at 09:48:10AM +0100, Emil Velikov wrote:
> On 20 August 2016 at 23:31, Rob Clark wrote:
> > On Sat, Aug 20, 2016 at 1:58 PM, Mikko Rapeli
> > wrote:
> >> Cc'ing lkml too.
> >>
> >> On Fri, Aug 19, 2016 at 11:54:21PM +0100, Em
Cc'ing lkml.
On Sat, Aug 20, 2016 at 12:05:54PM +0200, Marek Olšák wrote:
> On Sat, Aug 20, 2016 at 12:54 AM, Emil Velikov
> wrote:
> > On 19 August 2016 at 15:26, Christian König
> > wrote:
> >> Am 19.08.2016 um 15:50 schrieb Marek Olšák:
> >>>
> >>> From: Marek Olšák
> >>>
> >>> This
Cc'ing lkml.
On Fri, Aug 19, 2016 at 09:18:24PM -0500, Ken Phillis Jr wrote:
> On Fri, Aug 19, 2016 at 8:46 PM, Rob Clark wrote:
>
> > perhaps, but if the target audience for driver specific APIs is
> > libdrm/mesa, which already uses stdint types, then I fail to see the
> > point..
> >
> > It i
Cc'ing lkml too.
On Fri, Aug 19, 2016 at 11:54:21PM +0100, Emil Velikov wrote:
> Story time:
> I was dreaming of a day were we can stop installing these headers,
> thus making deprecation a bit easier process.
> Yet after failing to convince Dave and Daniel on a number of occasions
> I've accepted
don't do cleanups in this header.
> >
> >Signed-off-by: Marek Olšák
>
> I completely agree with you that this was a bad move, but I fear that we
> will run into opposition with that.
>
> Adding Mikko Rapeli who made the reverted patch to comment.
But this header is
ff-by: Gabriel Laskar
> >>> CC: Emil Velikov
> >>> CC: Mikko Rapeli
> >>>
> >>> ---
> >>> include/uapi/drm/virtgpu_drm.h | 98
> >>> +-
> >>> 1 file changed, 49 insertions(
On Thu, Oct 15, 2015 at 09:32:10AM -0400, Alex Deucher wrote:
> On Thu, Oct 15, 2015 at 1:55 AM, Mikko Rapeli wrote:
> > Fixes userspace compilation error:
> >
> > drm/drm_mode.h:472:2: error: unknown type name âuint32_tâ
> >
> > Signed-off-by: Mikko Ra
Fixes userspace compilation errors like:
error: unknown type name âuint32_tâ
Signed-off-by: Mikko Rapeli
---
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
Fixes userspace compilation errors like:
error: unknown type name âuint32_tâ
Signed-off-by: Mikko Rapeli
---
include/uapi/drm/vmwgfx_drm.h | 264 +-
1 file changed, 132 insertions(+), 132 deletions(-)
diff --git a/include/uapi/drm/vmwgfx_drm.h b
Fixes userspace compilation error:
error: array type has incomplete element type
struct drm_clip_rect boxes[I810_NR_SAREA_CLIPRECTS];
Signed-off-by: Mikko Rapeli
---
include/uapi/drm/i810_drm.h | 2 ++
1 file changed, 2 insertions(+)
diff --git a/include/uapi/drm/i810_drm.h b/include/uapi/drm
Fixes userspace compile error:
drm/sis_drm.h:68:19: error: field âobj_listâ has incomplete type
struct list_head obj_list;
Suggested by Emil Velikov at
https://lkml.org/lkml/2015/6/3/792
Signed-off-by: Mikko Rapeli
---
drivers/gpu/drm/sis/sis_drv.h | 4
include/uapi/drm/sis_drm.h
Fixes compiler error:
drm/savage_drm.h:50:24: error: array type has incomplete element type
struct drm_tex_region texList[SAVAGE_NR_TEX_HEAPS][SAVAGE_NR_TEX_REGIONS +
Signed-off-by: Mikko Rapeli
---
include/uapi/drm/savage_drm.h | 2 ++
1 file changed, 2 insertions(+)
diff --git a/include
Fixes userspace compile error since list_head is not exported to userspace
headers.
Suggested by Emil Velikov at
https://lkml.org/lkml/2015/6/3/792
Signed-off-by: Mikko Rapeli
---
drivers/gpu/drm/via/via_drv.h | 4
include/uapi/drm/via_drm.h| 4
2 files changed, 4 insertions
Fixes compiler error:
drm/via_drm.h:36:27: fatal error: via_drmclient.h: No such file or directory
Signed-off-by: Mikko Rapeli
---
include/uapi/drm/via_drm.h | 3 ---
1 file changed, 3 deletions(-)
diff --git a/include/uapi/drm/via_drm.h b/include/uapi/drm/via_drm.h
index 8b0533c..d19c0e2
Fixes compile error:
drm/r128_drm.h:156:23: error: array type has incomplete element type
struct drm_clip_rect boxes[R128_NR_SAREA_CLIPRECTS];
Signed-off-by: Mikko Rapeli
---
include/uapi/drm/r128_drm.h | 2 ++
1 file changed, 2 insertions(+)
diff --git a/include/uapi/drm/r128_drm.h b
Fixes userspace compiler error:
drm/radeon_drm.h:794:2: error: unknown type name âuint64_tâ
Signed-off-by: Mikko Rapeli
---
include/uapi/drm/radeon_drm.h | 128 +-
1 file changed, 64 insertions(+), 64 deletions(-)
diff --git a/include/uapi/drm
Fixes userspace compilation errors like:
drm/nouveau_drm.h:41:2: error: unknown type name âuint32_tâ
Signed-off-by: Mikko Rapeli
---
include/uapi/drm/nouveau_drm.h | 86 +-
1 file changed, 44 insertions(+), 42 deletions(-)
diff --git a/include/uapi
Fixes userspace compilation error:
drm/exynos_drm.h:30:2: error: unknown type name âuint64_tâ
Signed-off-by: Mikko Rapeli
---
include/uapi/drm/exynos_drm.h | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/include/uapi/drm/exynos_drm.h b/include/uapi/drm
Fixes userspace compilation error:
drm/drm_mode.h:472:2: error: unknown type name âuint32_tâ
Signed-off-by: Mikko Rapeli
---
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
Fall back to size_t for non Linux platforms.
Fixes userspace compilation error:
drm/drm.h:132:2: error: unknown type name âsize_tâ
Signed-off-by: Mikko Rapeli
---
include/uapi/drm/drm.h | 9 +
1 file changed, 5 insertions(+), 4 deletions(-)
diff --git a/include/uapi/drm/drm.h b
On Wed, Jun 03, 2015 at 05:50:22PM +0100, Emil Velikov wrote:
> Hi Mikko,
>
> On 30 May 2015 at 16:38, Mikko Rapeli wrote:
> > Fixes compiler error since list_head is not exported to userspace headers.
> >
> > Signed-off-by: Mikko Rapeli
> > ---
> > i
On Wed, Jun 03, 2015 at 06:19:48PM +0100, Emil Velikov wrote:
> On 30 May 2015 at 16:37, Mikko Rapeli wrote:
> > Fixes userspace compilation error:
> >
> > drm/drm.h:132:2: error: unknown type name âsize_tâ
> >
> > Signed-off-by: Mikko Rapeli
> &
Hi Imre,
On Mon, Jun 22, 2015 at 04:43:50PM +0300, Imre Deak wrote:
>
> To summarize, since we extended the range of platforms to apply the
> workaround in
> commit ab3be73fa7b43f4c3648ce29b5fd649ea54d3adb
> Author: Imre Deak
> Date: Mon Mar 2 13:04:41 2015 +0200
>
> drm/i915: gen4: work a
PME-
Kernel driver in use: i915
Signed-off-by: Mikko Rapeli
---
drivers/gpu/drm/i915/i915_drv.c | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/drivers/gpu/drm/i915/i915_drv.c b/drivers/gpu/drm/i915/i915_drv.c
index ec4d932..36e311e 100644
--- a/drivers/gpu/drm/i
On Sat, May 30, 2015 at 05:46:56PM +0100, Russell King - ARM Linux wrote:
> Note that drm/drm.h is all that should need to be included - drm/drm.h
> takes care of including linux/types.h when building on Linux platforms.
> (note: if your compiler doesn't set __linux__ then you're probably not
> usi
On Mon, Jun 01, 2015 at 10:20:10AM +0200, Christian König wrote:
> Additional to that "linux/types.h" is not part of the uapi as far as
> I know, so including it in a header which is part of the uapi should
> be forbidden.
linux/types.h is part of uapi. See usr/include after 'make headers_install
Fixes userspace compilation errors like:
error: unknown type name âuint32_tâ
Signed-off-by: Mikko Rapeli
---
include/uapi/drm/msm_drm.h | 76 +++---
1 file changed, 38 insertions(+), 38 deletions(-)
diff --git a/include/uapi/drm/msm_drm.h b/include
Fixes userspace compilation errors like:
error: unknown type name âuint32_tâ
Signed-off-by: Mikko Rapeli
---
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
Fixes userspace compilation errors like:
error: unknown type name âuint32_tâ
Signed-off-by: Mikko Rapeli
---
include/uapi/drm/vmwgfx_drm.h | 260 +-
1 file changed, 130 insertions(+), 130 deletions(-)
diff --git a/include/uapi/drm/vmwgfx_drm.h b
Fixes userspace compilation error:
error: array type has incomplete element type
struct drm_clip_rect boxes[I810_NR_SAREA_CLIPRECTS];
Signed-off-by: Mikko Rapeli
---
include/uapi/drm/i810_drm.h | 2 ++
1 file changed, 2 insertions(+)
diff --git a/include/uapi/drm/i810_drm.h b/include/uapi/drm
Fixes compiler error:
drm/sis_drm.h:68:19: error: field âobj_listâ has incomplete type
struct list_head obj_list;
Signed-off-by: Mikko Rapeli
---
include/uapi/drm/sis_drm.h | 2 ++
1 file changed, 2 insertions(+)
diff --git a/include/uapi/drm/sis_drm.h b/include/uapi/drm/sis_drm.h
index
Fixes compiler error:
drm/savage_drm.h:50:24: error: array type has incomplete element type
struct drm_tex_region texList[SAVAGE_NR_TEX_HEAPS][SAVAGE_NR_TEX_REGIONS +
Signed-off-by: Mikko Rapeli
---
include/uapi/drm/savage_drm.h | 2 ++
1 file changed, 2 insertions(+)
diff --git a/include
Fixes compiler error since list_head is not exported to userspace headers.
Signed-off-by: Mikko Rapeli
---
include/uapi/drm/via_drm.h | 2 ++
1 file changed, 2 insertions(+)
diff --git a/include/uapi/drm/via_drm.h b/include/uapi/drm/via_drm.h
index 791531e..34ce658 100644
--- a/include/uapi
Fixes compiler error:
drm/via_drm.h:36:27: fatal error: via_drmclient.h: No such file or directory
Signed-off-by: Mikko Rapeli
---
include/uapi/drm/via_drm.h | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
diff --git a/include/uapi/drm/via_drm.h b/include/uapi/drm/via_drm.h
index
Fixes compile error:
drm/r128_drm.h:156:23: error: array type has incomplete element type
struct drm_clip_rect boxes[R128_NR_SAREA_CLIPRECTS];
Signed-off-by: Mikko Rapeli
---
include/uapi/drm/r128_drm.h | 2 ++
1 file changed, 2 insertions(+)
diff --git a/include/uapi/drm/r128_drm.h b
Fixes userspace compiler error:
drm/radeon_drm.h:794:2: error: unknown type name âuint64_tâ
Signed-off-by: Mikko Rapeli
---
include/uapi/drm/radeon_drm.h | 129 +-
1 file changed, 65 insertions(+), 64 deletions(-)
diff --git a/include/uapi/drm
Fixes userspace compilation errors like:
drm/nouveau_drm.h:41:2: error: unknown type name âuint32_tâ
Signed-off-by: Mikko Rapeli
---
include/uapi/drm/nouveau_drm.h | 86 +-
1 file changed, 44 insertions(+), 42 deletions(-)
diff --git a/include/uapi
Fixes userspace compilation error:
drm/exynos_drm.h:30:2: error: unknown type name âuint64_tâ
Signed-off-by: Mikko Rapeli
---
include/uapi/drm/exynos_drm.h | 7 ---
1 file changed, 4 insertions(+), 3 deletions(-)
diff --git a/include/uapi/drm/exynos_drm.h b/include/uapi/drm
Fixes userspace compilation error:
drm/drm_mode.h:472:2: error: unknown type name âuint32_tâ
Signed-off-by: Mikko Rapeli
---
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
Fixes userspace compilation error:
drm/drm.h:132:2: error: unknown type name âsize_tâ
Signed-off-by: Mikko Rapeli
---
include/uapi/drm/drm.h | 8
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/include/uapi/drm/drm.h b/include/uapi/drm/drm.h
index ff6ef62..b197650
On Thu, Apr 09, 2015 at 05:00:48PM +0100, Emil Velikov wrote:
> Hi Mikko
>
> Pardon for the late response,
>
> On 21 March 2015 at 12:17, Mikko Rapeli wrote:
> > On Fri, Mar 20, 2015 at 08:25:40PM +, Emil Velikov wrote:
> >> On 23 February 2015 at 10:35, Mikk
On Fri, Mar 20, 2015 at 08:25:40PM +, Emil Velikov wrote:
> On 23 February 2015 at 10:35, Mikko Rapeli wrote:
> > On Mon, Feb 23, 2015 at 10:26:58AM +, Emil Velikov wrote:
> >> On 16/02/15 23:05, Mikko Rapeli wrote:
> >> > Fixes compilation error:
> &
On Mon, Feb 23, 2015 at 10:26:58AM +, Emil Velikov wrote:
> On 16/02/15 23:05, Mikko Rapeli wrote:
> > Fixes compilation error:
> >
> > drm/drm.h:132:2: error: unknown type name âsize_tâ
> >
> Hi Mikko,
>
> Can you let us know how you're getting
Fixes userspace compilation error:
error: array type has incomplete element type
struct drm_clip_rect boxes[I810_NR_SAREA_CLIPRECTS];
Signed-off-by: Mikko Rapeli
---
include/uapi/drm/i810_drm.h | 2 ++
1 file changed, 2 insertions(+)
diff --git a/include/uapi/drm/i810_drm.h b/include/uapi/drm
Fixes compiler error:
drm/sis_drm.h:68:19: error: field âobj_listâ has incomplete type
struct list_head obj_list;
Signed-off-by: Mikko Rapeli
---
include/uapi/drm/sis_drm.h | 2 ++
1 file changed, 2 insertions(+)
diff --git a/include/uapi/drm/sis_drm.h b/include/uapi/drm/sis_drm.h
index
Fixes compiler error:
drm/savage_drm.h:50:24: error: array type has incomplete element type
struct drm_tex_region texList[SAVAGE_NR_TEX_HEAPS][SAVAGE_NR_TEX_REGIONS +
Signed-off-by: Mikko Rapeli
---
include/uapi/drm/savage_drm.h | 2 ++
1 file changed, 2 insertions(+)
diff --git a/include
Fixes compiler error since list_head is not exported to userspace headers.
Signed-off-by: Mikko Rapeli
---
include/uapi/drm/via_drm.h | 2 ++
1 file changed, 2 insertions(+)
diff --git a/include/uapi/drm/via_drm.h b/include/uapi/drm/via_drm.h
index 791531e..34ce658 100644
--- a/include/uapi
Fixes compiler error:
drm/via_drm.h:36:27: fatal error: via_drmclient.h: No such file or directory
Signed-off-by: Mikko Rapeli
---
include/uapi/drm/via_drm.h | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
diff --git a/include/uapi/drm/via_drm.h b/include/uapi/drm/via_drm.h
index
Fixes compile error:
drm/r128_drm.h:156:23: error: array type has incomplete element type
struct drm_clip_rect boxes[R128_NR_SAREA_CLIPRECTS];
Signed-off-by: Mikko Rapeli
---
include/uapi/drm/r128_drm.h | 2 ++
1 file changed, 2 insertions(+)
diff --git a/include/uapi/drm/r128_drm.h b
Fixes compiler error:
drm/radeon_drm.h:794:2: error: unknown type name âuint64_tâ
Signed-off-by: Mikko Rapeli
---
include/uapi/drm/radeon_drm.h | 5 +
1 file changed, 5 insertions(+)
diff --git a/include/uapi/drm/radeon_drm.h b/include/uapi/drm/radeon_drm.h
index 50d0fb4..4d8ed03
Fixes compilation error:
drm/nouveau_drm.h:41:2: error: unknown type name âuint32_tâ
Signed-off-by: Mikko Rapeli
---
include/uapi/drm/nouveau_drm.h | 6 ++
1 file changed, 6 insertions(+)
diff --git a/include/uapi/drm/nouveau_drm.h b/include/uapi/drm/nouveau_drm.h
index 0d7608d
Fixes compilation errors like:
drm/exynos_drm.h:30:2: error: unknown type name âuint64_tâ
Signed-off-by: Mikko Rapeli
---
include/uapi/drm/exynos_drm.h | 5 +
1 file changed, 5 insertions(+)
diff --git a/include/uapi/drm/exynos_drm.h b/include/uapi/drm/exynos_drm.h
index 5575ed1
Fixes compilation error:
drm/drm_mode.h:472:2: error: unknown type name âuint32_tâ
Signed-off-by: Mikko Rapeli
---
include/uapi/drm/drm_mode.h | 5 +
1 file changed, 5 insertions(+)
diff --git a/include/uapi/drm/drm_mode.h b/include/uapi/drm/drm_mode.h
index a0db2d4a..c55dfdf 100644
Fixes compilation error:
drm/drm.h:132:2: error: unknown type name âsize_tâ
Signed-off-by: Mikko Rapeli
---
include/uapi/drm/drm.h | 4
1 file changed, 4 insertions(+)
diff --git a/include/uapi/drm/drm.h b/include/uapi/drm/drm.h
index b0b8556..8f4488f 100644
--- a/include/uapi/drm
56 matches
Mail list logo