From: Kamil Debski Subject: [PATCH] drm/exynos: exynos_drm.h header file fixes Date: Fri, 10 Feb 2012 18:31:44 +0100 Message-ID: <1328895104-5695-1-git-send-email-k.debski@samsung.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mailout1.w1.samsung.com (mailout1.w1.samsung.com [210.118.77.11]) by gabe.freedesktop.org (Postfix) with ESMTP id 011B79EC5D for ; Fri, 10 Feb 2012 09:41:57 -0800 (PST) Received: from euspt2 (mailout1.w1.samsung.com [210.118.77.11]) by mailout1.w1.samsung.com (iPlanet Messaging Server 5.2 Patch 2 (built Jul 14 2004)) with ESMTP id <0LZ600FS8U15W4@mailout1.w1.samsung.com> for dri-devel@lists.freedesktop.org; Fri, 10 Feb 2012 17:31:53 +0000 (GMT) Received: from linux.samsung.com ([106.116.38.10]) by spt2.w1.samsung.com (iPlanet Messaging Server 5.2 Patch 2 (built Jul 14 2004)) with ESMTPA id <0LZ6000UIU15TZ@spt2.w1.samsung.com> for dri-devel@lists.freedesktop.org; Fri, 10 Feb 2012 17:31:53 +0000 (GMT) List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: dri-devel-bounces+sf-dri-devel=m.gmane.org@lists.freedesktop.org Errors-To: dri-devel-bounces+sf-dri-devel=m.gmane.org@lists.freedesktop.org To: dri-devel@lists.freedesktop.org Cc: sw0312.kim@samsung.com, inki.dae@samsung.com, kyungmin.park@samsung.com List-Id: dri-devel@lists.freedesktop.org First of all #ifdef __KERNEL__ was added to exynos_drm.h to mark the part that should be left out of userspace. Secondly exynos_drm.h was added to include/drm/Kbuild, so it will be included when doing make headers_install. Signed-off-by: Kamil Debski Signed-off-by: Kyungmin Park --- include/drm/Kbuild | 1 + include/drm/exynos_drm.h | 5 +++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/include/drm/Kbuild b/include/drm/Kbuild index a5c0e10..1e38a19 100644 --- a/include/drm/Kbuild +++ b/include/drm/Kbuild @@ -2,6 +2,7 @@ header-y += drm.h header-y += drm_fourcc.h header-y += drm_mode.h header-y += drm_sarea.h +header-y += exynos_drm.h header-y += i810_drm.h header-y += i915_drm.h header-y += mga_drm.h diff --git a/include/drm/exynos_drm.h b/include/drm/exynos_drm.h index 13b8660..5900e0b 100644 --- a/include/drm/exynos_drm.h +++ b/include/drm/exynos_drm.h @@ -99,6 +99,7 @@ struct drm_exynos_plane_set_zpos { #define DRM_IOCTL_EXYNOS_PLANE_SET_ZPOS DRM_IOWR(DRM_COMMAND_BASE + \ DRM_EXYNOS_PLANE_SET_ZPOS, struct drm_exynos_plane_set_zpos) +#ifdef __KERNEL__ /** * Platform Specific Structure for DRM based FIMD. * @@ -140,5 +141,5 @@ struct exynos_drm_hdmi_pdata { unsigned int default_win; unsigned int bpp; }; - -#endif +#endif /* __KERNEL__ */ +#endif /* _EXYNOS_DRM_H_ */ -- 1.7.0.4