[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <YPxHYW/HPI/LLMXx@zeniv-ca.linux.org.uk>
Date: Sat, 24 Jul 2021 17:01:21 +0000
From: Al Viro <viro@...iv.linux.org.uk>
To: Sven Eckelmann <sven@...fation.org>
Cc: Arnd Bergmann <arnd@...db.de>, b.a.t.m.a.n@...ts.open-mesh.org,
linux-arch@...r.kernel.org, linux-kernel@...r.kernel.org
Subject: Re: [PATCH] asm-generic: avoid sparse {get,put}_unaligned warning
On Sat, Jul 24, 2021 at 06:24:29PM +0200, Sven Eckelmann wrote:
> The special attribute force must be used in such statements when the cast
> is known to be safe to avoid these warnings.
How about container_of(ptr, typeof(*__pptr), x) instead of a cast?
Would be easier to follow...
Powered by blists - more mailing lists