]> git.openfabrics.org - ~emulex/for-vlad/old/compat.git/commitdiff
compat: add tty_lock()
authorLuis R. Rodriguez <mcgrof@frijolero.org>
Tue, 8 May 2012 07:26:43 +0000 (00:26 -0700)
committerLuis R. Rodriguez <mcgrof@frijolero.org>
Tue, 8 May 2012 07:26:43 +0000 (00:26 -0700)
For the lock, I had only backported the tty_unlock..

Signed-off-by: Luis R. Rodriguez <mcgrof@frijolero.org>
include/linux/compat-3.5.h

index 4cd0a0d340d334e69c38a8cea936ed8a7a0425a0..554d347a972b55ef7cdf1a9f1a53b101b2999038 100644 (file)
@@ -9,6 +9,7 @@
 extern int simple_open(struct inode *inode, struct file *file);
 
 /* Backports tty_lock: Localise the lock */
+#define tty_lock(__tty) tty_lock()
 #define tty_unlock(__tty) tty_unlock()
 
 #endif /* (LINUX_VERSION_CODE < KERNEL_VERSION(3,5,0)) */