<span style>Hello, everyone,</span><div style><br></div><div style>I am a beginner to learn about the linux kernel. I met the following problem today:</div><div style><br></div><div style>I created a C file called &quot;drv_event.c&quot;, and put it into the location &quot;/lib&quot;, since I want to link it to the library of the kernel, i.e., <b>lib.a</b>. I also put the header file &quot;drv_event.h&quot; into the directory &quot;/include/linux&quot;. I recompile the directory &quot;/lib&quot;, and my own object &quot;drv_event.o&quot; was successfully linked into the <b>lib.a</b>.</div>
<div style><br></div><div style>However, I called one of the functions defined in the &quot;drv_event.c&quot; in my driver, and I compiled this driver, at the link time, I got the warning which shows that the function called is undefined.</div>
<div style><br></div><div style>It seems although I do recompile the lib.a successfully, but I did not put the new one into the right place. I tried &quot;make install lib&quot; and also &quot;make install&quot; in the kernel source. However, I still got the same warning at the link time.</div>
<div style><br></div><div style>So does someone can help me to get rid of this problem? </div><div style><br></div><div style>Thanks so much.</div><div style><br></div><div style>Best,</div><div style><br></div><div style>
Li</div>