From: "Christian König" <deathsimple@vodafone.de>
To: Mikko Rapeli <mikko.rapeli@iki.fi>,
Emil Velikov <emil.l.velikov@gmail.com>
Cc: "Marek Olšák" <maraeo@gmail.com>,
"ML dri-devel" <dri-devel@lists.freedesktop.org>,
linux-kernel@vger.kernel.org
Subject: Re: [PATCH 1/2] Revert "include/uapi/drm/amdgpu_drm.h: use __u32 and __u64 from <linux/types.h>"
Date: Sun, 21 Aug 2016 11:03:21 +0200 [thread overview]
Message-ID: <16ec5b22-a3c1-1bf4-edc3-e1b2342be7f0@vodafone.de> (raw)
In-Reply-To: <20160820175835.GE5399@lakka.kapsi.fi>
Am 20.08.2016 um 19:58 schrieb Mikko Rapeli:
> 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 that those headers _are_ here to stay. And yes they
>> _are_ the UAPI, even though no applications are meant to use them but
>> the libdrm 'version'.
>> Thus any changes to the libdrm ones should be a mirror of the ones
>> here and libdrm should _not_ differ.
> Another day dream:
>
> Wouldn't it be nice if the uapi headers from Linux kernel would pass
> a simple quality check of compiling in userspace where they are meant to be
> used?
libdrm has a whole bunch of unit tests exercising the kernel UAPI
headers for both API and ABI compatibility.
So to be honest I see your good intentions here, but no those checks are
completely useless for us.
Christian.
> Stand alone. Without magic tricks and additional libraries and their
> headers. Without glibc or any other libc implementation specific additions.
> The uapi headers define many parts of the Linux kernel API and ABI, and thus
> compiling them also without the 'official' GNU/Linux userspace libraries
> like glibc or libdrm does have some uses. For example API and ABI
> compatibility checks and API/ABI/system call fuzzers.
>
> Many headers required stdint.h types but Linux kernel headers do not
> define them in userspace, and then Linus has said that uapi headers
> should use the linux/types.h with double underscores. Thus my patches
> for fixing trivial compile errors turned into changing several stdint.h
> definitions to linux/types.h.
>
> Yes, there have been some regressions in this work but to err is human.
> What is the actual problem and how can we (yes, including me) try to
> solve it?
>
> -Mikko
next prev parent reply other threads:[~2016-08-21 9:03 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <1471614628-11585-1-git-send-email-maraeo@gmail.com>
[not found] ` <759ce38b-eb22-ee27-243b-f99891519cfb@vodafone.de>
2016-08-19 14:52 ` Mikko Rapeli
2016-08-19 15:22 ` Marek Olšák
2016-08-19 17:11 ` Daniel Vetter
2016-08-19 17:12 ` Daniel Vetter
2016-08-19 17:21 ` Marek Olšák
[not found] ` <CACvgo50WfCT9F_WdKQ6rv=oytCMjq3SErbF02pzfhHgjKWxv5g@mail.gmail.com>
2016-08-20 17:58 ` Mikko Rapeli
2016-08-20 22:31 ` Rob Clark
2016-08-21 9:03 ` Christian König [this message]
[not found] ` <CAF6AEGuUYyaCXqb_fvFScCCj9K7aYCW2yTyvwfL4PPEi3d=K7A@mail.gmail.com>
[not found] ` <CACiKS=QcwuozPDDawbKp+scwhM-udL9C=R065FDUDhrP5UBJqw@mail.gmail.com>
[not found] ` <CAF6AEGtwYwXQN89bb-BVPYa8_kH3QdcPWoD6-K1zhn1q7Gc03A@mail.gmail.com>
[not found] ` <CACiKS=SH-BL-nF+X33fCtpjCdHsqGea01nr2ix3yanz0nCLKjA@mail.gmail.com>
2016-08-20 18:03 ` Mikko Rapeli
[not found] ` <CAAxE2A7aKeJW1x4s5iHuQYGp3QKO-h_0yrPCRdQ0VyYvm4cQNw@mail.gmail.com>
2016-08-20 18:08 ` Mikko Rapeli
2016-08-20 18:28 ` Marek Olšák
2016-08-20 18:37 ` Marek Olšák
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=16ec5b22-a3c1-1bf4-edc3-e1b2342be7f0@vodafone.de \
--to=deathsimple@vodafone.de \
--cc=dri-devel@lists.freedesktop.org \
--cc=emil.l.velikov@gmail.com \
--cc=linux-kernel@vger.kernel.org \
--cc=maraeo@gmail.com \
--cc=mikko.rapeli@iki.fi \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®