Skip to content

Commit b633054

Browse files
pfalconairlied
authored andcommitted
drm.h: Fix DRM compilation with bare-metal toolchain.
An ifdef in drm.h expects to be compiled with full-fledged Linux toolchain, but it's common to compile kernel with just bare-metal toolchain which doesn't define __linux__. So, also add __KERNEL__ check. [nm@ti.com: port forward to 3.9-rc6 and post to dri devel for feedback as RFC] Signed-off-by: Paul Sokolovsky <paul.sokolovsky@linaro.org> Signed-off-by: Dave Airlie <airlied@redhat.com>
1 parent 025df77 commit b633054

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎include/uapi/drm/drm.h‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636
#ifndef _DRM_H_
3737
#define _DRM_H_
3838

39-
#if defined(__linux__)
39+
#if defined(__KERNEL__) || defined(__linux__)
4040

4141
#include <linux/types.h>
4242
#include <asm/ioctl.h>

0 commit comments

Comments
 (0)