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 via55643e469c, but was unintentionally reverted in483503603c. Fixes:483503603c("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>
This commit is contained in:
		
				
					committed by
					
						
						Christian Marangi
					
				
			
			
				
	
			
			
			
						parent
						
							5368066e9b
						
					
				
				
					commit
					aaa1286b89
				
			@@ -351,7 +351,7 @@ Signed-off-by: Alexandros C. Couloumbis <alex@ozo.com>
 | 
			
		||||
+		LZMA_FREE(address);
 | 
			
		||||
+}
 | 
			
		||||
+
 | 
			
		||||
+static ISzAlloc lzma_alloc = {p_lzma_malloc, p_lzma_free};
 | 
			
		||||
+static ISzAlloc lzma_alloc = { .Alloc = p_lzma_malloc, .Free = p_lzma_free };
 | 
			
		||||
+
 | 
			
		||||
+#endif
 | 
			
		||||
--- /dev/null
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user