linux - compiling mem.c without CONFIG_STRICT_DEVMEM flag -
i'm trying compile mem.c
module config_strict_devmem
disabled. idea have module allow me access address space in /dev/mem
above 1mb. why? i'm doing testing requires access memory space.
i copied mem.c
home directory, removed code has access restriction , compiled it. i'm getting following warnings:
warning: "kmsg_fops" [/home/user/projects/new_mem/mem.ko] undefined! warning: "tty_init" [/home/user/projects/new_mem/mem.ko] undefined! warning: "phys_mem_access_prot" [/home/user/projects/new_mem/mem.ko] undefined! warning: "xlate_dev_mem_ptr" [/home/user/projects/new_mem/mem.ko] undefined! warning: "devmem_is_allowed" [/home/user/projects/new_mem/mem.ko] undefined! warning: "splice_from_pipe" [/home/user/projects/new_mem/mem.ko] undefined! warning: "shmem_zero_setup" [/home/user/projects/new_mem/mem.ko] undefined! make[1]: leaving directory `/usr/src/linux-headers-4.4.0-34-generic'
my questions are:
do have compile every module have these functions defined or there way it? if there it?
all need need compile code able access /dev/mem
, don't need other modules. short of removing unnecessary code mem.c
there way remove code?
any appreciated.
Comments
Post a Comment