Re: [PATCH] maple_tree: Use correct variable type in sizeof

From: Matthew Wilcox
Date: Mon Apr 10 2023 - 09:52:54 EST


On Mon, Apr 10, 2023 at 06:09:27PM +0800, Peng Zhang wrote:
> Maybe sizeof(void *) is equal to sizeof(unsigned long)
> in most architectures, so I don't know if it counts as a fix.

This is actually required inside the Linux kernel. The only programming
model I know where sizeof(void *) != sizeof(unsigned long) is Windows
64-bit userspace.