Commit 05b112ff authored by Catalin Marinas's avatar Catalin Marinas Committed by Russell King

ARM: 6637/1: Make the argument to virt_to_phys() "const volatile"

Changing the virt_to_phys() argument to "const volatile void *" avoids
compiler warnings in some situations where this function is used.
Signed-off-by: default avatarCatalin Marinas <[email protected]>
Acked-by: default avatarStephen Boyd <[email protected]>
Acked-by: default avatarArnd Bergmann <[email protected]>
Signed-off-by: default avatarRussell King <[email protected]>
parent 03399c1c
......@@ -188,7 +188,7 @@
* translation for translating DMA addresses. Use the driver
* DMA support - see dma-mapping.h.
static inline unsigned long virt_to_phys(void *x)
static inline unsigned long virt_to_phys(const volatile void *x)
return __virt_to_phys((unsigned long)(x));
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment