[PATCH] maple_tree: Use correct variable type in sizeof

Matthew Wilcox willy at infradead.org
Mon Apr 10 06:51:48 PDT 2023


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.



More information about the maple-tree mailing list