Hi all,
I'm testing low memory watermark(available in linux-omap
kernel tree) with OLPC, but I'm with some problem to compile the
feature as a module. Error below.
alecrim@alecrim ~/kernel/tree/linux-
linus-2.6 $ make modules
CHK include/linux/version.h
CHK include/linux/utsrelease.h
CALL scripts/checksyscalls.sh
Building modules, stage 2.
MODPOST 3 modules
ERROR: "nr_swap_pages" [security/lowmem.ko] undefined!
ERROR: "vm_acct_memory" [security/lowmem.ko] undefined!
ERROR: "hugetlb_total_pages" [security/lowmem.ko] undefined!
make[1]: *** [__modpost] Error 1
make: *** [modules] Error 2
The headers included are:
#include <linux/module.h>
#include <linux/kernel.h>
#include <linux/mman.h>
#include <linux/init.h>
#include <linux/security.h>
#include <linux/sysctl.h>
#include <linux/swap.h>
#include <linux/kobject.h>
#include <linux/pagemap.h>
#include <linux/hugetlb.h>
#include <linux/sysfs.h>
Where:
"nr_swap_pages" defined in #include <linux/swap.h>
"hugetlb_total_pages" defined in #include <linux/hugetlb.h>
"vm_acct_memory" defined in #include <linux/mman.h>
What did I forget? Can anyone help me?
PS : Full patch in linux-omap (
http://git.kernel.org/?p=linux/kernel/git/tmlind/linux-omap-2.6.git;a=commitdiff;h=92173f9a32f0ceefd511c617c69dda6c03a20ec8
)
--
--
Francisco Keppler Silva Alecrim
INdT - OSMRC http://franciscoalecrim.blogspot.com/