Re: svn commit: r335053 - in head/sys: compat/freebsd32 compat/linux fs/nfsclient kern sys

2018-06-14 Thread Bruce Evans
On Thu, 14 Jun 2018, Hans Petter Selasky wrote: On 06/13/18 14:22, Bruce Evans wrote: [... inlines for makedev(), etc.] Can you use all macros here? This breaks OFED, because __makedev() is used to initialize variables. See another reply. I will change them to macros and fear breaking

Re: svn commit: r335053 - in head/sys: compat/freebsd32 compat/linux fs/nfsclient kern sys

2018-06-14 Thread Hans Petter Selasky
On 06/14/18 09:29, Hans Petter Selasky wrote: On 06/13/18 14:22, Bruce Evans wrote: +/* + * The major and minor numbers are encoded in dev_t as MMMmmmMm (where + * letters correspond to bytes).  The encoding of the lower 4 bytes is + * constrained by compatibility with 16-bit and 32-bit

Re: svn commit: r335053 - in head/sys: compat/freebsd32 compat/linux fs/nfsclient kern sys

2018-06-14 Thread Hans Petter Selasky
On 06/13/18 14:22, Bruce Evans wrote: +/* + * The major and minor numbers are encoded in dev_t as MMMmmmMm (where + * letters correspond to bytes). The encoding of the lower 4 bytes is + * constrained by compatibility with 16-bit and 32-bit dev_t's. The + * encoding of of the upper 4 bytes is