Re: type safe lists (was Re: PATCH: type safe(r) list_entry repacement: generic_out_cast)

From: Andi Kleen (ak@suse.de)
Date: Wed Jul 24 2002 - 08:23:39 EST


>
> As long as your pointers are 32bit this seems to be ok. But on
> 64bit implementations pointers are not (unsigned long) so this cast
> seems to be wrong.

A pointer fits into unsigned long on all 64bit linux ports.
The kernel very heavily relies on that.

You are probably thinking of Win64, but this is not Windows.

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



This archive was generated by hypermail 2b29 : Tue Jul 30 2002 - 14:00:15 EST