forked from mirrors/linux
		
	 836d13a6ef
			
		
	
	
		836d13a6ef
		
	
	
	
	
		
			
			Remove the public domain notices and add SPDX license identifiers. Change MODULE_LICENSE from "GPL" to "Dual BSD/GPL" because 0BSD should count as a BSD license variant here. The switch to 0BSD was done in the upstream XZ Embedded project because public domain has (real or perceived) legal issues in some jurisdictions. Link: https://lkml.kernel.org/r/20240721133633.47721-4-lasse.collin@tukaani.org Signed-off-by: Lasse Collin <lasse.collin@tukaani.org> Reviewed-by: Sam James <sam@gentoo.org> Cc: Thomas Gleixner <tglx@linutronix.de> Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org> Cc: Albert Ou <aou@eecs.berkeley.edu> Cc: Catalin Marinas <catalin.marinas@arm.com> Cc: Emil Renner Berthing <emil.renner.berthing@canonical.com> Cc: Herbert Xu <herbert@gondor.apana.org.au> Cc: Joel Stanley <joel@jms.id.au> Cc: Jonathan Corbet <corbet@lwn.net> Cc: Jubin Zhong <zhongjubin@huawei.com> Cc: Jules Maselbas <jmaselbas@zdiv.net> Cc: Krzysztof Kozlowski <krzk@kernel.org> Cc: Michael Ellerman <mpe@ellerman.id.au> Cc: Palmer Dabbelt <palmer@dabbelt.com> Cc: Paul Walmsley <paul.walmsley@sifive.com> Cc: Randy Dunlap <rdunlap@infradead.org> Cc: Rui Li <me@lirui.org> Cc: Simon Glass <sjg@chromium.org> Cc: Will Deacon <will@kernel.org> Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
		
			
				
	
	
		
			18 lines
		
	
	
	
		
			435 B
		
	
	
	
		
			C
		
	
	
	
	
	
			
		
		
	
	
			18 lines
		
	
	
	
		
			435 B
		
	
	
	
		
			C
		
	
	
	
	
	
| /* SPDX-License-Identifier: 0BSD */
 | |
| 
 | |
| /*
 | |
|  * Wrapper for decompressing XZ-compressed kernel, initramfs, and initrd
 | |
|  *
 | |
|  * Author: Lasse Collin <lasse.collin@tukaani.org>
 | |
|  */
 | |
| 
 | |
| #ifndef DECOMPRESS_UNXZ_H
 | |
| #define DECOMPRESS_UNXZ_H
 | |
| 
 | |
| int unxz(unsigned char *in, long in_size,
 | |
| 	 long (*fill)(void *dest, unsigned long size),
 | |
| 	 long (*flush)(void *src, unsigned long size),
 | |
| 	 unsigned char *out, long *in_used,
 | |
| 	 void (*error)(char *x));
 | |
| 
 | |
| #endif
 |