Jump to content
Compatible Support Forums
Sign in to follow this  

Question for kernel progarmmer's(module compiletion problem)

Recommended Posts

i am try to compile a simple hello world module


#include <linux/module.h> /* Needed by all modules */

#include <linux/kernel.h> /* Needed for KERN_ALERT */



#include <linux/modversions.h>


int init_module(void)


printk("Hello world 1.\n");

// A non 0 return means init_module failed; module can't be loaded.

return 0;


void cleanup_module(void)


printk("Goodbye world 1.\n");



on there included linux/modue.h have a structure atomic_t

this sturcture no have any defnition in any part of this header file or in any dependent header file


so plese help me to solve this proble this proble create a compiletion error

Share this post

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this