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

support for linux 4.20 ? #23

Open
1over137 opened this issue Jan 28, 2019 · 3 comments
Open

support for linux 4.20 ? #23

1over137 opened this issue Jan 28, 2019 · 3 comments

Comments

@1over137
Copy link

I am on linux 4.20(arch) and it fails to compile.

make ARCH=x86_64 CROSS_COMPILE= -C /lib/modules/4.20.5-arch1-1-ARCH/build M=/home/zandimna/Downloads/rtl8822bu modules
make[1]: Entering directory '/usr/lib/modules/4.20.5-arch1-1-ARCH/build'
  CC [M]  /home/zandimna/Downloads/rtl8822bu/os_dep/linux/os_intfs.o
In file included from /home/zandimna/Downloads/rtl8822bu/include/drv_types.h:35,
                 from /home/zandimna/Downloads/rtl8822bu/os_dep/linux/os_intfs.c:22:
/home/zandimna/Downloads/rtl8822bu/include/wifi.h:1005: warning: "IEEE80211_MAX_AMPDU_BUF" redefined
 #define IEEE80211_MAX_AMPDU_BUF 0x40
 
In file included from /home/zandimna/Downloads/rtl8822bu/include/osdep_service_linux.h:84,
                 from /home/zandimna/Downloads/rtl8822bu/include/osdep_service.h:41,
                 from /home/zandimna/Downloads/rtl8822bu/include/drv_types.h:32,
                 from /home/zandimna/Downloads/rtl8822bu/os_dep/linux/os_intfs.c:22:
./include/linux/ieee80211.h:1442: note: this is the location of the previous definition
 #define IEEE80211_MAX_AMPDU_BUF  0x100
 
/home/zandimna/Downloads/rtl8822bu/os_dep/linux/os_intfs.c:1170:22: error: initialization of ‘u16 (*)(struct net_device *, struct sk_buff *, struct net_device *, u16 (*)(struct net_device *, struct sk_buff *, struct net_device *))’ {aka ‘short unsigned int (*)(struct net_device *, struct sk_buff *, struct net_device *, short unsigned int (*)(struct net_device *, struct sk_buff *, struct net_device *))’} from incompatible pointer type ‘u16 (*)(struct net_device *, struct sk_buff *, void *, u16 (*)(struct net_device *, struct sk_buff *, struct net_device *))’ {aka ‘short unsigned int (*)(struct net_device *, struct sk_buff *, void *, short unsigned int (*)(struct net_device *, struct sk_buff *, struct net_device *))’} [-Werror=incompatible-pointer-types]
  .ndo_select_queue = rtw_select_queue,
                      ^~~~~~~~~~~~~~~~
/home/zandimna/Downloads/rtl8822bu/os_dep/linux/os_intfs.c:1170:22: note: (near initialization for ‘rtw_netdev_ops.ndo_select_queue’)
cc1: some warnings being treated as errors
make[2]: *** [scripts/Makefile.build:292: /home/zandimna/Downloads/rtl8822bu/os_dep/linux/os_intfs.o] Error 1
make[1]: *** [Makefile:1562: _module_/home/zandimna/Downloads/rtl8822bu] Error 2
make[1]: Leaving directory '/usr/lib/modules/4.20.5-arch1-1-ARCH/build'
make: *** [Makefile:1318: modules] Error 2

Did i do anything wrong? Thanks in advance.

@FomalhautWeisszwerg
Copy link
Owner

I appreciate your report. I've planned to support for Linux-4.20.

@1over137
Copy link
Author

It's been some time, any progress so far? Since 5.0 is out already too, you may as well try to support it as well (there may or may not be a need to do so though)

@1over137 1over137 reopened this Mar 10, 2019
@MatthewMeredith
Copy link

Same error here, running 5.0.7

Any chance of this getting updated?

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