Compatible Support Forums: Question for kernel progarmmer's(module compiletion problem)

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Question for kernel progarmmer's(module compiletion problem)

#1 User is offline   mishranavaneet 

  • stranger
  • Group: Members
  • Posts: 8
  • Joined: 12-November 03

Posted 06 January 2004 - 07:40 AM

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 */
#if CONFIG_MODVERSIONS==1
#define MODVERSIONS
#include <linux/modversions.h>
#endif
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
0

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users