• Fabio Estevam's avatar
    dma: ste_dma: Fix warning when CONFIG_ARM_LPAE=y · 3a919d5b
    Fabio Estevam authored
    When CONFIG_ARM_LPAE=y the following build warning are generated:
    
    drivers/dma/ste_dma40.c:3228:2: warning: format '%x' expects argument of type 'unsigned int', but argument 4 has type 'resource_size_t' [-Wformat]
    drivers/dma/ste_dma40.c:3582:3: warning: format '%x' expects argument of type 'unsigned int', but argument 4 has type 'resource_size_t' [-Wformat]
    drivers/dma/ste_dma40.c:3582:3: warning: format '%x' expects argument of type 'unsigned int', but argument 5 has type 'resource_size_t' [-Wformat]
    drivers/dma/ste_dma40.c:3593:5: warning: format '%x' expects argument of type 'unsigned int', but argument 5 has type 'resource_size_t' [-Wformat]
    
    According to Documentation/printk-formats.txt '%pa' can be used to properly
    print 'resource_size_t'.
    
    Also, for printing memory region the '%pr' is more convenient.
    Reported-by: default avatarKevin Hilman <khilman@linaro.org>
    Signed-off-by: default avatarFabio Estevam <fabio.estevam@freescale.com>
    Acked-by: default avatarKevin Hilman <khilman@linaro.org>
    Reviewed-by: default avatarLinus Walleij <linus.walleij@linaro.org>
    Signed-off-by: default avatarVinod Koul <vinod.koul@intel.com>
    3a919d5b
ste_dma40.c 96 KB