LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Where is header file, to edit? 12.04... (https://www.linuxquestions.org/questions/linux-software-2/where-is-header-file-to-edit-12-04-a-4175544721/)

buccaneere 06-07-2015 08:14 AM

Where is header file, to edit? 12.04...
 
edit: Looks like I didn't give enough info for anyone to help; I'm following directions for a solution here http://askubuntu.com/questions/21549...reless-drivers

=========================================
Title asks it all here folks; I got an EXPECTED error doing compilation, and the next step calls for : (and is the code in RED below correct, to copy / paste into header file)



Now this will probably give the following error:

error: redefinition of kref_get_unless_zero
include/linux/kref.h:47:32: note: previous definition of kref_get_unless_zero was here

In this case, open the header file, and find the entire block of the function:

static inline int __must_check kref_get_unless_zero(struct kref *kref)
{
return atomic_add_unless(&kref->refcount, 1, 0);
}

Next comment out the entire block of the function using line comment (put // in front of each line) or block comment in c as,

/*static inline int __must_check kref_get_unless_zero(struct kref *kref)
{
return atomic_add_unless(&kref->refcount, 1, 0);
}*/



Thanks here........................

fatmac 06-07-2015 03:29 PM

I'd take a guess at ./scripts/driver-select ath9k.

buccaneere 06-12-2015 11:10 AM

THanks there fatmac...

Filepath was right there in my CLI window. DUH.


All times are GMT -5. The time now is 02:59 AM.