Skip to content
  • zhang sanshan's avatar
    MA-10031 [Android]fix compile warning for android · 1e5e7e04
    zhang sanshan authored
    
    
    There are some warning on 64-bit platform,like:
    drivers/usb/gadget/bcb.c:151:29: warning: cast from pointer to integer
    of different size [-Wpointer-to-int-cast]
    sprintf(addr_str, "0x%x", (unsigned int)p_block);
    
    fix through cast point to uintptr_t firstly.
    
    declare in header to fix below warning:
    drivers/usb/gadget/f_fastboot.c:971:5: warning: implicit declaration of
    function 'fastboot_tx_write_str' [-Wimplicit-function-declaration]
    fastboot_tx_write_str("FAILinvalid mmc device");
    
    Change-Id: Ifc9a2adbea4fe4a510fd06030396181b2513fbbe
    Signed-off-by: default avatarzhang sanshan <sanshan.zhang@nxp.com>
    1e5e7e04