Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 834605 - net-misc/ena-driver-2.6.1 - /.../ena_ethtool.c: error: initialization of int ( )(struct net_device , struct ethtool_coalesce , str
Summary: net-misc/ena-driver-2.6.1 - /.../ena_ethtool.c: error: initialization of int ...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Andreas K. Hüttel
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-03-05 08:32 UTC by Toralf Förster
Modified: 2022-10-08 22:11 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
emerge-info.txt (emerge-info.txt,17.26 KB, text/plain)
2022-03-05 08:32 UTC, Toralf Förster
Details
emerge-history.txt.bz2 (emerge-history.txt.bz2,68.54 KB, application/x-bzip)
2022-03-05 08:32 UTC, Toralf Förster
Details
environment (environment,89.99 KB, text/plain)
2022-03-05 08:32 UTC, Toralf Förster
Details
etc.portage.tar.bz2 (etc.portage.tar.bz2,14.85 KB, application/x-bzip)
2022-03-05 08:32 UTC, Toralf Förster
Details
net-misc:ena-driver-2.6.1:20220305-011553.log (net-misc:ena-driver-2.6.1:20220305-011553.log,3.96 KB, text/plain)
2022-03-05 08:32 UTC, Toralf Förster
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Toralf Förster gentoo-dev 2022-03-05 08:32:16 UTC
  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"
Comment 1 Toralf Förster gentoo-dev 2022-03-05 08:32:17 UTC
Created attachment 766287 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2022-03-05 08:32:18 UTC
Created attachment 766288 [details]
emerge-history.txt.bz2
Comment 3 Toralf Förster gentoo-dev 2022-03-05 08:32:19 UTC
Created attachment 766289 [details]
environment
Comment 4 Toralf Förster gentoo-dev 2022-03-05 08:32:20 UTC
Created attachment 766290 [details]
etc.portage.tar.bz2
Comment 5 Toralf Förster gentoo-dev 2022-03-05 08:32:21 UTC
Created attachment 766291 [details]
net-misc:ena-driver-2.6.1:20220305-011553.log
Comment 6 Scott Tester 2022-03-10 07:15:29 UTC
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.
Comment 7 Andreas K. Hüttel archtester gentoo-dev 2022-10-08 22:11:35 UTC
Should be fixed in 2.8.0