Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix for ubuntu 24.10 and kernel 6.11.0-8 #259

Open
mvillion opened this issue Oct 13, 2024 · 0 comments
Open

Fix for ubuntu 24.10 and kernel 6.11.0-8 #259

mvillion opened this issue Oct 13, 2024 · 0 comments

Comments

@mvillion
Copy link

Hello,

I had to add a "(void *)" to silence a warning that is breaking the build with gcc-14:

diff --git a/os_dep/linux/rtw_android.c b/os_dep/linux/rtw_android.c
index 71090dc..4d70f07 100644
--- a/os_dep/linux/rtw_android.c
+++ b/os_dep/linux/rtw_android.c
@@ -355,7 +355,7 @@ int rtw_android_priv_cmd(struct net_device *net, struct ifreq *ifr, int cmd)
#if (LINUX_VERSION_CODE < KERNEL_VERSION(5,0,0))
if (!access_ok(VERIFY_READ, priv_cmd.buf, priv_cmd.total_len)) {
#else

  • if (!access_ok(priv_cmd.buf, priv_cmd.total_len)) {
  • if (!access_ok((void *)priv_cmd.buf, priv_cmd.total_len)) {
    #endif
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant