Re: [PATCH] new system call mknod64

Jamie Lokier (jamie@shareable.org)
Tue, 22 Apr 2003 03:01:53 +0100


H. Peter Anvin wrote:
> > Well, I have also done that of course. Both struct and u64 work well.
> > Since only kdev_t.h knows about the actual structure of kdev_t
> > it is very easy to switch.
> >
>
> The main advantage with making it a struct is that it keep people from
> doing stupid stuff like (int)dev where dev is a kdev_t... There is
> all kinds of shit like that in the kernel...

If you want that good quality 64-bit code, try making it a struct
containing just a u64 :)

-- Jamie
-
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/