I have a loadable kernel module and its init is as given below
static int __init id_init(void) { struct identity *temp; /* some code which is not re
Add following to Makefile, assuming filename.c is the module source file.
filename.c
CFLAGS_filename.o := -DDEBUG
not
CFLAGS_[filename].o := -DDEBUG
Refer https://www.kernel.org/doc/local/pr_debug.txt