From: amrutjoshi Date: Fri, 9 May 2003 08:52:21 +0000 (+0000) Subject: macro to assign values to kdev_t X-Git-Tag: v1_7_100~1^91~289 X-Git-Url: https://git.whamcloud.com/?a=commitdiff_plain;h=9c52f68829e9df518c9defad23437952685a986e;p=fs%2Flustre-release.git macro to assign values to kdev_t --- 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)