954,498 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

kernel makefile help

Dear friends,

I am trying to compile the linux kernel 2.6.33. I need to incorporate a patch into this. The patch creates a directory and 3 src files as below,

~/linux-2.6.33/net/core/<strong>netchannel</strong>

~/linux-2.6.33/net/core/<strong>netchannel/netchannel.c</strong>
~/linux-2.6.33/net/core/<strong>netchannel/storage.c</strong>
~/linux-2.6.33/net/core/<strong>netchannel/users.c</strong>

Now, among the above users.c file uses a function named 'get_empty_filp()', which is defined in some another c file. See the the following error

net/core/netchannel/user.c: In function ‘netchannel_bind_fd’:
net/core/netchannel/user.c:192: error: implicit declaration of function ‘get_empty_filp’
net/core/netchannel/user.c:192: warning: assignment makes pointer from integer without a cast

I found that the fun('get_empty_filp') is defined in following location

fun def => ~/linux-2.6.33/fs/<strong>internal.h</strong>
fun body => ~/linux-2.6.33/fs/<strong>file_table.c</strong>

The following is module's make file,

obj-y += netchannel.o storage.o user.o

How do I incorporate file_table.c and internal.h in this make file, so that it gets successfully compiled

vdx
Newbie Poster
1 post since Feb 2011
Reputation Points: 10
Solved Threads: 0
 

Build a object(shared object is also fine) file for
~/linux-2.6.33/fs/internal.h
~/linux-2.6.33/fs/file_table.c

And use them while compiling the users.c

biswajit_cs07
Newbie Poster
7 posts since Apr 2008
Reputation Points: 6
Solved Threads: 0
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You
View similar articles that have also been tagged: