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

Compile errors with Ubuntu 16.04 LTS #4

Closed
v-ladynev opened this issue Mar 19, 2017 · 3 comments
Closed

Compile errors with Ubuntu 16.04 LTS #4

v-ladynev opened this issue Mar 19, 2017 · 3 comments

Comments

@v-ladynev
Copy link

I have Ubuntu 16.04 LTS and Asus PCE-N53 card.

During building a driver, I had to fix 2 compile errors:

asus-pce-n53-linux/os/linux/../../common/rtmp_mcu.c:558:72: error: passing argument 3 ofpci_read_config_wordfrom incompatible pointer type [-Werror=incompatible-pointer-types]
    pci_read_config_word(((POS_COOKIE)pAd->OS_Cookie)->pci_dev, offset, &Configuration); 


asus-pce-n53-linux/os/linux/../../common/rtmp_mcu.c:578:72: error: passing argument 3 ofpci_read_config_wordfrom incompatible pointer type [-Werror=incompatible-pointer-types]
    pci_read_config_word(((POS_COOKIE)pAd->OS_Cookie)->pci_dev, offset, &Configuration);

I had changed this

pci_read_config_word(((POS_COOKIE)pAd->OS_Cookie)->pci_dev, offset, &Configuration);

to this

pci_read_config_word(((POS_COOKIE)pAd->OS_Cookie)->pci_dev, offset, (u16*)&Configuration);

in 2 places of a file rtmp_mcu.c

@v-ladynev
Copy link
Author

Probably, worth to add something from here
http://askubuntu.com/a/894473/667014
to the install insturctions.

@mareksuscak
Copy link
Owner

Noted. Thank you!

@v-ladynev
Copy link
Author

@mareksuscak You are welcome :)

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