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

warning: cast between incompatible function types #253

Closed
morrownr opened this issue Nov 17, 2024 · 3 comments
Closed

warning: cast between incompatible function types #253

morrownr opened this issue Nov 17, 2024 · 3 comments

Comments

@morrownr
Copy link
Collaborator

Kernel: 6.6 Debian
gcc: 12.2

Just a warning, not an error:

...
CC [M] /home/morrow/src/rtw88/usb.o
/home/morrow/src/rtw88/usb.c: In function ‘rtw_usb_init_rx’:
/home/morrow/src/rtw88/usb.c:943:22: warning: cast between incompatible function types from ‘void ()(struct rtw_usb )’ to ‘void ()(long unsigned int)’ [-Wcast-function-type]
943 | (void(
)(unsigned long))rtw_usb_rx_handler,

@LuisMitaHL
Copy link

Same warning on OpenWrt 24.10-rc2 with kernel 6.6.63, but here is treated as a error

  CC [M]  /media/Standard/openwrt/openwrt-sdk-24.10.0-rc2-mediatek-filogic_gcc-13.3.0_musl.Linux-x86_64/build_dir/target-aarch64_cortex-a53_musl/linux-mediatek_filogic/rtw88-usb-2024.11.27~611874c6/usb.o
/media/Standard/openwrt/openwrt-sdk-24.10.0-rc2-mediatek-filogic_gcc-13.3.0_musl.Linux-x86_64/build_dir/target-aarch64_cortex-a53_musl/linux-mediatek_filogic/rtw88-usb-2024.11.27~611874c6/usb.c: In function 'rtw_usb_init_rx':
/media/Standard/openwrt/openwrt-sdk-24.10.0-rc2-mediatek-filogic_gcc-13.3.0_musl.Linux-x86_64/build_dir/target-aarch64_cortex-a53_musl/linux-mediatek_filogic/rtw88-usb-2024.11.27~611874c6/usb.c:943:22: error: cast between incompatible function types from 'void (*)(struct rtw_usb *)' to 'void (*)(long unsigned int)' [-Werror=cast-function-type]
  943 |                      (void(*)(unsigned long))rtw_usb_rx_handler,
      |                      ^
cc1: all warnings being treated as errors
make[5]: *** [scripts/Makefile.build:243: /media/Standard/openwrt/openwrt-sdk-24.10.0-rc2-mediatek-filogic_gcc-13.3.0_musl.Linux-x86_64/build_dir/target-aarch64_cortex-a53_musl/linux-mediatek_filogic/rtw88-usb-2024.11.27~611874c6/usb.o] Error 1
make[4]: *** [/media/Standard/openwrt/openwrt-sdk-24.10.0-rc2-mediatek-filogic_gcc-13.3.0_musl.Linux-x86_64/build_dir/target-aarch64_cortex-a53_musl/linux-mediatek_filogic/linux-6.6.63/Makefile:1921: /media/Standard/openwrt/openwrt-sdk-24.10.0-rc2-mediatek-filogic_gcc-13.3.0_musl.Linux-x86_64/build_dir/target-aarch64_cortex-a53_musl/linux-mediatek_filogic/rtw88-usb-2024.11.27~611874c6] Error 2
make[3]: *** [Makefile:234: __sub-make] Error 2

@dubhater
Copy link
Collaborator

Does it work now?

@morrownr
Copy link
Collaborator Author

@dubhater

It works now. Thanks.

I see that the firmware for the rtl8814au chip is now in the repo. I guess I need to get my adapter out and dust it off.

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

3 participants