----- Original Message ----- From: "dongleijun" <dongleijun4000@xxxxxxxxxxx> To: <kernelnewbies@xxxxxxxxxxxx> Sent: Thursday, August 12, 2004 7:28 AM Subject: query about the usage of kmalloc > when I gcc -c main.c > the compiler says: > main.c: In function `init_module': > main.c:20: `GFP_KERNEL' undeclared (first use in this function) GFP_KERNEL is defined in linux/mm.h Regards Mohanlal -- Kernelnewbies: Help each other learn about the Linux kernel. Archive: http://mail.nl.linux.org/kernelnewbies/ FAQ: http://kernelnewbies.org/faq/