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

Gabriel Laskar gabriel at lse.epita.fr
Tue Nov 17 11:13:53 PST 2015


On Tue, 17 Nov 2015 11:08:12 +0000
Emil Velikov <emil.l.velikov at gmail.com> wrote:

> With the above said:
>  - I was thinking about hiding the UAPI ones, although Dave suggested
> against it.
>  - Doing s|drm/drm.h|drm.h| will break compilation:
>    + for the kernel - as we don't add the foo/drm/ to the include directive,
>    + for any hacked up userspace - very unlikely that they have the
> include, considering that things work without it.

We are not suggesting doing s|drm/drm.h|drm.h| but by replacing

#include <drm/drm.h>

by

#include "drm.h"

The header will be picked-up correclty 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


More information about the dri-devel mailing list