Re: [PATCH] asm-generic: avoid sparse {get,put}_unaligned warning

From
Al Viro <viro@zeniv.linux.org.uk>
Date
2021-07-24 17:05:55
Also in
batman, lkml
Reply to
Sven Eckelmann, 2021-07-24
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...
Thread (6 messages) 6 messages, 4 authors, last reply 2021-07-27
Keyboard shortcuts
hback out one level
jnext message in thread / next series-diff position
kprevious message in thread / previous series-diff position
ldrill in
Escclose help / fold thread tree
?toggle this help