We no longer support versions of linux before 4.19[1], therefore all supported linux versions support F_ADD_SEALS (Linux 3.17+) and MFD_HUGETLB (Linux 4.14+), so no need to have #ifdefs and fallbacks to support systems which do not support those features.
[1] https://doc.dpdk.org/guides/linux_gsg/sys_reqs.html#system-software Bruce Richardson (3): eal/linux: remove fallbacks for old Linux versions vhost: : remove fallbacks for old Linux versions memif: : remove fallbacks for old Linux versions drivers/net/memif/rte_eth_memif.h | 41 ------- lib/eal/linux/eal_memalloc.c | 174 +++++------------------------- lib/eal/linux/eal_memory.c | 7 -- lib/vhost/vhost_user.c | 7 -- 4 files changed, 24 insertions(+), 205 deletions(-) -- 2.48.1