[lkml]   [2002]   [Jan]   [18]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectType-change of kdev_t


I'm no kernel hacker so I am little hesitant to speak; however,
I'm looking at kdev_t.h from the linux-2.5.3-pre1 source.

The type of kdev_t has changed recently from a scalar type to a
structured type. Should macro definitions such as MINOR(dev) also
be revised to be consistent with the "new" kdev_t ?

Something like:

#define MINOR(dev) ((unsigned int) ((dev.value) & MINORMASK))

rather than

#define MINOR(dev) ((unsigned int) ((dev) & MINORMASK))

Then usage of the MINOR() macro remains unchanged.


Roger Brown

To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to
More majordomo info at
Please read the FAQ at

 \ /
  Last update: 2005-03-22 13:15    [W:0.021 / U:4.540 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site