diff mbox

[08/20] drm: drop __KERNEL__ protection in drmP.h

Message ID 1409307166-12396-9-git-send-email-dh.herrmann@gmail.com (mailing list archive)
State New, archived
Headers show

Commit Message

David Herrmann Aug. 29, 2014, 10:12 a.m. UTC
drmP.h is internal to the kernel. No need to keep the __KERNEL__
protection.

Signed-off-by: David Herrmann <dh.herrmann@gmail.com>
---
 include/drm/drmP.h | 2 --
 1 file changed, 2 deletions(-)

Comments

Thierry Reding Aug. 29, 2014, 11:46 a.m. UTC | #1
On Fri, Aug 29, 2014 at 12:12:34PM +0200, David Herrmann wrote:
> drmP.h is internal to the kernel. No need to keep the __KERNEL__
> protection.
> 
> Signed-off-by: David Herrmann <dh.herrmann@gmail.com>
> ---
>  include/drm/drmP.h | 2 --
>  1 file changed, 2 deletions(-)

Reviewed-by: Thierry Reding <treding@nvidia.com>
diff mbox

Patch

diff --git a/include/drm/drmP.h b/include/drm/drmP.h
index 31fb300..d3504c6 100644
--- a/include/drm/drmP.h
+++ b/include/drm/drmP.h
@@ -35,7 +35,6 @@ 
 #ifndef _DRM_P_H_
 #define _DRM_P_H_
 
-#ifdef __KERNEL__
 #include <linux/sched.h>
 #include <linux/kernel.h>
 #include <linux/kref.h>
@@ -1544,5 +1543,4 @@  static __inline__ bool drm_can_sleep(void)
 	return true;
 }
 
-#endif				/* __KERNEL__ */
 #endif