[PATCH 0/3] Add offsetofp() and offsetofendp() for pointer arithmetic
Christoph Hellwig
hch at infradead.org
Fri Nov 6 00:04:10 PST 2026
On Thu, Nov 05, 2026 at 06:16:15PM +0100, Bence Csokas wrote:
> A common usage pattern for offsetof() is the following:
>
> offsetof(typeof(*ptr), member)
>
> Condense this operation to one macro for a more maintainable code base.
What exactly makes non-standard macros with no obvious safety benefit
more maintainable?
More information about the linux-snps-arc
mailing list