[dm-devel] dm-dedup can not make module

Jack Wang jack.wang.usish at gmail.com
Mon Feb 9 12:11:12 UTC 2015


Hi Zhichao.

Please change
 obj-$(CONFIG_DM_DEDUP) += dm-dedup.o
to
obj-m += dm-dedup.o

Regards,
Jack
2015-02-06 23:51 GMT+01:00 Zhichao Cao <caozhichao91 at gmail.com>:

> Hi Mike,
>
> 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.
>
> However, when I tried to make dm-dedup as a module and insmod it, it
> always failed.
>
> make -C /lib/modules/`uname -r`/build M=/root/Downloads/md
> make[1]: Entering directory `/usr/src/linux-3.18.5'
>   Building modules, stage 2.
>   MODPOST 0 modules
> make[1]: Leaving directory `/usr/src/linux-3.18.5'
>
> No module was built after make, and my Makefile is:
>
> dm-dedup-y += dm-dedup-target.o dm-dedup-hash.o dm-dedup-rw.o
> dm-dedup-cbt.o dm-dedup-ram.o
>
> obj-$(CONFIG_DM_DEDUP) += dm-dedup.o
>
> ifeq ($(CONFIG_DM_UEVENT),y)
> dm-mod-objs += dm-uevent.o
> endif
>
> all:
> make -C /lib/modules/`uname -r`/build M=$(PWD)
> clean:
> make -C /lib/modules/`uname -r`/build M=$(PWD) clean
> install:
> install -m 755 *.ko /lib/modules/`uname -r`/kernel/drivers/md/
>
> The dm-dedup source files are pulled from git://
> git.fsl.cs.stonybrook.edu/linux-dmdedup.git
> branch dm-dedup-devel
>
> Can you help me and give me some advises?
>
> Thanks a lot!
>
>
> Zhichao
>
> --
> dm-devel mailing list
> dm-devel at redhat.com
> https://www.redhat.com/mailman/listinfo/dm-devel
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listman.redhat.com/archives/dm-devel/attachments/20150209/40ec6de3/attachment.htm>


More information about the dm-devel mailing list