Re: [PATCH 0/3] Add offsetofp() and offsetofendp() for pointer arithmetic

From: David Laight

Date: Sun Nov 08 2026 - 15:46:00 EST


On Fri, 6 Nov 2026 09:29:24 +0100
Bence Csókás <bence.csokas@xxxxxxx> wrote:

Not cc'ing everyone because there are too many addresses.

> However, as Sashiko pointed out (don't know why it didn't write this
> earlier), struct_offset() already exists, so we should just use that
> one, and probably add a struct_offset_end() variant.

Even that is 'another define that you might have to look up'.
A lot of these 'helpers' don't really help.

David