From 9c52f68829e9df518c9defad23437952685a986e Mon Sep 17 00:00:00 2001 From: amrutjoshi Date: Fri, 9 May 2003 08:52:21 +0000 Subject: [PATCH] macro to assign values to kdev_t --- lustre/include/linux/lustre_compat25.h | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/lustre/include/linux/lustre_compat25.h b/lustre/include/linux/lustre_compat25.h index 20a641f..fe08646 100644 --- 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) -- 1.8.3.1