[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <YOOjxsfoOnZHDNA+@mit.edu>
Date: Mon, 5 Jul 2021 20:28:54 -0400
From: "Theodore Ts'o" <tytso@....edu>
To: Michael Forney <mforney@...rney.org>
Cc: linux-ext4@...r.kernel.org
Subject: Re: [PATCH 1/2] libext2fs: use statement-expression for container_of
only on GNU-compatible compilers
On Wed, Apr 14, 2021 at 12:41:27AM -0700, Michael Forney wrote:
> Functionally, the statement-expression is not necessary here; it
> just gives a bit of type-safety to make sure the pointer really
> does have a compatible type with the specified member of the struct.
>
> When statement expressions are not available, we can just use a
> portable fallback macro that skips this member type check.
>
> Signed-off-by: Michael Forney <mforney@...rney.org>
Applied, thanks.
- Ted
Powered by blists - more mailing lists