LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 06-07-2015, 08:14 AM   #1
buccaneere
Member
 
Registered: Nov 2007
Posts: 213

Rep: Reputation: 16
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........................

Last edited by buccaneere; 06-07-2015 at 08:23 AM.
 
Old 06-07-2015, 03:29 PM   #2
fatmac
LQ Guru
 
Registered: Sep 2011
Location: Upper Hale, Surrey/Hants Border, UK
Distribution: Mainly Devuan, antiX, & Void, with Tiny Core, Fatdog, & BSD thrown in.
Posts: 5,568

Rep: Reputation: Disabled
I'd take a guess at ./scripts/driver-select ath9k.
 
1 members found this post helpful.
Old 06-12-2015, 11:10 AM   #3
buccaneere
Member
 
Registered: Nov 2007
Posts: 213

Original Poster
Rep: Reputation: 16
THanks there fatmac...

Filepath was right there in my CLI window. DUH.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
allowed to create/edit a file but not to DELETE A FILE. micro_xii Linux - Newbie 9 05-10-2012 07:22 PM
How to check missing header files included from another header file adisan82 Linux - Software 1 01-28-2011 03:57 AM
help to edit Edit my bootloader's config file from kernel prompt jagdishpandey Linux - Kernel 5 07-03-2007 06:59 AM
Create header file for existing .c file hk_michael Programming 5 02-25-2005 05:26 PM
Edit packet header? mudvayne Linux - Networking 4 03-28-2003 01:43 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 12:46 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration