mirror of
				https://github.com/torvalds/linux.git
				synced 2025-11-04 02:30:34 +02:00 
			
		
		
		
	selftests: vDSO: parse_vdso: Use UAPI headers instead of libc headers
To allow the usage of parse_vdso.c together with a limited libc like nolibc, use the kernels own elf.h and auxvec.h headers. Signed-off-by: Thomas Weißschuh <thomas.weissschuh@linutronix.de> Signed-off-by: Thomas Gleixner <tglx@linutronix.de> Reviewed-by: Vincenzo Frascino <vincenzo.frascino@arm.com> Acked-by: Shuah Khan <skhan@linuxfoundation.org> Link: https://lore.kernel.org/all/20250226-parse_vdso-nolibc-v2-12-28e14e031ed8@linutronix.de
This commit is contained in:
		
							parent
							
								
									09dcec6470
								
							
						
					
					
						commit
						c9fbaa8795
					
				
					 2 changed files with 5 additions and 1 deletions
				
			
		| 
						 | 
				
			
			@ -19,6 +19,9 @@ LDLIBS += -lgcc_s
 | 
			
		|||
endif
 | 
			
		||||
 | 
			
		||||
include ../lib.mk
 | 
			
		||||
 | 
			
		||||
CFLAGS += $(TOOLS_INCLUDES)
 | 
			
		||||
 | 
			
		||||
$(OUTPUT)/vdso_test_gettimeofday: parse_vdso.c vdso_test_gettimeofday.c
 | 
			
		||||
$(OUTPUT)/vdso_test_getcpu: parse_vdso.c vdso_test_getcpu.c
 | 
			
		||||
$(OUTPUT)/vdso_test_abi: parse_vdso.c vdso_test_abi.c
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -19,7 +19,8 @@
 | 
			
		|||
#include <stdint.h>
 | 
			
		||||
#include <string.h>
 | 
			
		||||
#include <limits.h>
 | 
			
		||||
#include <elf.h>
 | 
			
		||||
#include <linux/auxvec.h>
 | 
			
		||||
#include <linux/elf.h>
 | 
			
		||||
 | 
			
		||||
#include "parse_vdso.h"
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in a new issue