ARM: sc8830: fdl: remove build warnings
[profile/mobile/platform/kernel/u-boot-tm1.git] / nand_fdl / common / src / packet.c
index 510c553..e024fd9 100644 (file)
@@ -1,3 +1,4 @@
+#include <common.h>
 #include <linux/string.h>
 #include <asm/arch/sci_types.h>
 #include <asm/arch/packet.h>
@@ -11,7 +12,7 @@
 
 
 extern void FDL_SendAckPacket (cmd_pkt_type pkt_type);
-
+extern uint32 FDL_GetBootMode (void);
 
 struct FDL_ChannelHandler *gFdlUsedChannel;
 
@@ -180,7 +181,7 @@ end:
                     packet_ptr->pkt_state = PKT_RECV;
                     //check the packet. CRC should be 0
 #ifndef CONFIG_FRMCHECK
-                    crc = crc_16_l_calc((unsigned short *)&packet_ptr->packet_body, packet_ptr->data_size);
+                    crc = crc_16_l_calc((char *)&packet_ptr->packet_body, packet_ptr->data_size);
 #else
                     crc = frm_chk((unsigned short *)&packet_ptr->packet_body, packet_ptr->data_size);
 #endif
@@ -274,7 +275,7 @@ uint32  FDL_DataProcess (PACKET_T *packet_ptr_src, PACKET_T *packet_ptr_dest)
 
     /*src CRC calculation*/
 #ifndef  CONFIG_FRMCHECK
-    crc = crc_16_l_calc ( (const unsigned short *) (& (packet_ptr_src->packet_body)), size + PACKET_HEADER_SIZE);
+    crc = crc_16_l_calc ( (char *) (& (packet_ptr_src->packet_body)), size + PACKET_HEADER_SIZE);
 #else
     crc = frm_chk ( (const unsigned short *) (& (packet_ptr_src->packet_body)), size + PACKET_HEADER_SIZE);