Whamcloud - gitweb
git://git.whamcloud.com
/
fs
/
lustre-release.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1c27989
)
macro to assign values to kdev_t
author
amrutjoshi
<amrutjoshi>
Fri, 9 May 2003 08:52:21 +0000
(08:52 +0000)
committer
amrutjoshi
<amrutjoshi>
Fri, 9 May 2003 08:52:21 +0000
(08:52 +0000)
lustre/include/linux/lustre_compat25.h
patch
|
blob
|
history
diff --git
a/lustre/include/linux/lustre_compat25.h
b/lustre/include/linux/lustre_compat25.h
index
20a641f
..
fe08646
100644
(file)
--- a/
lustre/include/linux/lustre_compat25.h
+++ b/
lustre/include/linux/lustre_compat25.h
@@
-23,6
+23,13
@@
#ifndef _COMPAT25_H
#define _COMPAT25_H
+
+#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,5,0)
+#define KDEVT_VAL(dev, val) dev.value = 0
+#else
+#define KDEVT_VAL(dev, val) dev = 0
+#endif
+
#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,5,0)
# define SIGNAL_MASK_LOCK(task, flags) spin_lock_irqsave( \
&task->sighand->siglock, flags)