Hi.
Attached is a trivial patch that fixes the build against a recent RC kernel.
Thanks.
--
Saleem Abdulrasool
compnerd (at) compnerd (dot) org
>From dadad4d4c59508b3e3b0ca8271be73aae71a5a5a Mon Sep 17 00:00:00 2001
From: Saleem Abdulrasool <compn...@compnerd.org>
Date: Thu, 22 Jan 2009 08:22:44 -0800
Subject: [PATCH] fix compile for linux kernel >= 2.6.29
---
linux-core/drm_fops.c | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
diff --git a/linux-core/drm_fops.c b/linux-core/drm_fops.c
index ec52110..6c9c3b7 100644
--- a/linux-core/drm_fops.c
+++ b/linux-core/drm_fops.c
@@ -250,7 +250,11 @@ static int drm_open_helper(struct inode *inode, struct
file *filp,
memset(priv, 0, sizeof(*priv));
filp->private_data = priv;
priv->filp = filp;
+#if (LINUX_VERSION_CODE < KERNEL_VERSION(2,6,29))
priv->uid = current->euid;
+#else
+ priv->uid = current->cred->euid;
+#endif
priv->pid = current->pid;
priv->minor = idr_find(&drm_minors_idr, minor_id);
priv->ioctl_count = 0;
--
1.6.1
------------------------------------------------------------------------------
This SF.net email is sponsored by:
SourcForge Community
SourceForge wants to tell your story.
http://p.sf.net/sfu/sf-spreadtheword
--
_______________________________________________
Dri-devel mailing list
Dri-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dri-devel