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

error during make #30

Open
droidcruzer opened this issue Dec 10, 2020 · 1 comment
Open

error during make #30

droidcruzer opened this issue Dec 10, 2020 · 1 comment

Comments

@droidcruzer
Copy link

Fresh install of Raspbian buster like 08-20-2020. Uname -r yields: 5.4.51-v7+

While running make:

pi@raspberrypi:~/rtl8822bu $ make
make ARCH=armv7l CROSS_COMPILE= -C /lib/modules/5.4.51-v7+/build M=/home/pi/rtl8822bu modules
make[1]: Entering directory '/usr/src/linux-headers-5.4.51-v7+'
CC [M] /home/pi/rtl8822bu/core/rtw_cmd.o
In file included from /home/pi/rtl8822bu/include/drv_types.h:35,
from /home/pi/rtl8822bu/core/rtw_cmd.c:22:
/home/pi/rtl8822bu/include/wifi.h:1005: warning: "IEEE80211_MAX_AMPDU_BUF" redefined
#define IEEE80211_MAX_AMPDU_BUF 0x40

In file included from /home/pi/rtl8822bu/include/osdep_service_linux.h:84,
from /home/pi/rtl8822bu/include/osdep_service.h:41,
from /home/pi/rtl8822bu/include/drv_types.h:32,
from /home/pi/rtl8822bu/core/rtw_cmd.c:22:
./include/linux/ieee80211.h:1460: note: this is the location of the previous definition
#define IEEE80211_MAX_AMPDU_BUF 0x100

CC [M] /home/pi/rtl8822bu/core/rtw_security.o
In file included from /home/pi/rtl8822bu/include/drv_types.h:35,
from /home/pi/rtl8822bu/core/rtw_security.c:22:
/home/pi/rtl8822bu/include/wifi.h:1005: warning: "IEEE80211_MAX_AMPDU_BUF" redefined
#define IEEE80211_MAX_AMPDU_BUF 0x40

In file included from /home/pi/rtl8822bu/include/osdep_service_linux.h:84,
from /home/pi/rtl8822bu/include/osdep_service.h:41,
from /home/pi/rtl8822bu/include/drv_types.h:32,
from /home/pi/rtl8822bu/core/rtw_security.c:22:
./include/linux/ieee80211.h:1460: note: this is the location of the previous definition
#define IEEE80211_MAX_AMPDU_BUF 0x100

CC [M] /home/pi/rtl8822bu/core/rtw_debug.o
In file included from /home/pi/rtl8822bu/include/drv_types.h:35,
from /home/pi/rtl8822bu/core/rtw_debug.c:22:
/home/pi/rtl8822bu/include/wifi.h:1005: warning: "IEEE80211_MAX_AMPDU_BUF" redefined
#define IEEE80211_MAX_AMPDU_BUF 0x40

In file included from /home/pi/rtl8822bu/include/osdep_service_linux.h:84,
from /home/pi/rtl8822bu/include/osdep_service.h:41,
from /home/pi/rtl8822bu/include/drv_types.h:32,
from /home/pi/rtl8822bu/core/rtw_debug.c:22:
./include/linux/ieee80211.h:1460: note: this is the location of the previous definition
#define IEEE80211_MAX_AMPDU_BUF 0x100

CC [M] /home/pi/rtl8822bu/core/rtw_io.o
In file included from /home/pi/rtl8822bu/include/drv_types.h:35,
from /home/pi/rtl8822bu/core/rtw_io.c:52:
/home/pi/rtl8822bu/include/wifi.h:1005: warning: "IEEE80211_MAX_AMPDU_BUF" redefined
#define IEEE80211_MAX_AMPDU_BUF 0x40

In file included from /home/pi/rtl8822bu/include/osdep_service_linux.h:84,
from /home/pi/rtl8822bu/include/osdep_service.h:41,
from /home/pi/rtl8822bu/include/drv_types.h:32,
from /home/pi/rtl8822bu/core/rtw_io.c:52:
./include/linux/ieee80211.h:1460: note: this is the location of the previous definition
#define IEEE80211_MAX_AMPDU_BUF 0x100

CC [M] /home/pi/rtl8822bu/core/rtw_ioctl_query.o
In file included from /home/pi/rtl8822bu/include/drv_types.h:35,
from /home/pi/rtl8822bu/core/rtw_ioctl_query.c:22:
/home/pi/rtl8822bu/include/wifi.h:1005: warning: "IEEE80211_MAX_AMPDU_BUF" redefined
#define IEEE80211_MAX_AMPDU_BUF 0x40

In file included from /home/pi/rtl8822bu/include/osdep_service_linux.h:84,
from /home/pi/rtl8822bu/include/osdep_service.h:41,
from /home/pi/rtl8822bu/include/drv_types.h:32,
from /home/pi/rtl8822bu/core/rtw_ioctl_query.c:22:
./include/linux/ieee80211.h:1460: note: this is the location of the previous definition
#define IEEE80211_MAX_AMPDU_BUF 0x100

CC [M] /home/pi/rtl8822bu/core/rtw_ioctl_set.o
In file included from /home/pi/rtl8822bu/include/drv_types.h:35,
from /home/pi/rtl8822bu/core/rtw_ioctl_set.c:22:
/home/pi/rtl8822bu/include/wifi.h:1005: warning: "IEEE80211_MAX_AMPDU_BUF" redefined
#define IEEE80211_MAX_AMPDU_BUF 0x40

In file included from /home/pi/rtl8822bu/include/osdep_service_linux.h:84,
from /home/pi/rtl8822bu/include/osdep_service.h:41,
from /home/pi/rtl8822bu/include/drv_types.h:32,
from /home/pi/rtl8822bu/core/rtw_ioctl_set.c:22:
./include/linux/ieee80211.h:1460: note: this is the location of the previous definition
#define IEEE80211_MAX_AMPDU_BUF 0x100

CC [M] /home/pi/rtl8822bu/core/rtw_ieee80211.o
In file included from /home/pi/rtl8822bu/include/drv_types.h:35,
from /home/pi/rtl8822bu/core/rtw_ieee80211.c:25:
/home/pi/rtl8822bu/include/wifi.h:1005: warning: "IEEE80211_MAX_AMPDU_BUF" redefined
#define IEEE80211_MAX_AMPDU_BUF 0x40

In file included from /home/pi/rtl8822bu/include/osdep_service_linux.h:84,
from /home/pi/rtl8822bu/include/osdep_service.h:41,
from /home/pi/rtl8822bu/include/drv_types.h:32,
from /home/pi/rtl8822bu/core/rtw_ieee80211.c:25:
./include/linux/ieee80211.h:1460: note: this is the location of the previous definition
#define IEEE80211_MAX_AMPDU_BUF 0x100

CC [M] /home/pi/rtl8822bu/core/rtw_mlme.o
In file included from /home/pi/rtl8822bu/include/drv_types.h:35,
from /home/pi/rtl8822bu/include/../hal/phydm/phydm_types.h:177,
from /home/pi/rtl8822bu/include/../hal/phydm/phydm_precomp.h:24,
from /home/pi/rtl8822bu/include/hal_data.h:25,
from /home/pi/rtl8822bu/core/rtw_mlme.c:22:
/home/pi/rtl8822bu/include/wifi.h:1005: warning: "IEEE80211_MAX_AMPDU_BUF" redefined
#define IEEE80211_MAX_AMPDU_BUF 0x40

In file included from /home/pi/rtl8822bu/include/osdep_service_linux.h:84,
from /home/pi/rtl8822bu/include/osdep_service.h:41,
from /home/pi/rtl8822bu/include/drv_types.h:32,
from /home/pi/rtl8822bu/include/../hal/phydm/phydm_types.h:177,
from /home/pi/rtl8822bu/include/../hal/phydm/phydm_precomp.h:24,
from /home/pi/rtl8822bu/include/hal_data.h:25,
from /home/pi/rtl8822bu/core/rtw_mlme.c:22:
./include/linux/ieee80211.h:1460: note: this is the location of the previous definition
#define IEEE80211_MAX_AMPDU_BUF 0x100

CC [M] /home/pi/rtl8822bu/core/rtw_mlme_ext.o
In file included from /home/pi/rtl8822bu/include/drv_types.h:35,
from /home/pi/rtl8822bu/core/rtw_mlme_ext.c:22:
/home/pi/rtl8822bu/include/wifi.h:1005: warning: "IEEE80211_MAX_AMPDU_BUF" redefined
#define IEEE80211_MAX_AMPDU_BUF 0x40

In file included from /home/pi/rtl8822bu/include/osdep_service_linux.h:84,
from /home/pi/rtl8822bu/include/osdep_service.h:41,
from /home/pi/rtl8822bu/include/drv_types.h:32,
from /home/pi/rtl8822bu/core/rtw_mlme_ext.c:22:
./include/linux/ieee80211.h:1460: note: this is the location of the previous definition
#define IEEE80211_MAX_AMPDU_BUF 0x100

/home/pi/rtl8822bu/core/rtw_mlme_ext.c: In function 'mgt_dispatcher':
/home/pi/rtl8822bu/core/rtw_mlme_ext.c:1428:6: warning: this statement may fall through [-Wimplicit-fallthrough=]
if (check_fwstate(pmlmepriv, WIFI_AP_STATE) == _TRUE)
^
/home/pi/rtl8822bu/core/rtw_mlme_ext.c:1433:2: note: here
case WIFI_ASSOCREQ:
^~~~
CC [M] /home/pi/rtl8822bu/core/rtw_mi.o
In file included from /home/pi/rtl8822bu/include/drv_types.h:35,
from /home/pi/rtl8822bu/core/rtw_mi.c:22:
/home/pi/rtl8822bu/include/wifi.h:1005: warning: "IEEE80211_MAX_AMPDU_BUF" redefined
#define IEEE80211_MAX_AMPDU_BUF 0x40

In file included from /home/pi/rtl8822bu/include/osdep_service_linux.h:84,
from /home/pi/rtl8822bu/include/osdep_service.h:41,
from /home/pi/rtl8822bu/include/drv_types.h:32,
from /home/pi/rtl8822bu/core/rtw_mi.c:22:
./include/linux/ieee80211.h:1460: note: this is the location of the previous definition
#define IEEE80211_MAX_AMPDU_BUF 0x100

CC [M] /home/pi/rtl8822bu/core/rtw_wlan_util.o
In file included from /home/pi/rtl8822bu/include/drv_types.h:35,
from /home/pi/rtl8822bu/core/rtw_wlan_util.c:22:
/home/pi/rtl8822bu/include/wifi.h:1005: warning: "IEEE80211_MAX_AMPDU_BUF" redefined
#define IEEE80211_MAX_AMPDU_BUF 0x40

In file included from /home/pi/rtl8822bu/include/osdep_service_linux.h:84,
from /home/pi/rtl8822bu/include/osdep_service.h:41,
from /home/pi/rtl8822bu/include/drv_types.h:32,
from /home/pi/rtl8822bu/core/rtw_wlan_util.c:22:
./include/linux/ieee80211.h:1460: note: this is the location of the previous definition
#define IEEE80211_MAX_AMPDU_BUF 0x100

CC [M] /home/pi/rtl8822bu/core/rtw_vht.o
In file included from /home/pi/rtl8822bu/include/drv_types.h:35,
from /home/pi/rtl8822bu/core/rtw_vht.c:22:
/home/pi/rtl8822bu/include/wifi.h:1005: warning: "IEEE80211_MAX_AMPDU_BUF" redefined
#define IEEE80211_MAX_AMPDU_BUF 0x40

In file included from /home/pi/rtl8822bu/include/osdep_service_linux.h:84,
from /home/pi/rtl8822bu/include/osdep_service.h:41,
from /home/pi/rtl8822bu/include/drv_types.h:32,
from /home/pi/rtl8822bu/core/rtw_vht.c:22:
./include/linux/ieee80211.h:1460: note: this is the location of the previous definition
#define IEEE80211_MAX_AMPDU_BUF 0x100

CC [M] /home/pi/rtl8822bu/core/rtw_pwrctrl.o
In file included from /home/pi/rtl8822bu/include/drv_types.h:35,
from /home/pi/rtl8822bu/core/rtw_pwrctrl.c:22:
/home/pi/rtl8822bu/include/wifi.h:1005: warning: "IEEE80211_MAX_AMPDU_BUF" redefined
#define IEEE80211_MAX_AMPDU_BUF 0x40

In file included from /home/pi/rtl8822bu/include/osdep_service_linux.h:84,
from /home/pi/rtl8822bu/include/osdep_service.h:41,
from /home/pi/rtl8822bu/include/drv_types.h:32,
from /home/pi/rtl8822bu/core/rtw_pwrctrl.c:22:
./include/linux/ieee80211.h:1460: note: this is the location of the previous definition
#define IEEE80211_MAX_AMPDU_BUF 0x100

CC [M] /home/pi/rtl8822bu/core/rtw_rf.o
In file included from /home/pi/rtl8822bu/include/drv_types.h:35,
from /home/pi/rtl8822bu/core/rtw_rf.c:22:
/home/pi/rtl8822bu/include/wifi.h:1005: warning: "IEEE80211_MAX_AMPDU_BUF" redefined
#define IEEE80211_MAX_AMPDU_BUF 0x40

In file included from /home/pi/rtl8822bu/include/osdep_service_linux.h:84,
from /home/pi/rtl8822bu/include/osdep_service.h:41,
from /home/pi/rtl8822bu/include/drv_types.h:32,
from /home/pi/rtl8822bu/core/rtw_rf.c:22:
./include/linux/ieee80211.h:1460: note: this is the location of the previous definition
#define IEEE80211_MAX_AMPDU_BUF 0x100

CC [M] /home/pi/rtl8822bu/core/rtw_recv.o
In file included from /home/pi/rtl8822bu/include/drv_types.h:35,
from /home/pi/rtl8822bu/core/rtw_recv.c:22:
/home/pi/rtl8822bu/include/wifi.h:1005: warning: "IEEE80211_MAX_AMPDU_BUF" redefined
#define IEEE80211_MAX_AMPDU_BUF 0x40

In file included from /home/pi/rtl8822bu/include/osdep_service_linux.h:84,
from /home/pi/rtl8822bu/include/osdep_service.h:41,
from /home/pi/rtl8822bu/include/drv_types.h:32,
from /home/pi/rtl8822bu/core/rtw_recv.c:22:
./include/linux/ieee80211.h:1460: note: this is the location of the previous definition
#define IEEE80211_MAX_AMPDU_BUF 0x100

CC [M] /home/pi/rtl8822bu/core/rtw_sta_mgt.o
In file included from /home/pi/rtl8822bu/include/drv_types.h:35,
from /home/pi/rtl8822bu/core/rtw_sta_mgt.c:22:
/home/pi/rtl8822bu/include/wifi.h:1005: warning: "IEEE80211_MAX_AMPDU_BUF" redefined
#define IEEE80211_MAX_AMPDU_BUF 0x40

In file included from /home/pi/rtl8822bu/include/osdep_service_linux.h:84,
from /home/pi/rtl8822bu/include/osdep_service.h:41,
from /home/pi/rtl8822bu/include/drv_types.h:32,
from /home/pi/rtl8822bu/core/rtw_sta_mgt.c:22:
./include/linux/ieee80211.h:1460: note: this is the location of the previous definition
#define IEEE80211_MAX_AMPDU_BUF 0x100

CC [M] /home/pi/rtl8822bu/core/rtw_ap.o
In file included from /home/pi/rtl8822bu/include/drv_types.h:35,
from /home/pi/rtl8822bu/core/rtw_ap.c:22:
/home/pi/rtl8822bu/include/wifi.h:1005: warning: "IEEE80211_MAX_AMPDU_BUF" redefined
#define IEEE80211_MAX_AMPDU_BUF 0x40

In file included from /home/pi/rtl8822bu/include/osdep_service_linux.h:84,
from /home/pi/rtl8822bu/include/osdep_service.h:41,
from /home/pi/rtl8822bu/include/drv_types.h:32,
from /home/pi/rtl8822bu/core/rtw_ap.c:22:
./include/linux/ieee80211.h:1460: note: this is the location of the previous definition
#define IEEE80211_MAX_AMPDU_BUF 0x100

CC [M] /home/pi/rtl8822bu/core/rtw_xmit.o
In file included from /home/pi/rtl8822bu/include/drv_types.h:35,
from /home/pi/rtl8822bu/core/rtw_xmit.c:22:
/home/pi/rtl8822bu/include/wifi.h:1005: warning: "IEEE80211_MAX_AMPDU_BUF" redefined
#define IEEE80211_MAX_AMPDU_BUF 0x40

In file included from /home/pi/rtl8822bu/include/osdep_service_linux.h:84,
from /home/pi/rtl8822bu/include/osdep_service.h:41,
from /home/pi/rtl8822bu/include/drv_types.h:32,
from /home/pi/rtl8822bu/core/rtw_xmit.c:22:
./include/linux/ieee80211.h:1460: note: this is the location of the previous definition
#define IEEE80211_MAX_AMPDU_BUF 0x100

CC [M] /home/pi/rtl8822bu/core/rtw_p2p.o
In file included from /home/pi/rtl8822bu/include/drv_types.h:35,
from /home/pi/rtl8822bu/core/rtw_p2p.c:22:
/home/pi/rtl8822bu/include/wifi.h:1005: warning: "IEEE80211_MAX_AMPDU_BUF" redefined
#define IEEE80211_MAX_AMPDU_BUF 0x40

In file included from /home/pi/rtl8822bu/include/osdep_service_linux.h:84,
from /home/pi/rtl8822bu/include/osdep_service.h:41,
from /home/pi/rtl8822bu/include/drv_types.h:32,
from /home/pi/rtl8822bu/core/rtw_p2p.c:22:
./include/linux/ieee80211.h:1460: note: this is the location of the previous definition
#define IEEE80211_MAX_AMPDU_BUF 0x100

CC [M] /home/pi/rtl8822bu/core/rtw_tdls.o
In file included from /home/pi/rtl8822bu/include/drv_types.h:35,
from /home/pi/rtl8822bu/core/rtw_tdls.c:22:
/home/pi/rtl8822bu/include/wifi.h:1005: warning: "IEEE80211_MAX_AMPDU_BUF" redefined
#define IEEE80211_MAX_AMPDU_BUF 0x40

In file included from /home/pi/rtl8822bu/include/osdep_service_linux.h:84,
from /home/pi/rtl8822bu/include/osdep_service.h:41,
from /home/pi/rtl8822bu/include/drv_types.h:32,
from /home/pi/rtl8822bu/core/rtw_tdls.c:22:
./include/linux/ieee80211.h:1460: note: this is the location of the previous definition
#define IEEE80211_MAX_AMPDU_BUF 0x100

CC [M] /home/pi/rtl8822bu/core/rtw_br_ext.o
In file included from /home/pi/rtl8822bu/include/drv_types.h:35,
from /home/pi/rtl8822bu/core/rtw_br_ext.c:33:
/home/pi/rtl8822bu/include/wifi.h:1005: warning: "IEEE80211_MAX_AMPDU_BUF" redefined
#define IEEE80211_MAX_AMPDU_BUF 0x40

In file included from /home/pi/rtl8822bu/include/osdep_service_linux.h:84,
from /home/pi/rtl8822bu/include/osdep_service.h:41,
from /home/pi/rtl8822bu/include/drv_types.h:32,
from /home/pi/rtl8822bu/core/rtw_br_ext.c:33:
./include/linux/ieee80211.h:1460: note: this is the location of the previous definition
#define IEEE80211_MAX_AMPDU_BUF 0x100

CC [M] /home/pi/rtl8822bu/core/rtw_iol.o
In file included from /home/pi/rtl8822bu/include/drv_types.h:35,
from /home/pi/rtl8822bu/core/rtw_iol.c:21:
/home/pi/rtl8822bu/include/wifi.h:1005: warning: "IEEE80211_MAX_AMPDU_BUF" redefined
#define IEEE80211_MAX_AMPDU_BUF 0x40

In file included from /home/pi/rtl8822bu/include/osdep_service_linux.h:84,
from /home/pi/rtl8822bu/include/osdep_service.h:41,
from /home/pi/rtl8822bu/include/drv_types.h:32,
from /home/pi/rtl8822bu/core/rtw_iol.c:21:
./include/linux/ieee80211.h:1460: note: this is the location of the previous definition
#define IEEE80211_MAX_AMPDU_BUF 0x100

CC [M] /home/pi/rtl8822bu/core/rtw_sreset.o
In file included from /home/pi/rtl8822bu/include/drv_types.h:35,
from /home/pi/rtl8822bu/core/rtw_sreset.c:21:
/home/pi/rtl8822bu/include/wifi.h:1005: warning: "IEEE80211_MAX_AMPDU_BUF" redefined
#define IEEE80211_MAX_AMPDU_BUF 0x40

In file included from /home/pi/rtl8822bu/include/osdep_service_linux.h:84,
from /home/pi/rtl8822bu/include/osdep_service.h:41,
from /home/pi/rtl8822bu/include/drv_types.h:32,
from /home/pi/rtl8822bu/core/rtw_sreset.c:21:
./include/linux/ieee80211.h:1460: note: this is the location of the previous definition
#define IEEE80211_MAX_AMPDU_BUF 0x100

CC [M] /home/pi/rtl8822bu/core/rtw_btcoex.o
In file included from /home/pi/rtl8822bu/include/drv_types.h:35,
from /home/pi/rtl8822bu/core/rtw_btcoex.c:22:
/home/pi/rtl8822bu/include/wifi.h:1005: warning: "IEEE80211_MAX_AMPDU_BUF" redefined
#define IEEE80211_MAX_AMPDU_BUF 0x40

In file included from /home/pi/rtl8822bu/include/osdep_service_linux.h:84,
from /home/pi/rtl8822bu/include/osdep_service.h:41,
from /home/pi/rtl8822bu/include/drv_types.h:32,
from /home/pi/rtl8822bu/core/rtw_btcoex.c:22:
./include/linux/ieee80211.h:1460: note: this is the location of the previous definition
#define IEEE80211_MAX_AMPDU_BUF 0x100

CC [M] /home/pi/rtl8822bu/core/rtw_beamforming.o
In file included from /home/pi/rtl8822bu/include/drv_types.h:35,
from /home/pi/rtl8822bu/core/rtw_beamforming.c:22:
/home/pi/rtl8822bu/include/wifi.h:1005: warning: "IEEE80211_MAX_AMPDU_BUF" redefined
#define IEEE80211_MAX_AMPDU_BUF 0x40

In file included from /home/pi/rtl8822bu/include/osdep_service_linux.h:84,
from /home/pi/rtl8822bu/include/osdep_service.h:41,
from /home/pi/rtl8822bu/include/drv_types.h:32,
from /home/pi/rtl8822bu/core/rtw_beamforming.c:22:
./include/linux/ieee80211.h:1460: note: this is the location of the previous definition
#define IEEE80211_MAX_AMPDU_BUF 0x100

CC [M] /home/pi/rtl8822bu/core/rtw_odm.o
In file included from /home/pi/rtl8822bu/include/drv_types.h:35,
from /home/pi/rtl8822bu/include/rtw_odm.h:23,
from /home/pi/rtl8822bu/core/rtw_odm.c:21:
/home/pi/rtl8822bu/include/wifi.h:1005: warning: "IEEE80211_MAX_AMPDU_BUF" redefined
#define IEEE80211_MAX_AMPDU_BUF 0x40

In file included from /home/pi/rtl8822bu/include/osdep_service_linux.h:84,
from /home/pi/rtl8822bu/include/osdep_service.h:41,
from /home/pi/rtl8822bu/include/drv_types.h:32,
from /home/pi/rtl8822bu/include/rtw_odm.h:23,
from /home/pi/rtl8822bu/core/rtw_odm.c:21:
./include/linux/ieee80211.h:1460: note: this is the location of the previous definition
#define IEEE80211_MAX_AMPDU_BUF 0x100

CC [M] /home/pi/rtl8822bu/core/efuse/rtw_efuse.o
In file included from /home/pi/rtl8822bu/include/drv_types.h:35,
from /home/pi/rtl8822bu/core/efuse/rtw_efuse.c:22:
/home/pi/rtl8822bu/include/wifi.h:1005: warning: "IEEE80211_MAX_AMPDU_BUF" redefined
#define IEEE80211_MAX_AMPDU_BUF 0x40

In file included from /home/pi/rtl8822bu/include/osdep_service_linux.h:84,
from /home/pi/rtl8822bu/include/osdep_service.h:41,
from /home/pi/rtl8822bu/include/drv_types.h:32,
from /home/pi/rtl8822bu/core/efuse/rtw_efuse.c:22:
./include/linux/ieee80211.h:1460: note: this is the location of the previous definition
#define IEEE80211_MAX_AMPDU_BUF 0x100

CC [M] /home/pi/rtl8822bu/os_dep/osdep_service.o
In file included from /home/pi/rtl8822bu/include/drv_types.h:35,
from /home/pi/rtl8822bu/os_dep/osdep_service.c:24:
/home/pi/rtl8822bu/include/wifi.h:1005: warning: "IEEE80211_MAX_AMPDU_BUF" redefined
#define IEEE80211_MAX_AMPDU_BUF 0x40

In file included from /home/pi/rtl8822bu/include/osdep_service_linux.h:84,
from /home/pi/rtl8822bu/include/osdep_service.h:41,
from /home/pi/rtl8822bu/include/drv_types.h:32,
from /home/pi/rtl8822bu/os_dep/osdep_service.c:24:
./include/linux/ieee80211.h:1460: note: this is the location of the previous definition
#define IEEE80211_MAX_AMPDU_BUF 0x100

/home/pi/rtl8822bu/os_dep/osdep_service.c: In function 'isFileReadable':
/home/pi/rtl8822bu/os_dep/osdep_service.c:2022:10: error: implicit declaration of function 'get_ds'; did you mean 'get_da'? [-Werror=implicit-function-declaration]
set_fs(get_ds());
^~~~~~
get_da
cc1: some warnings being treated as errors
make[2]: *** [scripts/Makefile.build:266: /home/pi/rtl8822bu/os_dep/osdep_service.o] Error 1
make[1]: *** [Makefile:1709: /home/pi/rtl8822bu] Error 2
make[1]: Leaving directory '/usr/src/linux-headers-5.4.51-v7+'
make: *** [Makefile:1318: modules] Error 2

@inklife
Copy link

inklife commented Dec 23, 2020

It can be sloved by changing get_ds() to KERNEL_DS.

https://github.com/whitebatman2/rtl8821CU/pull/22/files

ulli-kroll/rtl8188fu#7

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

2 participants