mirror of
https://github.com/libvirt/libvirt.git
synced 2025-02-25 18:55:26 -06:00
meson: remove obsolete check for BPF_CGROUP_DEVICE
The BPF_CGROUP_DEVICE constant was introduced to Linux in commit ebc614f687369f9df99828572b1d85a7c2de3d92 Author: Roman Gushchin <roman.gushchin@linux.dev> Date: Sun Nov 5 08:15:32 2017 -0500 bpf, cgroup: implement eBPF-based device controller for cgroup v2 This is old enough that all our supported platforms can be assumed to have this feature. Reviewed-by: Ján Tomko <jtomko@redhat.com> Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
This commit is contained in:
@@ -644,13 +644,6 @@ symbols = [
|
||||
[ 'sched.h', 'cpu_set_t' ],
|
||||
]
|
||||
|
||||
if host_machine.system() == 'linux'
|
||||
symbols += [
|
||||
# Check if we have new enough kernel to support BPF devices for cgroups v2
|
||||
[ 'linux/bpf.h', 'BPF_CGROUP_DEVICE' ],
|
||||
]
|
||||
endif
|
||||
|
||||
foreach symbol : symbols
|
||||
if cc.has_header_symbol(symbol[0], symbol[1], args: '-D_GNU_SOURCE', prefix: symbol.get(2, ''))
|
||||
conf.set('WITH_DECL_@0@'.format(symbol[1].to_upper()), 1)
|
||||
|
||||
Reference in New Issue
Block a user