Perhaps:
#if BITS_PER_LONG == 64
typedef struct { u64 val; } kdev_t;
/* Macros for major minor mkdev */
#else
typedef struct { u32 major, minor; } kdev_t;
/* Macros... */
#endif
-hpa
-
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/