Problem Compiling Kernel Module

cdlaforc at centurytel.net cdlaforc at centurytel.net
Thu Jan 6 15:28:52 UTC 2005


Reposting the code because I missed the closing "}" on the last post.  Let me know what you think.
Thanks, 

Chris.


#include 

#if defined(CONFIG_SMP)
#define __SMP__
#endif

#if defined(CONFIG_MODVERSIONS)
#define MODVERSIONS
#include 
#endif

#include 

static __init int init_module(void)
{
printk(KERN_DEBUG "Hello, kernel!\n");
return 0;
}

static __exit void cleanup_module(void)
{
printk(KERN_DEBUG "Good-bye, kernel!\n");
}
			
			
			
			
		




More information about the fedora-list mailing list