Skip to contentSkip to conversation

drm/exynos: exynos_drm.h header file fixes

PATCH In review Kamil Debski 2 participants 3 messages Feb 10, 2012 – Feb 14, 2012

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 drm/exynos: exynos_drm.h header file fixes

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.

---
 include/drm/Kbuild       |    1 +
 include/drm/exynos_drm.h |    5 +++--
 2 files changed, 4 insertions(+), 2 deletions(-)
include/drm/Kbuild +1 -0
index a5c0e10..1e38a19 100644
@@ -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
include/drm/exynos_drm.h +3 -2
index 13b8660..5900e0b 100644
@@ -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_ */
Signature · 1 line
1.7.0.4
#1 lore raw

Hi, Kamil.
Sorry for being late.

Below is my comments.

Quoted 38 lines

-----Original Message-----
From: Kamil Debski [mailto:[email protected]]
Sent: Saturday, February 11, 2012 2:32 AM
To: [email protected]
Cc: [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; Kamil Debski
Subject: [PATCH] drm/exynos: exynos_drm.h header file fixes

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.

---
 include/drm/Kbuild       |    1 +
 include/drm/exynos_drm.h |    5 +++--
 2 files changed, 4 insertions(+), 2 deletions(-)
include/drm/Kbuild +1 -0
index a5c0e10..1e38a19 100644
@@ -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
include/drm/exynos_drm.h +0 -0
index 13b8660..5900e0b 100644

include/drm/exynos_drm.h struct drm_exynos_plane_set_zpos { · line 103

Quoted 5 lines
include/drm/exynos_drm.h +1 -0
@@ -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__

could you please modify it for this macro to be place above of struct exynos_drm_panel_info? struct exynos_drm_panel_info also isn't needed for user side.

Thanks.

Quoted 13 lines
include/drm/exynos_drm.h +0 -0
 /**
  * Platform Specific Structure for DRM based FIMD.

*

include/drm/exynos_drm.h +2 -3
@@ -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

#2 lore raw
In reply to Kamil Debski

Hi, Kamil.
Sorry. our patch has no problem and this is my mistake. so your patch has been merged to our git repository.

Thanks.

Quoted 76 lines

-----Original Message-----
From: Inki Dae [mailto:[email protected]]
Sent: Tuesday, February 14, 2012 5:58 PM
To: 'Kamil Debski'; '[email protected]'
Cc: '[email protected]'; '[email protected]'; '[email protected]'; '[email protected]'
Subject: RE: [PATCH] drm/exynos: exynos_drm.h header file fixes

Hi, Kamil.
Sorry for being late.

Below is my comments.

Quoted 38 lines

-----Original Message-----
From: Kamil Debski [mailto:[email protected]]
Sent: Saturday, February 11, 2012 2:32 AM
To: [email protected]
Cc: [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; Kamil Debski
Subject: [PATCH] drm/exynos: exynos_drm.h header file fixes

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.

---
 include/drm/Kbuild       |    1 +
 include/drm/exynos_drm.h |    5 +++--
 2 files changed, 4 insertions(+), 2 deletions(-)
include/drm/Kbuild +1 -0
index a5c0e10..1e38a19 100644
@@ -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
include/drm/exynos_drm.h +0 -0
index 13b8660..5900e0b 100644

include/drm/exynos_drm.h struct drm_exynos_plane_set_zpos { · line 103

Quoted 5 lines
include/drm/exynos_drm.h +1 -0
@@ -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__

could you please modify it for this macro to be place above of struct exynos_drm_panel_info? struct exynos_drm_panel_info also isn't needed for user side.

Thanks.

Quoted 13 lines
include/drm/exynos_drm.h +0 -0
 /**
  * Platform Specific Structure for DRM based FIMD.

*

include/drm/exynos_drm.h +2 -3
@@ -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