mfruba / kernel

152 stars 103 forks source link

Build fix for GCC 5.4.0 with linux 4.11.12 #14

Closed dirkschulze closed 6 years ago

dirkschulze commented 6 years ago

Was building with -s ARCH=arm64 and ran into some issues. There is no definition of destructor for mon_ndev.

/root/kernel-master/drivers/TL-WN722N_v2.0-Ralink/rtl8188EUS_linux_v4.3.0.8_13968.20150417/os_dep/linux/ioctl_cfg80211.c: In function ‘rtw_cfg80211_add_monitor_if’:
/root/kernel-master/drivers/TL-WN722N_v2.0-Ralink/rtl8188EUS_linux_v4.3.0.8_13968.20150417/os_dep/linux/ioctl_cfg80211.c:3874:10: error: ‘struct net_device’ has no member named ‘destructor’
  mon_ndev->destructor = rtw_ndev_destructor;
          ^

Simply commenting the line out doesn't seem right but fixed the build error for now and the module worked afterwards.