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] Signed-off-by: Matt Merhar <mattmerhar@protonmail.com>
This commit is contained in:
		 Matt Merhar
					Matt Merhar
				
			
				
					committed by
					
						 Hauke Mehrtens
						Hauke Mehrtens
					
				
			
			
				
	
			
			
			 Hauke Mehrtens
						Hauke Mehrtens
					
				
			
						parent
						
							1a3b3dc797
						
					
				
				
					commit
					55643e469c
				
			| @@ -351,7 +351,7 @@ Signed-off-by: Alexandros C. Couloumbis <alex@ozo.com> | |||||||
| +		LZMA_FREE(address); | +		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 | +#endif | ||||||
| --- /dev/null | --- /dev/null | ||||||
|   | |||||||
| @@ -351,7 +351,7 @@ Signed-off-by: Alexandros C. Couloumbis <alex@ozo.com> | |||||||
| +		LZMA_FREE(address); | +		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 | +#endif | ||||||
| --- /dev/null | --- /dev/null | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user