/home/jason/JasonHan/ADC/s3c2410adc.c: In function `s3c2410_adc_init':
/home/jason/JasonHan/ADC/s3c2410adc.c:154: warning: `deprecated_irq_flag' is deprecated (declared at include/linux/interrupt.h:66)
标志SA_INTERRUPT
在2.6.22的内核中已经过时,用 IRQF_DISABLED 替换。
/home/jason/JasonHan/ADC/s3c2410adc.c:154: warning: passing arg 2 of `request_irq' from incompatible pointer type
request_irq函数在2.6.22的内核中改动过
现在的中断注册函数的定义为:
int request_irq(unsigned int irq, irq_handler_t handler,unsigned long irqflags, const char *devname, void *dev_id)
typedef irqreturn_t (*irq_handler_t)(int, void *);
以前是:
int request_irq(unsigned int irq, irqreturn_t (*handler)(int, void *, struct pt_regs *),unsigned long irq_flags, const char * devname, void *dev_id)
/home/jason/JasonHan/ADC/s3c2410adc.c:186: warning: implicit declaration of function `devfs_mk_cdev'
/home/jason/JasonHan/ADC/s3c2410adc.c: In function `s3c2410_adc_exit':
/home/jason/JasonHan/ADC/s3c2410adc.c:202: warning: implicit declaration of function `devfs_remove'
include/asm/uaccess.h: In function `s3c2410_adc_write':
/home/jason/JasonHan/ADC/s3c2410adc.c:88: warning: ignoring return value of `copy_from_user', declared with attribute warn_unused_result
include/asm/uaccess.h: In function `s3c2410_adc_read':
/home/jason/JasonHan/ADC/s3c2410adc.c:111: warning: ignoring return value of `copy_to_user', declared with attribute warn_unused_result
Building modules, stage 2.
MODPOST 1 modules
WARNING: "devfs_remove" [/home/jason/JasonHan/ADC/s3c2410adc.ko] undefined!
WARNING: "devfs_mk_cdev" [/home/jason/JasonHan/ADC/s3c2410adc.ko] undefined!
CC /home/jason/JasonHan/ADC/s3c2410adc.mod.o
LD [M] /home/jason/JasonHan/ADC/s3c2410adc.ko
make[1]:正在离开目录 `/home/jason/kernel/linux-2.6.22.1'
阅读(1664) | 评论(0) | 转发(0) |