<span style="border-collapse:collapse;font-family:arial, sans-serif;font-size:13px"><p class="MsoNormal" style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px">Hi List,<u></u><u></u></p>
<p class="MsoNormal" style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px"><u></u> <u></u></p><p class="MsoNormal" style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px">
I am trying to compile a kernel module which uses the device mapper header files (dm.h and dm-bio-list.h). I checked in the stock kernel source that these files are present under drivers/md directory.<u></u><u></u></p><p class="MsoNormal" style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px">

When I try to build the module, it gives error for these header files as missing. I checked the Makefile and found that it includes the path (-I$(TOPDIR)/ drivers/md)<u></u><u></u></p><p class="MsoNormal" style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px">

<u></u> <u></u></p><p class="MsoNormal" style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px">But when I check the content of this directory on my machine it doesn’t include the header files:<u></u><u></u></p>

<p class="MsoNormal" style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px">[root@localhost redhat]# ls /usr/src/kernels/2.6.18-8.el5-i686/drivers/md<u></u><u></u></p><p class="MsoNormal" style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px">

Kconfig  Makefile  raid6test<u></u><u></u></p><p class="MsoNormal" style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px">[root@localhost redhat]#<u></u><u></u></p><p class="MsoNormal" style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px">

<u></u> <u></u></p><p class="MsoNormal" style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px">While the other header files referred by the kernel module under include/linux directory exists.<u></u><u></u></p>

<p class="MsoNormal" style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px"><u></u> <u></u></p><p class="MsoNormal" style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px">
My machine detail:<u></u><u></u></p><p class="MsoNormal" style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px">[adil@localhost ~]$ uname -a<u></u><u></u></p><p class="MsoNormal" style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px">

Linux localhost.localdomain 2.6.18-8.el5 #1 SMP Fri Jan 26 14:15:21 EST 2007 i686 i686 i386 GNU/Linux<u></u><u></u></p><p class="MsoNormal" style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px">
[adil@localhost ~]$<u></u><u></u></p><p class="MsoNormal" style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px"><u></u> <u></u></p><p class="MsoNormal" style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px">

Thanks in advance.<u></u><u></u></p><p class="MsoNormal" style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px"><u></u> </p><p class="MsoNormal" style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px">

Regards,</p><p class="MsoNormal" style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px">Adil Mujeeb</p></span>