Since you received gcc error giving up that info would have been good.
However, lots of folks do this and this link will tell you exactly what you need to do. Whether or not it is advisable I cannot say, kernel hacking is not a forte of mine, but the folks at this link do it all the time. You could do well to have a good read. Their code for something similar is different than yours, since the outcome will be the same you should probably go with these kernel hackers.
First, bring up the file init/main.c in your favorite editor
Find the calibrate_delay(void) function in the file.
The first lines are declarations of a few variables, and will look something like this:
unsigned long ticks, loopbit;
int lps_precision = LPS_PREC;
Now, type in the following line just below them:
printk("*** I am a kernel hacker! ***\n");
Just a taster for you, read the whole page. If you want Kernel Hacking this place works.
http://www.linuxchix.org/content/cou...acking/lesson5
Bon chance
------------------------------------------------------------------------------------------------------------
Give me pat on the back if it works for you