linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
From: Matthew Wilcox <willy@infradead.org>
To: Peng Zhang <zhangpeng.00@bytedance.com>
Cc: Gang Li <ligang.bdlg@bytedance.com>,
	akpm@linux-foundation.org, linux-mm@kvack.org,
	linux-kernel@vger.kernel.org, maple-tree@lists.infradead.org,
	David Binderman <dcb314@hotmail.com>
Subject: Re: [PATCH] maple_tree: Use correct variable type in sizeof
Date: Mon, 10 Apr 2023 14:51:48 +0100	[thread overview]
Message-ID: <ZDQUdK/hht5I9/p7@casper.infradead.org> (raw)
In-Reply-To: <b1ea2c08-8e88-e04f-417b-4cf0daa417b1@bytedance.com>

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.


  reply	other threads:[~2023-04-10 13:52 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-04-10  9:14 Peng Zhang
2023-04-10  9:46 ` Gang Li
2023-04-10 10:09   ` Peng Zhang
2023-04-10 13:51     ` Matthew Wilcox [this message]
2023-04-11 10:16     ` David Laight
2023-04-10 12:58 ` Liam R. Howlett

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=ZDQUdK/hht5I9/p7@casper.infradead.org \
    --to=willy@infradead.org \
    --cc=akpm@linux-foundation.org \
    --cc=dcb314@hotmail.com \
    --cc=ligang.bdlg@bytedance.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-mm@kvack.org \
    --cc=maple-tree@lists.infradead.org \
    --cc=zhangpeng.00@bytedance.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox