Re: Aarch64 EXT4FS inode checksum failures - seems to be weak memory ordering issues

From
Arnd Bergmann <arnd@kernel.org>
Date
2021-01-08 20:23:18
Also in
linux-arm-kernel, linux-toolchains, lkml
Reply to
Linus Torvalds, 2021-01-08
On Fri, Jan 8, 2021 at 9:02 PM Linus Torvalds
[off-list ref] wrote:
On Fri, Jan 8, 2021 at 1:27 AM Will Deacon [off-list ref] wrote:
quoted
On Fri, Jan 08, 2021 at 10:21:54AM +0100, Peter Zijlstra wrote:
quoted
On Thu, Jan 07, 2021 at 10:20:38PM +0100, Arnd Bergmann wrote:
quoted
On Thu, Jan 7, 2021 at 2:37 PM Russell King - ARM Linux admin
I appreciate Arnd pointing out "--std=gnu11", though. What are the
actual relevant language improvements?

Variable declarations in for-loops is the only one I can think of. I
think that would clean up some code (and some macros), but might not
be compelling on its own.
I think that was the main one, as most of --std=c11 is already part
of --std=gnu89 as a gnu extension. There were a few things that
came up with clang porting, as clang is somewhat closer to gnu11
than to gnu89, but I don't remember exactly what that was.

I would still like to improve READ_ONCE()/get_user()/cmpxchg()
further using __auto_type and _Generic where possible, but I think
that was already supported in gcc-4.9, and does not require gcc-5.

       Arnd
Thread (35 messages) 35 messages, 13 authors, last reply 2021-01-14
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