forked from mirrors/linux
		
	bpf, s390: fix build for libbpf and selftest suite
The BPF feature test as well as libbpf is missing the __NR_bpf
define for s390 and currently refuses to compile (selftest suite
depends on libbpf as well). Similar issue was fixed some time
ago via b0c47807d3 ("bpf: Add sparc support to tools and
samples."), just do the same and add definitions.
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
			
			
This commit is contained in:
		
							parent
							
								
									b0a0c2566f
								
							
						
					
					
						commit
						bad1926dd2
					
				
					 2 changed files with 4 additions and 0 deletions
				
			
		| 
						 | 
					@ -11,6 +11,8 @@
 | 
				
			||||||
#  define __NR_bpf 280
 | 
					#  define __NR_bpf 280
 | 
				
			||||||
# elif defined(__sparc__)
 | 
					# elif defined(__sparc__)
 | 
				
			||||||
#  define __NR_bpf 349
 | 
					#  define __NR_bpf 349
 | 
				
			||||||
 | 
					# elif defined(__s390__)
 | 
				
			||||||
 | 
					#  define __NR_bpf 351
 | 
				
			||||||
# else
 | 
					# else
 | 
				
			||||||
#  error __NR_bpf not defined. libbpf does not support your arch.
 | 
					#  error __NR_bpf not defined. libbpf does not support your arch.
 | 
				
			||||||
# endif
 | 
					# endif
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -39,6 +39,8 @@
 | 
				
			||||||
#  define __NR_bpf 280
 | 
					#  define __NR_bpf 280
 | 
				
			||||||
# elif defined(__sparc__)
 | 
					# elif defined(__sparc__)
 | 
				
			||||||
#  define __NR_bpf 349
 | 
					#  define __NR_bpf 349
 | 
				
			||||||
 | 
					# elif defined(__s390__)
 | 
				
			||||||
 | 
					#  define __NR_bpf 351
 | 
				
			||||||
# else
 | 
					# else
 | 
				
			||||||
#  error __NR_bpf not defined. libbpf does not support your arch.
 | 
					#  error __NR_bpf not defined. libbpf does not support your arch.
 | 
				
			||||||
# endif
 | 
					# endif
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in a new issue