[RFC] Using C99 stdint vs kernel __uX types in kernel drmUAPI (was Re: [PATCH 1/2] Revert "include/uapi/drm/amdgpu_drm.h: use __u32 and __u64 from ")

2016-08-22 Thread Ken Phillis Jr
On Mon, Aug 22, 2016 at 4:12 PM, wrote: > > On Mon, 22 Aug 2016, Emil Velikov wrote: > > Although last time around people leaned towards the __uX types, if we >> have a consensus amongst drm (kernel) developers about using stdint >> ones everything should be fine. >> We just need a handful of

[RFC] Using C99 stdint vs kernel __uX types in kernel drmUAPI (was Re: [PATCH 1/2] Revert "include/uapi/drm/amdgpu_drm.h: use __u32 and __u64 from ")

2016-08-22 Thread Daniel Vetter
On Mon, Aug 22, 2016 at 04:05:21PM +0100, Emil Velikov wrote: > On 22 August 2016 at 15:38, Daniel Vetter wrote: > > On Mon, Aug 22, 2016 at 12:38 PM, Rob Clark wrote: > >>> That said, _note_ that some applications are built with -C89 -pedantic > >>> [1] which means that using stdint.h may or

[RFC] Using C99 stdint vs kernel __uX types in kernel drmUAPI (was Re: [PATCH 1/2] Revert "include/uapi/drm/amdgpu_drm.h: use __u32 and __u64 from ")

2016-08-22 Thread Daniel Vetter
On Mon, Aug 22, 2016 at 12:38 PM, Rob Clark wrote: >> That said, _note_ that some applications are built with -C89 -pedantic >> [1] which means that using stdint.h may or may not work as expected. >> So we'll want a __STDC_VESION__ check + #error in case of pre-C99 ? >> If the affected programs

[RFC] Using C99 stdint vs kernel __uX types in kernel drmUAPI (was Re: [PATCH 1/2] Revert "include/uapi/drm/amdgpu_drm.h: use __u32 and __u64 from ")

2016-08-22 Thread Emil Velikov
On 22 August 2016 at 15:38, Daniel Vetter wrote: > On Mon, Aug 22, 2016 at 12:38 PM, Rob Clark wrote: >>> That said, _note_ that some applications are built with -C89 -pedantic >>> [1] which means that using stdint.h may or may not work as expected. >>> So we'll want a __STDC_VESION__ check +

[RFC] Using C99 stdint vs kernel __uX types in kernel drmUAPI (was Re: [PATCH 1/2] Revert "include/uapi/drm/amdgpu_drm.h: use __u32 and __u64 from ")

2016-08-22 Thread ran...@sibernet.com
On Mon, 22 Aug 2016, Emil Velikov wrote: > Although last time around people leaned towards the __uX types, if we > have a consensus amongst drm (kernel) developers about using stdint > ones everything should be fine. > We just need a handful of acks from the different maintainers. > My

[RFC] Using C99 stdint vs kernel __uX types in kernel drmUAPI (was Re: [PATCH 1/2] Revert "include/uapi/drm/amdgpu_drm.h: use __u32 and __u64 from ")

2016-08-22 Thread Mikko Rapeli
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, Emil Velikov wrote: > >>> Story time: > >>> I was

[RFC] Using C99 stdint vs kernel __uX types in kernel drmUAPI (was Re: [PATCH 1/2] Revert "include/uapi/drm/amdgpu_drm.h: use __u32 and __u64 from ")

2016-08-22 Thread Christian König
Am 22.08.2016 um 10:48 schrieb Emil Velikov: > > Although last time around people leaned towards the __uX types, if we > have a consensus amongst drm (kernel) developers about using stdint > ones everything should be fine. > We just need a handful of acks from the different maintainers. For the

[RFC] Using C99 stdint vs kernel __uX types in kernel drmUAPI (was Re: [PATCH 1/2] Revert "include/uapi/drm/amdgpu_drm.h: use __u32 and __u64 from ")

2016-08-22 Thread Emil Velikov
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, Emil Velikov wrote: >>> Story time: >>> I was dreaming of a day were we can stop installing these headers, >>> thus making

[RFC] Using C99 stdint vs kernel __uX types in kernel drmUAPI (was Re: [PATCH 1/2] Revert "include/uapi/drm/amdgpu_drm.h: use __u32 and __u64 from ")

2016-08-22 Thread Rob Clark
On Mon, Aug 22, 2016 at 4:48 AM, 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, Emil Velikov wrote: Story time: I was dreaming of a day