<div dir="ltr"><div><span style="font-size:13px">Hi Zhichao.</span></div><span style="font-size:13px"><div><span style="font-size:13px"><br></span></div>Please change</span><div><span style="font-size:13px"> obj-$(CONFIG_DM_DEDUP)</span><span style="font-size:13px;white-space:pre-wrap">            </span><span style="font-size:13px">+= dm-dedup.o </span></div><div><span style="font-size:13px">to </span><div><span style="font-size:13px">obj-m += dm-dedup.o</span><br></div></div><div class="gmail_extra"><br></div><div class="gmail_extra">Regards,</div><div class="gmail_extra">Jack<br><div class="gmail_quote">2015-02-06 23:51 GMT+01:00 Zhichao Cao <span dir="ltr"><<a href="mailto:caozhichao91@gmail.com" target="_blank">caozhichao91@gmail.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><font size="4">Hi Mike,</font><div style="font-size:13px"><font size="4"><br></font></div><div style="font-size:13px"><font size="4">I'm a UMN CS student and just the beginer. I'm working on primary dedup project and read the dm-dedup paper, which might be very useful for me, so I want to try and learn it. </font></div><div style="font-size:13px"><font size="4"><br></font></div><div style="font-size:13px"><font size="4">However, when I tried to make dm-dedup as a module and insmod it, it always failed.</font></div><div style="font-size:13px"><br></div><div style="font-size:13px"><div>make -C /lib/modules/`uname -r`/build M=/root/Downloads/md</div><div>make[1]: Entering directory `/usr/src/linux-3.18.5'</div><div>  Building modules, stage 2.</div><div>  MODPOST 0 modules</div><div>make[1]: Leaving directory `/usr/src/linux-3.18.5'</div></div><div style="font-size:13px"><br></div><div style="font-size:13px"><font size="4">No module was built after make, and my Makefile is:</font></div><div style="font-size:13px"><br></div><div style="font-size:13px"><div>dm-dedup-y<span style="white-space:pre-wrap">        </span>+= dm-dedup-target.o dm-dedup-hash.o dm-dedup-rw.o dm-dedup-cbt.o dm-dedup-ram.o</div><div><br></div><div>obj-$(CONFIG_DM_DEDUP)<span style="white-space:pre-wrap">          </span>+= dm-dedup.o</div><div><br></div><div>ifeq ($(CONFIG_DM_UEVENT),y)</div><div>dm-mod-objs<span style="white-space:pre-wrap">                     </span>+= dm-uevent.o</div><div>endif</div><div><br></div><div>all:</div><div><span style="white-space:pre-wrap">   </span>make -C /lib/modules/`uname -r`/build M=$(PWD)</div><div>clean:</div><div><span style="white-space:pre-wrap">      </span>make -C /lib/modules/`uname -r`/build M=$(PWD) clean</div><div>install:</div><div><span style="white-space:pre-wrap">      </span>install -m 755 *.ko /lib/modules/`uname -r`/kernel/drivers/md/</div></div><div style="font-size:13px"><br></div><div><font size="4">The dm-dedup source files are pulled from </font><code><span style="font-family:'Times New Roman',serif;color:black"><font size="4">git://<a href="http://git.fsl.cs.stonybrook.edu/linux-dmdedup.git" target="_blank">git.fsl.cs.stonybrook.edu/linux-dmdedup.git</a> </font></span></code></div><div><code><span style="font-family:'Times New Roman',serif;color:black"><font size="4">branch dm-dedup-devel</font></span></code></div><div><font size="4"><br></font></div><div><font size="4">Can you help me and give me some advises?</font></div><div style="font-size:13px"><font size="4"><br></font></div><div style="font-size:13px"><font size="4">Thanks a lot!</font></div><span class="HOEnZb"><font color="#888888"><div style="font-size:13px"><br></div><div style="font-size:13px"><font size="4"><br></font></div><div style="font-size:13px"><font size="4">Zhichao</font></div></font></span></div>
<br>--<br>
dm-devel mailing list<br>
<a href="mailto:dm-devel@redhat.com">dm-devel@redhat.com</a><br>
<a href="https://www.redhat.com/mailman/listinfo/dm-devel" target="_blank">https://www.redhat.com/mailman/listinfo/dm-devel</a><br></blockquote></div><br></div></div>