1) warning: ISO C90 forbids mixed declarations and code
C语言是面向过程的语言,这个警告通常表示声明应该在其他代码的前面。
2) warning: initialization from incompatible pointer type
在Linux kernel中有许多callback函数,这个警告表明callback函数的实现中,或者返回类型,或者参数个数类型与原先定义的不一致。
3) warning: unused variable 'socdev'
在本函数中声明的变量未被使用。
4) warning: '**_read' defined but not used
模块中的函数被定义了,但是未被使用。
5) warning: passing argument 1 of 'bus_to_virt' makes integer from pointer without a cast
函数的1号参数中调用bus_to_virt,需要整型数据,而当前是指针类型,必须经过强制转换。
6) warning: passing argument 2 of 'set_dma_irq_handler' from incompatible pointer type
函数set_dma_irq_handler的参数类型与声明的不一致。