i was trying to compile the simplest self-made module (pasted form the book "Linux Device Drivers") and i've got plenty of errors.
the code of the 'module' is
#define MODULE
#include <linux/module.h>
int init_module(void){printk("<1>Hello,world \n");return 0;}
void cleanup_module(void){printk("<1>Goodbye cruel world \n");}
and errors are:
In file included from /usr/include/linux/timex.h:58,
from /usr/include/linux/sched.h:11,
from /usr/include/linux/module.h:10,
from hello.c:3:
/usr/include/linux/time.h:13: error: syntax error before "time_t"
/usr/include/linux/time.h:15: error: syntax error before '}' token
/usr/include/linux/time.h:19: error: syntax error before "time_t"
/usr/include/linux/time.h:143: error: field `it_interval' has incomplete type
/usr/include/linux/time.h:144: error: field `it_value' has incomplete type
/usr/include/linux/time.h:148: error: field `it_interval' has incomplete type
/usr/include/linux/time.h:149: error: field `it_value' has incomplete type
In file included from /usr/include/linux/sched.h:11,
from /usr/include/linux/module.h:10,
from hello.c:3:
/usr/include/linux/timex.h:147: error: field `time' has incomplete type
In file included from /usr/include/linux/sched.h:12,
from /usr/include/linux/module.h:10,
from hello.c:3:
/usr/include/linux/jiffies.h:84: error: syntax error before "jiffies_64"
...
and lots of so sort of lines...
Commodore Amiga 3000 Works read Description
$1200.00
Mini External OLED AMIGA Gotek Floppy Drive Emulator For Amiga 500/500+/600/1200
$36.93
AMIGA 2000 Mainboard Rev 6 ASIS
$100.00
Amiga A500 NTSC, 1 MB Chip RAM, HDMI, Wireless Mouse
$360.00
Amiga 500 Gotek Custom Mount USB Floppy Emulator - Complete Kit with Gotek
$65.00
AT&T Card w/ Motorola 060 XC68060RC50A 68060 & Seagate ST51080N SCSI2 Hard Drive
$309.95
Apollo Vampire 600v2 / 600 V2 FPGA Accelerator Card for Commodore Amiga 600
$350.00
Vintage Commodore Amiga 1000 Desktop PC Personal Computer - Boots & Computes
$499.00
AMIGA 500 COMPUTER COMMODORE Complete in Box Powers/untested Good Condition
$370.00
Mechboard 64 mechanical replacement keyboard for the Commodore 64 (1.06) Kit
$130.00