tmatsuya / linux-2.6

Mirror of Linus Torvald's Kernel Tree
http://kernel.org/
Other
9 stars 3 forks source link

Fix compilation warnings #4

Closed m-labs closed 13 years ago

m-labs commented 14 years ago
scripts/kconfig/conf -s arch/lm32/Kconfig                                        
arch/lm32/Kconfig:68:warning: defaults for choice values not supported
  CC      arch/lm32/kernel/dma.o                                                 
arch/lm32/kernel/dma.c: In function 'dma_map_sg':                                
arch/lm32/kernel/dma.c:55: warning: control reaches end of non-void function     
arch/lm32/kernel/dma.c: In function 'dma_map_page':                              
arch/lm32/kernel/dma.c:49: warning: control reaches end of non-void function     
arch/lm32/kernel/dma.c: In function 'dma_map_single':                            
arch/lm32/kernel/dma.c:42: warning: control reaches end of non-void function     
arch/lm32/kernel/dma.c: In function 'dma_alloc_coherent':                        
arch/lm32/kernel/dma.c:18: warning: control reaches end of non-void function  
CC      drivers/block/xsysace.o                                                
drivers/block/xsysace.c: In function 'ace_dataout_be16':                         
drivers/block/xsysace.c:329: warning: cast to pointer from integer of different size
drivers/block/xsysace.c:329: warning: cast from pointer to integer of different size
drivers/block/xsysace.c:329: warning: cast from pointer to integer of different size
drivers/block/xsysace.c:329: warning: cast from pointer to integer of different size
drivers/block/xsysace.c:329: warning: passing argument 1 of '__fswab16' makes integer from pointer without a cast                                                                                                   
include/linux/swab.h:46: note: expected '__u16' but argument is of type 'void *'                          
drivers/block/xsysace.c: In function 'ace_out_le16':                                                      
drivers/block/xsysace.c:344: warning: cast to pointer from integer of different size                      
drivers/block/xsysace.c:344: warning: cast from pointer to integer of different size                      
drivers/block/xsysace.c:344: warning: cast from pointer to integer of different size                      
drivers/block/xsysace.c:344: warning: cast from pointer to integer of different size                      
drivers/block/xsysace.c:344: warning: passing argument 1 of '__fswab16' makes integer from pointer without a cast                                                                                                   
include/linux/swab.h:46: note: expected '__u16' but argument is of type 'void *'    
  CC      drivers/serial/milkymist_uart.o                                                                 
drivers/serial/milkymist_uart.c: In function 'milkymist_early_console_init':                              
drivers/serial/milkymist_uart.c:366: warning: passing argument 1 of 'milkymistuart_init_port' from incompatible pointer type                                                                                        
drivers/serial/milkymist_uart.c:58: note: expected 'struct platform_device *' but argument is of type 'struct platform_device **' 
  CC      drivers/video/milkymistfb.o                                                                     
drivers/video/milkymistfb.c: In function 'milkymistfb_probe':                                             
drivers/video/milkymistfb.c:580: warning: assignment discards qualifiers from pointer target type         
drivers/video/milkymistfb.c:584: warning: assignment discards qualifiers from pointer target type         
drivers/video/milkymistfb.c:592: warning: assignment makes integer from pointer without a cast            
drivers/video/milkymistfb.c:605: warning: format '%X' expects type 'unsigned int', but argument 3 has type 'void *'                                                                                                 
drivers/video/milkymistfb.c:611: warning: assignment makes integer from pointer without a cast  
tmatsuya commented 14 years ago

Kconfig and dma fixed.

m-labs commented 14 years ago

problems remain in drivers/block/xsysace.o (quite frankly, we don't care about this one, SystemACE is unimportant) + drivers/video/milkymistfb.o

drivers/video/milkymistfb.c: In function ‘milkymistfb_probe’:
drivers/video/milkymistfb.c:577: warning: assignment discards qualifiers from pointer target type
drivers/video/milkymistfb.c:581: warning: assignment discards qualifiers from pointer target type
drivers/video/milkymistfb.c:589: warning: assignment makes integer from pointer without a cast
drivers/video/milkymistfb.c:608: warning: assignment makes integer from pointer without a cast