hello to everyone, i installed the Proxmox Beta 8 on one of my test devices (an Intel Nuc 8) and wanted to build the kernel module for my USB-Lan Adapter (based on Realtek RTL8156 for 2.5GB LAN). This kernel module is required to use the adapter in full duplex mode.
When building the module under kernel 6.2.x, make throws the following error (although the Realtek website also states that it is only intended for kernel 5.17, https://www.realtek.com/en/componen...0-100-1000m-gigabit-ethernet-usb-3-0-software).
But maybe someone has an idea to solve this issue? An alternative would be to use the 5.x kernel under Proxmox, but the corresponding headers for the 5.15.x kernel are missing.
When building the module under kernel 6.2.x, make throws the following error (although the Realtek website also states that it is only intended for kernel 5.17, https://www.realtek.com/en/componen...0-100-1000m-gigabit-ethernet-usb-3-0-software).
But maybe someone has an idea to solve this issue? An alternative would be to use the 5.x kernel under Proxmox, but the corresponding headers for the 5.15.x kernel are missing.
Code:
make -C /lib/modules/6.2.16-1-pve/build M=/root/r8152-2.16.3 modules
make[1]: Entering directory '/usr/src/linux-headers-6.2.16-1-pve'
CC [M] /root/r8152-2.16.3/r8152.o
/root/r8152-2.16.3/r8152.c: In function ‘sg_en_store’:
/root/r8152-2.16.3/r8152.c:20462:9: error: implicit declaration of function ‘netif_set_gso_max_size’; did you mean ‘netif_set_tso_max_size’? [-Werror=implicit-function-declaration]
20462 | netif_set_gso_max_size(netdev, tso_size);
| ^~~~~~~~~~~~~~~~~~~~~~
| netif_set_tso_max_size
/root/r8152-2.16.3/r8152.c: In function ‘rtl8152_probe’:
/root/r8152-2.16.3/r8152.c:20704:17: error: too many arguments to function ‘netif_napi_add’
20704 | netif_napi_add(netdev, &tp->napi, r8152_poll, 256);
| ^~~~~~~~~~~~~~
In file included from /root/r8152-2.16.3/r8152.c:16:
./include/linux/netdevice.h:2588:1: note: declared here
2588 | netif_napi_add(struct net_device *dev, struct napi_struct *napi,
| ^~~~~~~~~~~~~~
/root/r8152-2.16.3/r8152.c:20706:17: error: too many arguments to function ‘netif_napi_add’
20706 | netif_napi_add(netdev, &tp->napi, r8152_poll, 64);
| ^~~~~~~~~~~~~~
./include/linux/netdevice.h:2588:1: note: declared here
2588 | netif_napi_add(struct net_device *dev, struct napi_struct *napi,
| ^~~~~~~~~~~~~~
cc1: some warnings being treated as errors
make[2]: *** [scripts/Makefile.build:260: /root/r8152-2.16.3/r8152.o] Error 1
make[1]: *** [Makefile:2026: /root/r8152-2.16.3] Error 2
make[1]: Leaving directory '/usr/src/linux-headers-6.2.16-1-pve'
make: *** [Makefile:24: modules] Error 2