CC [M] /var/tmp/portage/net-misc/ena-driver-2.6.1/work/amzn-drivers-ena_linux_2.6.1/kernel/linux/ena/ena_netdev.o CC [M] /var/tmp/portage/net-misc/ena-driver-2.6.1/work/amzn-drivers-ena_linux_2.6.1/kernel/linux/ena/ena_ethtool.o CC [M] /var/tmp/portage/net-misc/ena-driver-2.6.1/work/amzn-drivers-ena_linux_2.6.1/kernel/linux/ena/ena_lpc.o CC [M] /var/tmp/portage/net-misc/ena-driver-2.6.1/work/amzn-drivers-ena_linux_2.6.1/kernel/linux/ena/dim.o /var/tmp/portage/net-misc/ena-driver-2.6.1/work/amzn-drivers-ena_linux_2.6.1/kernel/linux/ena/ena_ethtool.c:1072:35: error: initialization of int (*)(struct net_device *, struct ethtool_coalesce *, struct kernel_ethtool_coalesce *, struct netlink_ext_ack *)’ from incompatible pointer type int (*)(struct net_device *, struct ethtool_coalesce *)’ [-Werror=incompatible-pointer-types] 1072 | .get_coalesce = ena_get_coalesce, | ^~~~~~~~~~~~~~~~ ------------------------------------------------------------------- This is an unstable amd64 chroot image at a tinderbox (==build bot) name: 17.1_desktop_plasma-j4-20220228-233411 ------------------------------------------------------------------- gcc-config -l: [1] x86_64-pc-linux-gnu-9.3.1 [2] x86_64-pc-linux-gnu-11.2.1 * clang/llvm (if any): /usr/lib/llvm/13 13.0.1 Python 3.9.10 Available Ruby profiles: [1] ruby26 (with Rubygems) [2] ruby27 (with Rubygems) [3] ruby30 (with Rubygems) * Available Rust versions: [1] rust-bin-1.59.0 [2] rust-1.59.0 * The following VMs are available for generation-2: *) Eclipse Temurin JDK 11.0.14_p9 [openjdk-bin-11] 2) Eclipse Temurin JDK 8.322_p06 [openjdk-bin-8] Available Java Virtual Machines: [1] openjdk-bin-8 [2] openjdk-bin-11 system-vm The Glorious Glasgow Haskell Compilation System, version 8.10.4 php cli: HEAD of ::gentoo commit f9ee0ca272727d9f9d9e165b55816f8c5dc76027 Author: Repository mirror & CI <repomirrorci@gentoo.org> Date: Sat Mar 5 00:36:59 2022 +0000 2022-03-05 00:36:57 UTC emerge -qpvO net-misc/ena-driver [ebuild N ] net-misc/ena-driver-2.6.1 USE="-dist-kernel"
Created attachment 766287 [details] emerge-info.txt
Created attachment 766288 [details] emerge-history.txt.bz2
Created attachment 766289 [details] environment
Created attachment 766290 [details] etc.portage.tar.bz2
Created attachment 766291 [details] net-misc:ena-driver-2.6.1:20220305-011553.log
linux-5.15 has changed the interface for ethtool_ops: diff --git a/include/linux/ethtool.h b/include/linux/ethtool.h index a9d77a6a3e00..849524b55d89 100644 --- a/include/linux/ethtool.h +++ b/include/linux/ethtool.h @@ -15,6 +15,7 @@ #include <linux/bitmap.h> #include <linux/compat.h> +#include <linux/netlink.h> #include <uapi/linux/ethtool.h> struct compat_ethtool_rx_flow_spec { @@ -611,8 +612,14 @@ struct ethtool_ops { struct ethtool_eeprom *, u8 *); int (*set_eeprom)(struct net_device *, struct ethtool_eeprom *, u8 *); - int (*get_coalesce)(struct net_device *, struct ethtool_coalesce *); - int (*set_coalesce)(struct net_device *, struct ethtool_coalesce *); + int (*get_coalesce)(struct net_device *, + struct ethtool_coalesce *, + struct kernel_ethtool_coalesce *, + struct netlink_ext_ack *); + int (*set_coalesce)(struct net_device *, + struct ethtool_coalesce *, + struct kernel_ethtool_coalesce *, + struct netlink_ext_ack *); void (*get_ringparam)(struct net_device *, struct ethtool_ringparam *); int (*set_ringparam)(struct net_device *, Ref: https://github.com/torvalds/linux/commit/f3ccfda1931977b80267ba54070a1aeafa18f6ca From a quick look, it seems 2.6.1 is not compatible with kernel 5.15.
Should be fixed in 2.8.0