kernel: fix jffs2 compilation with GCC_PLUGIN_RANDSTRUCT enabled
authorMatt Merhar <mattmerhar@protonmail.com>
Sun, 29 Oct 2023 01:15:46 +0000 (21:15 -0400)
committerChristian Marangi <ansuelsmth@gmail.com>
Sun, 29 Oct 2023 10:32:57 +0000 (11:32 +0100)
commitaaa1286b89a058bab2d23f55182453bf1f5a5e69
tree257c5f8b3c247e303107ec62cf6861d59a90618f
parent5368066e9b83bfc7529cba9d8890bf06c23b62bd
kernel: fix jffs2 compilation with GCC_PLUGIN_RANDSTRUCT enabled

Designated initializers are required when using the randstruct GCC
plugin, otherwise an error like the following is seen:

./include/linux/lzma.h:60:31: error: positional initialization of field in 'struct' declared with 'designated_init' attribute [-Werror=designated-init]

This was originally applied via 55643e469c21, but was unintentionally
reverted in 483503603cb2.

Fixes: 483503603cb2 ("generic: 5.15: rework pending patch")
Signed-off-by: Matt Merhar <mattmerhar@protonmail.com>
(cherry picked from commit b2068f4aac43754a681b675ff3814d9ca87ac986)
[ drop change for unavailable kernel 6.1 ]
Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
target/linux/generic/pending-5.15/530-jffs2_make_lzma_available.patch