Thread (8 messages) 8 messages, 5 authors, 2021-09-20

Re: [PATCH] btrfs: fix initialiser warning in fs/btrfs/tree-checker.c

From: David Sterba <hidden>
Date: 2021-09-20 08:31:40

On Mon, Sep 20, 2021 at 04:25:24PM +0800, Qu Wenruo wrote:
quoted
Kees Cook does a tree wide unification to { } because there are some
oddities with partial initialization and { 0 } so this will get fixed
eventually.
Does this mean in the future only "= { }" is preferred?
Yes,
https://lore.kernel.org/all/20210910225207.3272766-1-keescook@chromium.org/ (local)
It would looks a little weird to me as C89/C90 doesn't allow this.

And I guess checkpatch would also be updated to handle that?
I think so but we can always override what checkpatch suggests.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help