Re: READ_ONCE() + STACKPROTECTOR_STRONG == :/ (was Re: [GIT PULL] Please pull powerpc/linux.git powerpc-5.5-2 tag (topic/kasan-bitops))

From
Linus Torvalds <torvalds@linux-foundation.org>
Date
2019-12-17 18:04:50
Also in
linux-arch, lkml
Reply to
Will Deacon, 2019-12-17
On Tue, Dec 17, 2019 at 9:07 AM Will Deacon [off-list ref] wrote:
However, I'm really banging my head against the compiler trying to get
your trick above to work for pointer types when the pointed-to-type is
not defined.
You are right, of course. The trick works fine with arithmetic types,
but since it does use arithmetic, it requires that pointer types be
not only declared, but defined. The addition wants the size of the
underlying type (even though with an addition of zero it wouldn't be
required - but that's not how C works).

Let me think about it.

             Linus
Thread (43 messages) 43 messages, 9 authors, last reply 2019-12-19
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