[PATCH] compile fix for 2.5 kdev_t compatibility macros

Stephen Lord (lord@sgi.com)
28 Jun 2002 08:50:30 -0500


Marcelo,

We started using these for XFS, and found a missing bracket, patch
against 2.4.19-rc1.

Steve

*** linux-2.4.19-rc1/include/linux/kdev_t.h Fri Jun 28 08:40:22 2002
--- linux/include/linux/kdev_t.h Fri Jun 28 07:05:32 2002
***************
*** 81,87 ****
#define minor(d) MINOR(d)
#define kdev_same(a,b) ((a) == (b))
#define kdev_none(d) (!(d))
! #define kdev_val(d) ((unsigned int)(d)
#define val_to_kdev(d) ((kdev_t(d))

/*
--- 81,87 ----
#define minor(d) MINOR(d)
#define kdev_same(a,b) ((a) == (b))
#define kdev_none(d) (!(d))
! #define kdev_val(d) ((unsigned int)(d))
#define val_to_kdev(d) ((kdev_t(d))

/*

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/