[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <ZDQUdK/hht5I9/p7@casper.infradead.org>
Date: Mon, 10 Apr 2023 14:51:48 +0100
From: Matthew Wilcox <willy@...radead.org>
To: Peng Zhang <zhangpeng.00@...edance.com>
Cc: Gang Li <ligang.bdlg@...edance.com>, akpm@...ux-foundation.org,
linux-mm@...ck.org, linux-kernel@...r.kernel.org,
maple-tree@...ts.infradead.org,
David Binderman <dcb314@...mail.com>
Subject: Re: [PATCH] maple_tree: Use correct variable type in sizeof
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.
Powered by blists - more mailing lists