This is my attempt at getting around the warning message, but clearly, more work will need to be done to update the driver for post-5.17.
With just the following part of the patch the driver builds and runs fine on kernel 5.17-rc5. diff -Npaur a/src/wl/sys/wl_linux.c b/src/wl/sys/wl_linux.c --- a/src/wl/sys/wl_linux.c 2015-09-18 18:47:30.000000000 -0400 +++ b/src/wl/sys/wl_linux.c 2022-02-22 13:49:55.219274100 -0500 @@ -73,6 +74,10 @@ #error "No support for Kernel Rev <= 2.4.5, As the older kernel revs doesn't support Tasklets" #endif +#if (LINUX_VERSION_CODE >= KERNEL_VERSION(5, 17, 0)) +#define PDE_DATA pde_data +#endif + #include <wlc_pub.h> #include <wl_dbg.h> #include <wlc_ethereal.h> ** Patch removed: "Updated patch which allows compile but still causes a warning" https://bugs.launchpad.net/ubuntu/+source/bcmwl/+bug/1961801/+attachment/5562822/+files/0030-add-support-for-Linux-5.17.patch ** Patch added: "0030-add-support-for-Linux-5.17.patch" https://bugs.launchpad.net/ubuntu/+source/bcmwl/+bug/1961801/+attachment/5562847/+files/0030-add-support-for-Linux-5.17.patch ** Summary changed: - bcmwl does not build with Kernel 5.17 + bcmwl builds with Kernel 5.17 w/ one small patch -- You received this bug notification because you are a member of Kernel Packages, which is subscribed to bcmwl in Ubuntu. https://bugs.launchpad.net/bugs/1961801 Title: bcmwl builds with Kernel 5.17 w/ one small patch Status in bcmwl package in Ubuntu: New Bug description: At the very minimum, 5.17 replaces PDE_DATA with pde_data as per https://lore.kernel.org/all/20211124081956.87711-2-songmuc...@bytedance.com/T/#u The attached patch addresses that issue, but the module still doesn't work... ProblemType: Bug DistroRelease: Ubuntu 22.04 Package: bcmwl-kernel-source 6.30.223.271+bdcom-0ubuntu8 Uname: Linux 5.16.10-051610-generic x86_64 NonfreeKernelModules: wl zfs zunicode zcommon znvpair zavl icp ApportVersion: 2.20.11-0ubuntu77 Architecture: amd64 CasperMD5CheckResult: unknown CurrentDesktop: ubuntu:GNOME Date: Tue Feb 22 09:24:44 2022 ProcEnviron: TERM=xterm-256color PATH=(custom, no user) XDG_RUNTIME_DIR=<set> LANG=en_US.UTF-8 SHELL=/bin/bash SourcePackage: bcmwl UpgradeStatus: No upgrade log present (probably fresh install) To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/bcmwl/+bug/1961801/+subscriptions -- Mailing list: https://launchpad.net/~kernel-packages Post to : kernel-packages@lists.launchpad.net Unsubscribe : https://launchpad.net/~kernel-packages More help : https://help.launchpad.net/ListHelp