Writing An Empty Module An empty module need only contain one include file, to resolve kernel versioning issues: #include /* resolves kernel module */ /* versioning issues. */ This module just contains several macros that define the kernel version it was compiled for, and possible a few other symbols defined in linux/module.h Compiling this module could be done using the following 'comp' script: export KERNEL_DIR=/usr/src/linux MOD_DIR=`pwd` echo "MOD_DIR - $MOD_DIR" cd $KERNEL_DIR gmake SUBDIRS=$MOD_DIR modules