Skip to content
  • Emil Goode's avatar
    remoteproc: Fix use of format specifyer · d09f53a7
    Emil Goode authored
    
    
    The dma_addr_t type can be either u32 or u64 depending on
    the configuration. We should use a format specifyer for the
    larger type and explicitly cast to it.
    
    Sparse warnings:
    drivers/remoteproc/remoteproc_core.c:234:2: warning:
    	format ‘%x’ expects argument of type ‘unsigned int’,
    	but argument 6 has type ‘dma_addr_t’ [-Wformat]
    
    drivers/remoteproc/remoteproc_core.c:596:2: warning:
    	format ‘%x’ expects argument of type ‘unsigned int’,
    	but argument 5 has type ‘dma_addr_t’ [-Wformat]
    
    drivers/remoteproc/remoteproc_core.c:634:3:
    	warning: format ‘%x’ expects argument of type ‘unsigned int’,
    	but argument 5 has type ‘dma_addr_t’ [-Wformat]
    
    Signed-off-by: default avatarEmil Goode <emilgoode@gmail.com>
    [fix commit log typos]
    Signed-off-by: default avatarOhad Ben-Cohen <ohad@wizery.com>
    d09f53a7