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)
committerMatt Merhar <mattmerhar@protonmail.com>
Sun, 29 Oct 2023 01:17:16 +0000 (21:17 -0400)
commitb2068f4aac43754a681b675ff3814d9ca87ac986
treea64ffdd4dd56c5ac9927c27869051186d178803b
parentb7c12a9bfc01067f167ff805acdc1411d798b977
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>
target/linux/generic/pending-5.15/530-jffs2_make_lzma_available.patch
target/linux/generic/pending-6.1/530-jffs2_make_lzma_available.patch