[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <YOPGHGlM2an3f8rK@mit.edu>
Date: Mon, 5 Jul 2021 22:55:24 -0400
From: "Theodore Ts'o" <tytso@....edu>
To: Michael Forney <mforney@...rney.org>
Cc: linux-ext4@...r.kernel.org
Subject: Re: [PATCH 2/2] libext2fs: use offsetof() from stddef.h
On Wed, Apr 14, 2021 at 12:41:28AM -0700, Michael Forney wrote:
> offsetof is a standard C feature available from stddef.h, going
> back all the way to ANSI C.
>
> Signed-off-by: Michael Forney <mforney@...rney.org>
Thanks, applied.
> Perhaps there is some reason to prefer compiler builtins over libc
> that I'm not seeing?
It's because I pulled container_of from the kernel, and the kernel
header files has to provide offsetof since we don't use the standard
header files --- and it has to work across a bunch of compilers and
architectures.
- Ted
Powered by blists - more mailing lists