Re: [PATCH] Allow 32-bit and 64-bit hashes

From: Linus Torvalds
Date: Mon Dec 04 2006 - 10:47:19 EST




On Mon, 4 Dec 2006, Matthew Wilcox wrote:
>
> The sym2 driver would like to hash a u32 value, and it could just
> call hash_long() and rely on integer promotion on 64-bit machines, but
> that seems a little wasteful.

Hmm. It would appear that the <linux/hash.h> file now needs
<linux/types.h>, no?

I do think it's a good change otherwise.

Linus
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/