linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] ARM: Make the argument to virt_to_phys() "const volatile"
@ 2010-11-18 13:50 Catalin Marinas
  2010-11-19 18:58 ` Stephen Boyd
  0 siblings, 1 reply; 2+ messages in thread
From: Catalin Marinas @ 2010-11-18 13:50 UTC (permalink / raw)
  To: linux-arm-kernel

Changing the virt_to_phys() argument to "const volatile void *" avoids
compiler warnings in some situations where this function is used.

Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
Cc: Stephen Boyd <sboyd@codeaurora.org>
Cc: Arnd Bergmann <arnd@arndb.de>
---
 arch/arm/include/asm/memory.h |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/arch/arm/include/asm/memory.h b/arch/arm/include/asm/memory.h
index 23c2e8e..d0ee74b 100644
--- a/arch/arm/include/asm/memory.h
+++ b/arch/arm/include/asm/memory.h
@@ -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));
 }

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* [PATCH] ARM: Make the argument to virt_to_phys() "const volatile"
  2010-11-18 13:50 [PATCH] ARM: Make the argument to virt_to_phys() "const volatile" Catalin Marinas
@ 2010-11-19 18:58 ` Stephen Boyd
  0 siblings, 0 replies; 2+ messages in thread
From: Stephen Boyd @ 2010-11-19 18:58 UTC (permalink / raw)
  To: linux-arm-kernel

On 11/18/2010 05:50 AM, Catalin Marinas wrote:
> Changing the virt_to_phys() argument to "const volatile void *" avoids
> compiler warnings in some situations where this function is used.
>
> Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>

Acked-by: Stephen Boyd <sboyd@codeaurora.org>

Thanks.

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2010-11-19 18:58 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-11-18 13:50 [PATCH] ARM: Make the argument to virt_to_phys() "const volatile" Catalin Marinas
2010-11-19 18:58 ` Stephen Boyd

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).