-
-
Notifications
You must be signed in to change notification settings - Fork 70
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
Doesn't compile on kernel 4.8.0-11-generic #42
Comments
Try to install: sudo apt-get install linux-headers-$(uname -r) |
./install return the same result. |
Give me the output of these commands: gcc --version
apt search libc6 |
|
How about reinstalling gcc: sudo apt-get install --reinstall gcc libc6-dev Then try a clean copy of the driver (re-downloaded) |
I have tried this just now, but it does not take effect. |
same here. Using last kernel from ubuntu 16.10 |
Same problem with the latest ubuntu 16.10. Did anybody manage to solve it? |
DEFINE_PCI_DEVICE_TABLE is deprecated. Line 1704 of rt2800pci.c. -static DEFINE_PCI_DEVICE_TABLE(rt2800pci_device_table) = {
+static const struct pci_device_id rt2800pci_device_table[] = { (fixed) |
@sipertruk |
My bad something weird happened as I copied the line. Now it should work. |
@sipertruk @Pilleo |
@sipertruk #if LINUX_VERSION_CODE >= KERNEL_VERSION(4, 8, 0)
static const struct pci_device_id rt2800pci_device_table[] = {
#else
static DEFINE_PCI_DEVICE_TABLE(rt2800pci_device_table) = {
#endif I would appreciate if you would also update the version if you have some spare time :D |
DEFINE_PCI_DEVICE_TABLE is the following macro that apparently have been deleted in 4.8. #define DEFINE_PCI_DEVICE_TABLE(_table) \
const struct pci_device_id _table[] So the posted fix will work for previous kernel versions. |
The text was updated successfully, but these errors were encountered: