forked from mirrors/linux
		
	For a number of years, UAPI headers have been split from kernel-internal headers. The latter are never exposed to userspace, and always built with __KERNEL__ defined. Most headers under arch/arm64 don't have __KERNEL__ guards, but there are a few stragglers lying around. To make things more consistent, and to set a good example going forward, let's remove these redundant __KERNEL__ guards. In a couple of cases, a trailing #endif lacked a comment describing its corresponding #if or #ifdef, so these are fixes up at the same time. Guards in auto-generated crypto code are left as-is, as these guards are generated by scripting imported from the upstream openssl project scripts. Guards in UAPI headers are left as-is, as these can be included by userspace or the kernel. There should be no functional change as a result of this patch. Signed-off-by: Mark Rutland <mark.rutland@arm.com> Cc: Ard Biesheuvel <ard.biesheuvel@linaro.org> Cc: Catalin Marinas <catalin.marinas@arm.com> Cc: Will Deacon <will.deacon@arm.com> Signed-off-by: Will Deacon <will@kernel.org>
		
			
				
	
	
		
			29 lines
		
	
	
	
		
			604 B
		
	
	
	
		
			C
		
	
	
	
	
	
			
		
		
	
	
			29 lines
		
	
	
	
		
			604 B
		
	
	
	
		
			C
		
	
	
	
	
	
/* SPDX-License-Identifier: GPL-2.0-only */
 | 
						|
/*
 | 
						|
 * Copyright (C) 2012 ARM Limited
 | 
						|
 */
 | 
						|
#ifndef __ASM_VDSO_H
 | 
						|
#define __ASM_VDSO_H
 | 
						|
 | 
						|
/*
 | 
						|
 * Default link address for the vDSO.
 | 
						|
 * Since we randomise the VDSO mapping, there's little point in trying
 | 
						|
 * to prelink this.
 | 
						|
 */
 | 
						|
#define VDSO_LBASE	0x0
 | 
						|
 | 
						|
#ifndef __ASSEMBLY__
 | 
						|
 | 
						|
#include <generated/vdso-offsets.h>
 | 
						|
#ifdef CONFIG_COMPAT_VDSO
 | 
						|
#include <generated/vdso32-offsets.h>
 | 
						|
#endif
 | 
						|
 | 
						|
#define VDSO_SYMBOL(base, name)						   \
 | 
						|
({									   \
 | 
						|
	(void *)(vdso_offset_##name - VDSO_LBASE + (unsigned long)(base)); \
 | 
						|
})
 | 
						|
 | 
						|
#endif /* !__ASSEMBLY__ */
 | 
						|
 | 
						|
#endif /* __ASM_VDSO_H */
 |