Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 933359 - net-misc/r8125-9.013.02-r1 - [ncurses-6.5] /.../r8125_n.c: error: initialization of int ( )(struct net_device , struct ethtool_keee ) from incompatible pointer type
Summary: net-misc/r8125-9.013.02-r1 - [ncurses-6.5] /.../r8125_n.c: error: initializat...
Status: CONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Karlson2k
URL:
Whiteboard:
Keywords: PullRequest
Depends on:
Blocks:
 
Reported: 2024-06-01 09:49 UTC by Toralf Förster
Modified: 2024-06-04 14:37 UTC (History)
2 users (show)

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


Attachments
emerge-info.txt (emerge-info.txt,20.00 KB, text/plain)
2024-06-01 09:49 UTC, Toralf Förster
Details
emerge-history.txt.xz (emerge-history.txt.xz,68.34 KB, application/x-xz)
2024-06-01 09:49 UTC, Toralf Förster
Details
environment (environment,111.82 KB, text/plain)
2024-06-01 09:49 UTC, Toralf Förster
Details
etc.clang.tar.xz (etc.clang.tar.xz,1.19 KB, application/x-xz)
2024-06-01 09:49 UTC, Toralf Förster
Details
etc.portage.tar.xz (etc.portage.tar.xz,32.79 KB, application/x-xz)
2024-06-01 09:49 UTC, Toralf Förster
Details
net-misc:r8125-9.013.02-r1:20240601-071845.log (net-misc:r8125-9.013.02-r1:20240601-071845.log,20.06 KB, text/plain)
2024-06-01 09:49 UTC, Toralf Förster
Details
qlist-info.txt.xz (qlist-info.txt.xz,78.68 KB, application/x-xz)
2024-06-01 09:49 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 2024-06-01 09:49:03 UTC
too long lines were shrinked:

# CC [M]  /var/tmp/portage/net-misc/r8125-9.013.02-r1/work/r8125-9.013.02/src/rtltool.o
  /usr/bin/x86_64-pc-linux-gnu-gcc-14 -Wp,-MMD,/var/tmp/portage/net-misc/r8125-9.013.02-r1/work/r8125-9.013.02/src/.rtltool.o.d -nostdinc -I./arch/x86/include -I./arch/x86/include/generated  -I./include -I./arch/x86/include/uapi -I./arch/x86/include/generated/uapi -I./include/uapi -I./include/genera
# CC [M]  /var/tmp/portage/net-misc/r8125-9.013.02-r1/work/r8125-9.013.02/src/r8125_ptp.o
  /usr/bin/x86_64-pc-linux-gnu-gcc-14 -Wp,-MMD,/var/tmp/portage/net-misc/r8125-9.013.02-r1/work/r8125-9.013.02/src/.r8125_ptp.o.d -nostdinc -I./arch/x86/include -I./arch/x86/include/generated  -I./include -I./arch/x86/include/uapi -I./arch/x86/include/generated/uapi -I./include/uapi -I./include/gene
# CC [M]  /var/tmp/portage/net-misc/r8125-9.013.02-r1/work/r8125-9.013.02/src/r8125_rss.o
  /usr/bin/x86_64-pc-linux-gnu-gcc-14 -Wp,-MMD,/var/tmp/portage/net-misc/r8125-9.013.02-r1/work/r8125-9.013.02/src/.r8125_rss.o.d -nostdinc -I./arch/x86/include -I./arch/x86/include/generated  -I./include -I./arch/x86/include/uapi -I./arch/x86/include/generated/uapi -I./include/uapi -I./include/gene
/var/tmp/portage/net-misc/r8125-9.013.02-r1/work/r8125-9.013.02/src/r8125_n.c:7682:20: error: initialization of int (*)(struct net_device *, struct ethtool_keee *) from incompatible pointer type int (*)(struct net_device *, struct ethtool_eee *) [-Wincompatible-pointer-types]
 7682 |         .get_eee = rtl_ethtool_get_eee,
      |                    ^~~~~~~~~~~~~~~~~~~

  -------------------------------------------------------------------

  This is an unstable amd64 chroot image at a tinderbox (==build bot)
  name: 23.0_desktop_plasma-20240525-111503

  UNMASKED:
  >=sys-libs/ncurses-6.5
    Issues involving opaque types / incomplete typedefs should block bug 930805

  The attached etc.portage.tar.xz has all details.
  -------------------------------------------------------------------

gcc-config -l:
 [1] x86_64-pc-linux-gnu-14 *
clang/llvm (if any):
clang version 18.1.6
Target: x86_64-pc-linux-gnu
Thread model: posix
InstalledDir: /usr/lib/llvm/18/bin
Configuration file: /etc/clang/x86_64-pc-linux-gnu-clang.cfg
/usr/lib/llvm/18
18.1.6
Python 3.11.9
Available Ruby profiles:
  [1]   ruby31 (with Rubygems)
  [2]   ruby32 (with Rubygems)
  [3]   ruby33 (with Rubygems) *
Available Rust versions:
  [1]   rust-bin-1.78.0 *
The following VMs are available for generation-2:
1)	Eclipse Temurin JDK 11.0.23_p9 [openjdk-bin-11]
2)	Eclipse Temurin JDK 17.0.11_p9 [openjdk-bin-17]
*)	Eclipse Temurin JDK 21.0.3_p9 [openjdk-bin-21]
4)	Eclipse Temurin JDK 8.412_p08 [openjdk-bin-8]
Available Java Virtual Machines:
  [1]   openjdk-bin-8 
  [2]   openjdk-bin-11 
  [3]   openjdk-bin-17 
  [4]   openjdk-bin-21  system-vm

The Glorious Glasgow Haskell Compilation System, version 9.2.8
php cli (if any):
go version go1.22.3 linux/amd64

  HEAD of ::gentoo
commit de8833573430fdd2d60d9e404c7f85c2b84ffd33
Author: Repository mirror & CI <repomirrorci@gentoo.org>
Date:   Sat Jun 1 06:53:20 2024 +0000

    2024-06-01 06:53:19 UTC

emerge -qpvO net-misc/r8125
[ebuild  N    ] net-misc/r8125-9.013.02-r1  USE="ptp rss strip -dist-kernel -modules-compress -modules-sign -multi-tx-q -use-firmware"
Comment 1 Toralf Förster gentoo-dev 2024-06-01 09:49:04 UTC
Created attachment 894851 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2024-06-01 09:49:05 UTC
Created attachment 894852 [details]
emerge-history.txt.xz
Comment 3 Toralf Förster gentoo-dev 2024-06-01 09:49:07 UTC
Created attachment 894853 [details]
environment
Comment 4 Toralf Förster gentoo-dev 2024-06-01 09:49:07 UTC
Created attachment 894854 [details]
etc.clang.tar.xz
Comment 5 Toralf Förster gentoo-dev 2024-06-01 09:49:08 UTC
Created attachment 894855 [details]
etc.portage.tar.xz
Comment 6 Toralf Förster gentoo-dev 2024-06-01 09:49:09 UTC
Created attachment 894856 [details]
net-misc:r8125-9.013.02-r1:20240601-071845.log
Comment 7 Toralf Förster gentoo-dev 2024-06-01 09:49:10 UTC
Created attachment 894857 [details]
qlist-info.txt.xz
Comment 8 Karlson2k 2024-06-01 10:18:57 UTC
This is a correct error.
Kernel 6.9 changed format of the structures (one format for the kernel, separate format for userspace).
The code need to be adapted accordingly, simple pointer case would be wrong.

See https://lore.kernel.org/all/7d82de21-9bde-4f66-99ce-f03ff994ef34@gmail.com/
Comment 9 Karlson2k 2024-06-04 14:21:41 UTC
Probably we "c99-porting" blocking should be removed as this problem is not C99, but the driver compatibility with the kernel.
In other words, without the warning/error, this driver would have run-time failures on kernels after 6.9.